<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 %> > <%= 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> </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>