Sha256: e97f52a9d062af006857ebdf2a53f3eaa067a651316351048f4cb46191da8f50
Contents?: true
Size: 1.99 KB
Versions: 13
Compression:
Stored size: 1.99 KB
Contents
<div class="card" id="assembly-types"> <div class="card-divider"> <h2 class="card-title"> <%= t "decidim.admin.titles.assemblies_types" %> <%= link_to t("actions.new_assembly_type", scope: "decidim.admin"), ["new", "assemblies_type"], class: "button tiny button--title" if allowed_to? :create, :assembly_type %> </h2> </div> <div class="card-section"> <div class="table-scroll"> <table class="table-list"> <thead> <tr> <th><%= t("models.assemblies_types.fields.title", scope: "decidim.admin") %></th> <th><%= t("models.assemblies_types.fields.created_at", scope: "decidim.admin") %></th> <th></th> </tr> </thead> <tbody> <% available_assemblies_types.each do |assembly_type| %> <tr> <td> <% if allowed_to? :update, :assembly_type, assembly_type: assembly_type %> <%= link_to translated_attribute(assembly_type.title), edit_assemblies_type_path(assembly_type) %> <% else %> <%= translated_attribute assembly_type.title %></td> <% end %> <td><%= l assembly_type.created_at, format: :short %></td> <td class="table-list__actions"> <% if allowed_to? :update, :assembly_type, assembly_type: assembly_type %> <%= icon_link_to "pencil", edit_assemblies_type_path(assembly_type), t("actions.edit", scope: "decidim.admin"), class: "action-icon--new" %> <% end %> <% if allowed_to? :destroy, :assembly_type, assembly_type: assembly_type %> <%= icon_link_to "circle-x", assemblies_type_path(assembly_type), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %> </td> <% end %> </tbody> </table> </div> </div> </div>
Version data entries
13 entries across 13 versions & 1 rubygems