<%= render "shared/globalize_locales", resource: @group %>

<div class="small-12 medium-6">
  <%= translatable_form_for [:admin, @budget, @group], url: path do |f| %>

    <%= render "shared/errors", resource: @group %>

    <%= f.translatable_fields do |translations_form| %>
      <%= translations_form.text_field :name,
                                       label: t("admin.budget_groups.form.name"),
                                       maxlength: 50,
                                       placeholder: t("admin.budget_groups.form.name") %>
    <% end %>

    <% if @group.persisted? %>
        <%= f.select :max_votable_headings,
                     (1..@group.headings.count),
                     label: t("admin.budget_groups.max_votable_headings"),
                     placeholder: t("admin.budget_groups.max_votable_headings") %>
    <% end %>

    <%= f.submit t("admin.budget_groups.form.#{action}"), class: "button success" %>
  <% end %>
</div>

<%= render "shared/globalize_locales", resource: @group %>

<%= translatable_form_for [:admin, @budget, @group], url: path do |f| %>

  <%= render "shared/errors", resource: @group %>

  <div class="row">
    <%= f.translatable_fields do |translations_form| %>
      <div class="small-12 medium-6 column end">
        <%= translations_form.text_field :name,
                                         label: t("admin.budget_groups.form.name"),
                                         maxlength: 50,
                                         placeholder: t("admin.budget_groups.form.name") %>
      </div>
    <% end %>
  </div>

  <% if @group.persisted? %>
    <div class="row">
      <div class="small-12 medium-6 column">
        <%= f.select :max_votable_headings,
                     (1..@group.headings.count),
                     label: t("admin.budget_groups.max_votable_headings"),
                     placeholder: t("admin.budget_groups.max_votable_headings") %>
      </div>
    </div>
  <% end %>

  <div class="row">
    <div class="small-12 medium-6 column">
      <%= f.submit t("admin.budget_groups.form.#{action}"), class: "button success" %>
    </div>
  </div>
<% end %>

Align admin budget_groups form fields with new translations interface
Align admin budget_groups form fields with new translations interface
