Sha256: 3d42dcd3be21b8bf5cae31701def052cd749dcf3ee23714967f1699b66034851

Contents?: true

Size: 1.94 KB

Versions: 8

Compression:

Stored size: 1.94 KB

Contents

<div class="card budget-summary" data-progress-reference data-safe-url="<%= budget_url(budget) %>">
  <div class="card__content">
    <% if include_heading %>
      <% if current_order_checked_out? %>
        <h3 class="heading3">
          <%= t(".checked_out.title") %>
          <% unless current_workflow.single? %>
            <small><%= translated_attribute(budget.title) %></small>
          <% end %>
        </h3>
        <p>
          <%= raw t(".checked_out.description", cancel_link: link_to(t(".cancel_order"), budget_order_path(return_to: "budget"), method: :delete, class: "cancel-order", data: { confirm: t(".are_you_sure") })) %>
        </p>
      <% else %>
        <h3 class="heading3">
          <% if current_workflow.single? %>
            <%= t(".title") %>
          <% else %>
            <%= translated_attribute(budget.title) %>
          <% end %>
        </h3>
        <p>
          <% if current_order.minimum_projects_rule? %>
            <%= t(".description_minimum_projects_rule", minimum_number: current_order.minimum_projects) %>
          <% else %>
            <%= t(".description", minimum_budget: budget_to_currency(current_order.minimum_budget)) %>
          <% end %>
        </p>
      <% end %>
    <% end %>

    <div class="budget-summary__total" data-total-budget="<%= budget.total_budget %>">
      <span class="mini-title"><%= t("total_budget") %>
        <strong class="mini-title__strong mini-title__strong--highlight">
          <%= budget_to_currency(budget.total_budget) %>
        </strong>
      </span>
    </div>

    <%= render partial: "order_progress" %>

    <div>
      <span class="mini-title">
        <%= t(".assigned") %>
        <%= render partial: "order_total_budget" %>
      </span>
    </div>

    <%= cell("decidim/budgets/budget_information_modal", budget) %>
  </div>

  <%= render partial: "order_selected_projects" %>
</div>

<%= render partial: "budget_excess" %>
<%= render partial: "budget_confirm" %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-budgets-0.23.6 app/views/decidim/budgets/projects/_budget_summary.html.erb
decidim-budgets-0.23.5 app/views/decidim/budgets/projects/_budget_summary.html.erb
decidim-budgets-0.23.4 app/views/decidim/budgets/projects/_budget_summary.html.erb
decidim-budgets-0.23.3 app/views/decidim/budgets/projects/_budget_summary.html.erb
decidim-budgets-0.23.2 app/views/decidim/budgets/projects/_budget_summary.html.erb
decidim-budgets-0.23.1 app/views/decidim/budgets/projects/_budget_summary.html.erb
decidim-budgets-0.23.1.rc1 app/views/decidim/budgets/projects/_budget_summary.html.erb
decidim-budgets-0.23.0 app/views/decidim/budgets/projects/_budget_summary.html.erb