Sha256: a279523aef4853aa039359e8646e1d59aa1fa7afeb0c3eb8b0a780a244fa3c22
Contents?: true
Size: 1.92 KB
Versions: 2
Compression:
Stored size: 1.92 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_process_group", scope: "decidim.admin"), ["new", "participatory_process_group"], class: "button tiny button--title new" if allowed_to? :create, :process_group %> </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 allowed_to? :update, :process_group, process_group: group %> <%= link_to translated_attribute(group.name), ["edit", group] %><br> <% else %> <%= translated_attribute(group.name) %> <% end %> </td> <td class="table-list__actions"> <% if allowed_to? :update, :process_group, process_group: group %> <%= icon_link_to "pencil", ["edit", group], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %> <% end %> <%= icon_link_to "eye", decidim_participatory_processes.participatory_process_group_path(group), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %> <% if allowed_to? :destroy, :process_group, process_group: 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
2 entries across 2 versions & 1 rubygems