Sha256: 39813188f22244e2a020a4fba25206fdc9d081010511bf6686a75112523fc3e5

Contents?: true

Size: 1.92 KB

Versions: 10

Compression:

Stored size: 1.92 KB

Contents

<% add_decidim_page_title(t("decidim.admin.titles.area_types")) %>
<div class="card" id="area-types">
  <div class="item_show__header">
    <h1 class="item_show__header-title">
      <%= t "decidim.admin.titles.area_types" %>
      <% if allowed_to? :create, :area_type %>
        <%= link_to t("actions.add", scope: "decidim.admin"), [:new, :area_type], class: "button button__sm button__secondary new" %>
      <% end %>
    </h1>
  </div>
  <div class="table-scroll">
      <table class="table-list">
      <thead>
        <tr>
          <th><%= t("models.area_type.fields.name", scope: "decidim.admin") %></th>
          <th><%= t("models.area_type.fields.plural", scope: "decidim.admin") %></th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% area_types.each do |area_type| %>
          <tr>
            <td>
              <% if allowed_to? :update, :area_type, area_type: area_type %>
                <%= link_to translated_attribute(area_type.name), [:edit, area_type] %>
              <% else %>
                <%= translated_attribute(area_type.name) %>
              <% end %>
            </td>
            <td>
              <%= translated_attribute(area_type.plural) %>
            </td>
            <td class="table-list__actions">
              <% if allowed_to? :update, :area_type, area_type: area_type %>
                <%= icon_link_to "pencil-line", [:edit, area_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
              <% end %>

              <% if allowed_to? :destroy, :area_type, area_type: area_type %>
                <%= icon_link_to "delete-bin-line", area_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

10 entries across 10 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.28.4 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.29.0 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.28.3 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.29.0.rc4 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.29.0.rc3 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.29.0.rc2 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.29.0.rc1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.28.2 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.28.1 app/views/decidim/admin/area_types/index.html.erb