Sha256: 2e1dcc9d1bd37dfd528e068be82bed746e493a1fead5fc66ba1fa1dcfaf42968
Contents?: true
Size: 1.86 KB
Versions: 12
Compression:
Stored size: 1.86 KB
Contents
<div class="card"> <div class="card-divider"> <h2 class="card-title"> <%= t "decidim.admin.titles.participatory_process_groups" %> <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_group.name", scope: "decidim.admin")), ['new', 'participatory_process_group'], class: 'button tiny button--title new' if can? :create, Decidim::ParticipatoryProcessGroup %> </h2> </div> <div class="card-section"> <div class="table-scroll"> <table class="table-list"> <thead> <tr> <th><%= t("models.participatory_process_group.fields.name", scope: "decidim.admin") %></th> <th></th> </tr> </thead> <tbody> <% collection.each do |group| %> <tr> <td> <% if can? :update, group %> <%= link_to translated_attribute(group.name), ['edit', group] %><br /> <% else %> <%= translated_attribute(group.name) %> <% end %> </td> <td class="table-list__actions"> <% if can? :update, group %> <%= icon_link_to "pencil", ['edit', group], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %> <% end %> <%= icon_link_to "eye", decidim.participatory_process_group_path(group), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %> <% if can? :destroy, group %> <%= icon_link_to "circle-x", group, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %> </td> </tr> <% end %> </tbody> </table> </div> </div> </div>
Version data entries
12 entries across 12 versions & 2 rubygems