<%= form.translated :text_field, :name, autofocus: true %> <%= form.number_field :weight %> <% if form.object.settings? %>
<%= t ".global_settings" %>
<%= form.fields_for :settings, form.object.settings do |settings_fields| %> <%= render partial: "decidim/admin/features/settings_fields", locals: { form: settings_fields, feature: @feature, settings_name: "global" } %> <% end %>
<% end %> <% if form.object.step_settings? %>
<%= t ".step_settings" %>
<% participatory_process.steps.each do |step| %>
<%= step.position + 1 %>. <%= translated_attribute step.title %> <% step_settings = form.object.step_settings[step.id.to_s] %> <%= form.fields_for "step_settings", nil do |settings_fields| %> <%= settings_fields.fields_for step.id.to_s, step_settings do |settings_fields| %> <%= render partial: "decidim/admin/features/settings_fields", locals: { form: settings_fields, feature: feature, settings_name: "step" } %> <% end %> <% end %>
<% end %>
<% end %>