Sha256: f4ac8884c555a3a926354305c77b158d4b8f7d9f229361073d26210107242980

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

<% add_decidim_page_title(t(".title")) %>
<div class="card">
  <div class="item_show__header">
    <h2 class="item_show__header-title">
      <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="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>
          <th class="!text-left"><%= 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: } %>
        <% end %>
      </tbody>
    </table>
    <%= decidim_paginate projects %>
  </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>

<%= append_javascript_pack_tag "decidim_budgets_admin" %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-budgets-0.28.0 app/views/decidim/budgets/admin/projects/index.html.erb