Sha256: 9a6bd784283c413bbacbe3b3abae2cb92524586c22bfb45bb0f62f22c6c93b49

Contents?: true

Size: 1.7 KB

Versions: 22

Compression:

Stored size: 1.7 KB

Contents

<div class="card" id="scope-types">
  <div class="card-divider">
    <% if allowed_to? :creste, :scope_type %>
      <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 new" %></h2>
    <% end %>
  </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 allowed_to? :update, :scope_type, scope_type: scope_type %>
                  <%= icon_link_to "pencil", [:edit, scope_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
                <% end %>

                <% if allowed_to? :destroy, :scope_type, scope_type: 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

22 entries across 22 versions & 1 rubygems

Version Path
decidim-admin-0.27.3 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.7 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.5 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.27.2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.27.1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.4 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.27.0 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.3 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.27.0.rc2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.27.0.rc1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.0 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.0.rc2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.26.0.rc1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.25.2 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.25.1 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.25.0 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.25.0.rc4 app/views/decidim/admin/scope_types/index.html.erb
decidim-admin-0.25.0.rc3 app/views/decidim/admin/scope_types/index.html.erb