Sha256: 7928d731300715777a8e48330511288f78740b14f1b82872a8ce068aea868cd6
Contents?: true
Size: 1.95 KB
Versions: 3
Compression:
Stored size: 1.95 KB
Contents
<% add_decidim_page_title(t("decidim.admin.titles.scope_types")) %> <div class="card" id="scope-types"> <div class="item_show__header"> <h2 class="item_show__header-title"> <%= t "decidim.admin.titles.scope_types" %> <% if allowed_to? :create, :scope_type %> <%= link_to t("actions.add", scope: "decidim.admin"), [:new, :scope_type], class: "button button__sm button__secondary new" %> <% end %> </h2> </div> <div class="table-scroll"> <table class="table-list"> <thead> <tr> <th><%= t("models.scope_type.fields.name", scope: "decidim.admin") %></th> <th><%= t("models.scope_type.fields.plural", scope: "decidim.admin") %></th> <th></th> </tr> </thead> <tbody> <% scope_types.each do |scope_type| %> <tr> <td> <% if allowed_to? :update, :scope_type, scope_type: scope_type %> <%= link_to translated_attribute(scope_type.name), [:edit, scope_type] %> <% else %> <%= translated_attribute(scope_type.name) %> <% end %> </td> <td> <%= translated_attribute(scope_type.plural) %> </td> <td class="table-list__actions"> <% if allowed_to? :update, :scope_type, scope_type: scope_type %> <%= icon_link_to "pencil-line", [:edit, scope_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %> <% end %> <% if allowed_to? :destroy, :scope_type, scope_type: scope_type %> <%= icon_link_to "delete-bin-line", scope_type, 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>
Version data entries
3 entries across 3 versions & 1 rubygems