Simplify generating form fields with labels

Instead of generating the label and then a field without a label, we can
directly generate a field with a label.
This commit is contained in:
Javi Martín
2019-10-02 23:27:48 +02:00
parent 42dbbf5507
commit 3ea9f3cecf
31 changed files with 109 additions and 141 deletions

View File

@@ -33,8 +33,7 @@
<% end %>
<div class="small-12 medium-6">
<%= f.label t("verification.sms.edit.confirmation_code") %>
<%= f.text_field :confirmation_code, label: false %>
<%= f.text_field :confirmation_code, label: t("verification.sms.edit.confirmation_code") %>
</div>
<%= f.submit t("verification.sms.edit.submit_button"), class: "button success" %>