Sha256: cc58f65ea4f7c410069038bb5f92901a264671d007953b443e6e03bde0f2c7f5

Contents?: true

Size: 1.58 KB

Versions: 14

Compression:

Stored size: 1.58 KB

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t ".title" %>
      <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.initiatives_type_scope.name", scope: "decidim.admin")),
                  new_initiatives_type_initiatives_type_scope_path(initiative_type),
                  class: "button tiny button--title" if allowed_to? :create, :initiative_type_scope %>
    </h2>
  </div>
  <div class="row column">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
        <tr>
          <th><%= t("models.initiatives_type_scope.fields.scope", scope: "decidim.admin") %></th>
          <th class="text-right">
            <%= t("models.initiatives_type_scope.fields.supports_required", scope: "decidim.admin") %>
          </th>
          <th class="actions"></th>
        </tr>
        </thead>
        <tbody>
        <% initiative_type.scopes.each do |s| %>
          <tr>
            <td><%= translated_attribute(s.scope.name) %></td>
            <td class="text-right"><%= s.supports_required %></td>
            <td class="table-list__actions">
              <%= icon_link_to "pencil",
                               decidim_admin_initiatives.edit_initiatives_type_initiatives_type_scope_path(initiative_type, s),
                               t("actions.configure", scope: "decidim.admin"),
                               class: "action-icon--new" if allowed_to? :edit, :initiative_type_scope, initiative_type_scope: s %>
            </td>
          </tr>
        <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-initiatives-0.15.2 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.15.1 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.15.0 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.14.4 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.14.3 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.14.2 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.14.1 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.13.1 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.12.2 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.13.0 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.12.1 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.13.0.pre1 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.12.0 app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb
decidim-initiatives-0.12.0.pre app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb