Sha256: 3b4124e2c74d9b2d3647486287a17f9e20869cccc98f2238d2ea289de057225f

Contents?: true

Size: 1.96 KB

Versions: 6

Compression:

Stored size: 1.96 KB

Contents

<div class="card with-overflow">
  <div class="card-divider">
    <h2 class="card-title flex--sbc">
      <div>
        <%= link_to translated_attribute(budget.title), budgets_path %> &gt;
        <%= t(".title") %>
        <span id="js-selected-resources-count" class="component-counter component-counter--inline" title="<%= t("decidim.budgets.admin.projects.index.selected") %>"></span>
      </div>
      <%= render partial: "bulk-actions" %>
    </h2>
  </div>

  <%= admin_filter_selector(:projects) %>
  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= check_box_tag "projects_bulk", "all", false, class: "js-check-all" %></th>
            <th><%= sort_link(query, :id, t("models.project.fields.id", scope: "decidim.budgets"), default_order: :desc) %>
            <th><%= sort_link(query, :title, t("models.project.fields.title", scope: "decidim.budgets")) %></th>
            <th><%= sort_link(query, :category_name, t("models.project.fields.category", scope: "decidim.budgets") ) %></th>
            <%= th_scope_sort_link %>
            <th><%= sort_link(query, :confirmed_orders_count, t("index.confirmed_orders_count")) %></th>
            <th><%= sort_link(query, :selected, t(".selected")) %></th>
            <th class="actions"><%= t("actions.title", scope: "decidim.budgets") %></th>
          </tr>
        </thead>
        <tbody>
          <% projects.each do |project| %>
            <%= render partial: "project-tr", locals: { project: project } %>
          <% end %>
        </tbody>
      </table>
      <%= paginate projects, theme: "decidim" %>
    </div>
  </div>
  <div class="card-divider">
    <strong><%= t ".finished_orders" %>:&nbsp;</strong><span><%= finished_orders.count %></span>
    <span>&nbsp;|&nbsp;</span>
    <strong><%= t ".pending_orders" %>:&nbsp;</strong><span><%= pending_orders.count %></span>
  </div>
</div>

<%= javascript_pack_tag "decidim_budgets_admin" %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-budgets-0.27.3 app/views/decidim/budgets/admin/projects/index.html.erb
decidim-budgets-0.27.2 app/views/decidim/budgets/admin/projects/index.html.erb
decidim-budgets-0.27.1 app/views/decidim/budgets/admin/projects/index.html.erb
decidim-budgets-0.27.0 app/views/decidim/budgets/admin/projects/index.html.erb
decidim-budgets-0.27.0.rc2 app/views/decidim/budgets/admin/projects/index.html.erb
decidim-budgets-0.27.0.rc1 app/views/decidim/budgets/admin/projects/index.html.erb