Sha256: 9ef1c9b7576a2375d39ad429b74ce21b9ad788b04906d699987ca730ec90884c
Contents?: true
Size: 1.83 KB
Versions: 9
Compression:
Stored size: 1.83 KB
Contents
<% add_decidim_page_title(t("areas", scope: "decidim.admin.titles")) %> <div class="card" id="areas"> <div class="card-divider"> <h2 class="card-title"> <%= t "decidim.admin.titles.areas" %> <% if allowed_to? :create, :area %> <%= link_to t("actions.add", scope: "decidim.admin"), new_area_path, class: "button tiny button--title new" %> <% end %> </h2> </div> <div class="card-section"> <% if @areas.any? %> <div class="table-scroll"> <table class="table-list"> <thead> <tr> <th><%= t("models.area.fields.name", scope: "decidim.admin") %></th> <th><%= t("models.area.fields.area_type", scope: "decidim.admin") %></th> <th></th> </tr> </thead> <tbody> <% @areas.each do |area| %> <tr> <td> <%= translated_attribute(area.name) %> </td> <td> <%= area.area_type ? translated_attribute(area.area_type.name) : "-" %> </td> <td class="table-list__actions"> <% if allowed_to? :update, :area, area: area %> <%= icon_link_to "pencil", [:edit, area], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %> <% end %> <% if allowed_to? :destroy, :area, area: area %> <%= icon_link_to "circle-x", area, 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> <% else %> <p><%= t("decidim.admin.areas.no_areas") %></p> <% end %> </div> </div>
Version data entries
9 entries across 9 versions & 1 rubygems