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

Version Path
decidim-admin-0.10.1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.10.0 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.9.3 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.9.2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.9.1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.9.0 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.8.4 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.8.3 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.8.2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.8.1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.8.0 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.7.4 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.7.3 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.7.2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.7.1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.7.0 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.6.8 app/views/decidim/admin/scope_types/index.html.erb
decidim-0.6.8 decidim-admin/app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.6.7 app/views/decidim/admin/scope_types/index.html.erb
decidim-0.6.7 decidim-admin/app/views/decidim/admin/scope_types/index.html.erb