Sha256: c929b75a9b6ca14b5dd220f96844edcdc7fb38453077b1bf12e396b49497a5a1

Contents?: true

Size: 1.28 KB

Versions: 30

Compression:

Stored size: 1.28 KB

Contents

<div id="order-selected-projects">
  <% if current_order&.projects&.any? %>
    <div class="card__content budget-summary__selected">
      <button data-toggle="reveal-selected">
        <strong><%= current_order.projects.size %> </strong><%= t(".selected_projects", count: current_order.projects.size) %>
        <%= icon("caret-bottom", class:"icon--small", aria_label: t(".view"), role: "img") %>
      </button>
      <div id="reveal-selected" class="hide" data-toggler=".hide">
        <ul class="budget-summary__selected-list">
          <% current_order.projects.each do |project| %>
            <li class="budget-summary__selected-item">
              <%= link_to translated_attribute(project.title), project %>
              <strong class="budget-summary__selected-number">
                <%= budget_to_currency project.budget %>
              </strong>
              <% unless current_order_checked_out? %>
                <%= button_to order_line_item_path(project_id: project), method: :delete, remote: true, data: { disable: true }, form: { style: "display: inline" } do %>
                  <%= icon("trash", aria_label: t(".remove"), role: "img") %>
                <% end %>
              <% end %>
            </li>
          <% end %>
        </ul>
      </div>
    </div>
  <% end %>
</div>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
decidim-budgets-0.22.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.21.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.20.1 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.20.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.19.1 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.18.1 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.19.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.17.2 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.18.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.17.1 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.16.1 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.17.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.16.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.15.2 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.15.1 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.15.0 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.14.4 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.14.3 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.14.2 app/views/decidim/budgets/projects/_order_selected_projects.html.erb
decidim-budgets-0.14.1 app/views/decidim/budgets/projects/_order_selected_projects.html.erb