Sha256: 43be29d624e0f70229cce4e396c528977ca327903a0beddd3a5f4d72a5f83671
Contents?: true
Size: 1.33 KB
Versions: 45
Compression:
Stored size: 1.33 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), resource_locator([budget, project]).path %> <strong class="budget-summary__selected-number"> <%= budget_to_currency project.budget_amount %> </strong> <% unless current_order_checked_out? %> <%= button_to budget_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
45 entries across 45 versions & 1 rubygems