Sha256: 1dd13ee6d7875a0d90dc0c42c5225f8b8533ff0d88aa0b46e833b473d7437bce

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

<div class="field">
  <%= form.translated :text_field, :name, autofocus: true %>

  <% if form.object.settings? %>
    <fieldset class="global-settings">
      <div class="card">
        <div class="card-divider">
          <legend><%= t ".global_settings" %></legend>
        </div>
        <div class="card-section">
          <%= 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 %>
        </div>
      </div>
    </fieldset>
  <% end %>

  <% if form.object.step_settings? %>
    <fieldset class="step-settings">
      <div class="card">
        <div class="card-divider">
          <legend><%= t ".step_settings" %></legend>
        </div>
        <div class="card-section">
          <% participatory_process.steps.each do |step| %>
            <fieldset class="step-settings-<%= step.id %>">
              <legend><%= step.position + 1 %>. <%= translated_attribute step.title %></legend>
              <% 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 %>
            </fieldset>
          <% end %>
        </div>
      </div>
    </fieldset>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
decidim-admin-0.0.2 app/views/decidim/admin/features/_form.html.erb
decidim-0.0.2 decidim-admin/app/views/decidim/admin/features/_form.html.erb