Sha256: 01eacd9adbcdf3a210040834fbc5c562bbd0f55dfbedec46a6c000dcff1b41cf

Contents?: true

Size: 1.84 KB

Versions: 4

Compression:

Stored size: 1.84 KB

Contents

<div class="card with-overflow" id='user-groups'>
  <div class="card-divider">
    <h2 class="card-title">
      <%= t ".title" %>
      <%= link_to t(".actions.new_setting"), decidim_admin_action_delegator.new_setting_path, class: "button tiny button--title" %>
    </h2>
  </div>
  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t(".consultation") %></th>
            <th><%= t(".max_grants") %></th>
            <th><%= t(".delegations") %></th>
            <th><%= t(".created_at") %></th>
            <th>&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          <% @settings.each do |setting| %>
            <tr data-setting-id="<%= setting.id %>">
              <td><%= link_to translated_attribute(setting.consultation.title), decidim_admin_action_delegator.setting_delegations_path(setting) %></td>
              <td><%= setting.max_grants %></td>
              <td><%= setting.delegations.count %></td>
              <td><%= l setting.created_at, format: :short %></td>

              <td class="table-list__actions">
                <%= icon_link_to "people", decidim_admin_action_delegator.setting_delegations_path(setting), t("actions.manage", scope: "decidim.admin"), class: "action-icon--edit" %>
                <%= icon_link_to "circle-x", decidim_admin_action_delegator.setting_path(setting), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
                <%= icon_link_to "eye", decidim_consultations.consultation_path(setting.consultation), t("actions.preview", scope: "decidim.admin"), class: "action-icon--edit" %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-action_delegator-0.6.0 app/views/decidim/action_delegator/admin/settings/index.html.erb
decidim-action_delegator-0.5.0 app/views/decidim/action_delegator/admin/settings/index.html.erb
decidim-action_delegator-0.4.1 app/views/decidim/action_delegator/admin/settings/index.html.erb
decidim-action_delegator-0.4 app/views/decidim/action_delegator/admin/settings/index.html.erb