Sha256: c0ac242c9e9495e0b95aadb0c67e29b2ab922fe44f259a9c69171d352fd69073
Contents?: true
Size: 1.56 KB
Versions: 38
Compression:
Stored size: 1.56 KB
Contents
<div class="card"> <div class="card-divider"> <h2 class="card-title"><%= t "decidim.admin.titles.scope_types" %> <%= link_to t("actions.add", scope: "decidim.admin"), ['new', 'scope_type'], class: 'button tiny button--title' %></h2> </div> <div class="card-section"> <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> <%= translated_attribute(scope_type.name) %> </td> <td> <%= translated_attribute(scope_type.plural) %> </td> <td class="table-list__actions"> <% if can? :update, scope_type %> <%= icon_link_to "pencil", ['edit', scope_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %> <% end %> <% if can? :destroy, scope_type %> <%= icon_link_to "circle-x", 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> </div>
Version data entries
38 entries across 38 versions & 2 rubygems