Sha256: 0927b8e74e7bbcdcdec3b4647e9afc4a2aefe0573917b3c942e9ddf298b64a63

Contents?: true

Size: 1.71 KB

Versions: 38

Compression:

Stored size: 1.71 KB

Contents

<div class="card" id="area-types">
  <div class="card-divider">
    <h2 class="card-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 tiny button--title new" %>
      <% end %>
    </h2>
  </div>
  <div class="card-section">
    <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>
                <%= translated_attribute(area_type.name) %>
              </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", ["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 "circle-x", 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>
</div>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-admin-0.17.1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.16.1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.17.0 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.16.0 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.15.2 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.15.1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.15.0 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.14.4 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.14.3 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.14.2 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.14.1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.13.1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.12.2 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.13.0 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.12.1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.13.0.pre1 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.12.0 app/views/decidim/admin/area_types/index.html.erb
decidim-admin-0.12.0.pre app/views/decidim/admin/area_types/index.html.erb