<%= translatable_form_for heading, url: path, html: { class: "budget-headings-form" } do |f| %> <%= render "shared/globalize_locales", resource: heading %> <%= render "shared/errors", resource: heading %> <%= render Admin::BudgetsWizard::ModeFieldComponent.new %> <%= f.translatable_fields do |translations_form| %>
<%= translations_form.text_field :name, maxlength: 50 %>
<% end %>
<% if budget.show_money? %> <%= f.text_field :price, maxlength: 8 %> <% else %> <%= f.hidden_field :price, value: 0 %> <% end %> <% if feature?(:map) %> <%= f.select :geozone_id, geozone_options, include_blank: t("geozones.none"), hint: t("admin.budget_headings.form.geozone_info") %> <% end %> <% if heading.budget.approval_voting? %> <%= f.number_field :max_ballot_lines, hint: t("admin.budget_headings.form.max_ballot_lines_info") %> <% end %> <%= f.text_field :population, maxlength: 8, data: { toggle_focus: "population-info" }, hint: t("admin.budget_headings.form.population_info") %> <%= f.text_field :latitude, maxlength: 22 %> <%= f.text_field :longitude, maxlength: 22 %>

<%= t("admin.budget_headings.form.coordinates_info") %>

<%= f.check_box :allow_custom_content %>

<%= t("admin.budget_headings.form.content_blocks_info") %>

<% if single_heading? %> <%= f.submit t("admin.budgets_wizard.headings.continue"), class: "button success" %> <% else %> <%= f.submit t("admin.budget_headings.form.#{action}"), class: "button hollow" %> <% end %>
<% end %>