This way we can simplify the way we generate form fields. In some cases, we also use the human attribute in table headers, which IMHO makes sense. I haven't moved all of them: for example, sometimes a label is different depending on whether it's shown to administrators, valuators, or users. And I haven't touched the ones related to devise, since I wasn't sure about possible side effects. Note I've also removed placeholders when they had the same text as their labels, since they weren't helpful. On the contrary, the added redundant text to the form, potentially distracting users.
9 lines
264 B
Plaintext
9 lines
264 B
Plaintext
<%= back_link_to admin_valuator_groups_path %>
|
|
|
|
<div class="small-12 medium-6 margin-top">
|
|
<%= form_for [:admin, @group] do |f| %>
|
|
<%= f.text_field :name %>
|
|
<%= f.submit t("admin.valuator_groups.form.edit"), class: "button success" %>
|
|
<% end %>
|
|
</div>
|