Sha256: 872bcbb5bb4a7e96793173cb1854798bbc7149d05658728fa28344d6bbd6bf5e

Contents?: true

Size: 1.33 KB

Versions: 9

Compression:

Stored size: 1.33 KB

Contents

<% add_decidim_page_title(t("components.title", scope: "decidim.admin")) %>
<div class="card">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t("components.title", scope: "decidim.admin") %>
      <% if allowed_to?(:create, :component) %>
        <button class="dropdown tiny button button--title" data-toggle="add-component-dropdown"><%= t "components.index.add", scope: "decidim.admin" %></button>
        <div class="dropdown-pane" id="add-component-dropdown" data-dropdown data-auto-focus="true" data-close-on-click="true">
          <ul class="vertical menu add-components">
            <% @manifests.each do |manifest| %>
              <li><%= link_to t("#{manifest.name}.name", scope: "decidim.components"), new_component_path(type: manifest.name), class: manifest.name %></li>
            <% end %>
          </ul>
        </div>
      <% end %>
    </h2>
  </div>

  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <th><%= t(".headers.name") %></th>
          <th><%= t(".headers.type") %></th>
          <%= th_resource_scope_label(t(".headers.scope")) %>
          <th><%= t(".headers.actions") %></th>
        </thead>

        <tbody>
          <%= render partial: "component", collection: @components %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-admin-0.27.9 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.27.8 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.27.7 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.27.6 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.26.10 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.26.9 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.27.5 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.26.8 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.27.4 app/views/decidim/admin/components/index.html.erb