Sha256: f94b2e835df83f3ec4002900e118593746fb79267d5a5e79b0cebac9e02ed38a

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

<div class="card with-overflow" id='user-groups'>
  <div class="card-divider">
    <h2 class="card-title">
      <%= link_to translated_attribute(current_setting.title), decidim_admin_action_delegator.settings_path %> &gt;
      <%= t ".title" %>
      <%= link_to t(".actions.new_ponderation"), decidim_admin_action_delegator.new_setting_ponderation_path(current_setting), class: "button tiny button--title" %>
    </h2>
  </div>
  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t(".name") %></th>
            <th><%= t(".weight") %></th>
            <th><%= t(".num_users") %></th>
            <th><%= t(".created_at") %></th>
            <th>&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          <% ponderations.each do |ponderation| %>
            <tr data-ponderation-id="<%= ponderation.id %>">
              <td><%= ponderation.name %></td>
              <td><%= ponderation.weight %></td>
              <td><%= ponderation.participants.count %></td>
              <td><%= l ponderation.created_at, format: :short %></td>

              <td class="table-list__actions">
                <%= icon_link_to "pencil", decidim_admin_action_delegator.edit_setting_ponderation_path(ponderation.setting, ponderation), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
                <%= icon_link_to "circle-x", decidim_admin_action_delegator.setting_ponderation_path(ponderation.setting, ponderation), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } if ponderation.destroyable? %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
    <%= decidim_paginate ponderations %>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-action_delegator-0.8.1 app/views/decidim/action_delegator/admin/ponderations/index.html.erb
decidim-action_delegator-0.7.2 app/views/decidim/action_delegator/admin/ponderations/index.html.erb
decidim-action_delegator-0.7.1 app/views/decidim/action_delegator/admin/ponderations/index.html.erb
decidim-action_delegator-0.7.0 app/views/decidim/action_delegator/admin/ponderations/index.html.erb