diff --git a/app/components/budgets/budget_component.html.erb b/app/components/budgets/budget_component.html.erb new file mode 100644 index 000000000..18f84f767 --- /dev/null +++ b/app/components/budgets/budget_component.html.erb @@ -0,0 +1,32 @@ +
+ <%= link_to t("budgets.index.section_header.help"), "#section_help" %> +
+- <%= link_to t("budgets.index.section_header.help"), "#section_help" %> -
-
- <%= link_to budget_path(@budget) do %>
+ <%= link_to budget_investments_path(@budget, heading_id: @heading) do %>
<%= t("budgets.results.investment_proyects") %>
<% end %>
- <%= link_to budget_path(@budget, filter: "unfeasible") do %>
+ <%= link_to budget_investments_path(@budget, heading_id: @heading, filter: "unfeasible") do %>
<%= t("budgets.results.unfeasible_investment_proyects") %>
<% end %>
- <%= link_to budget_path(@budget, filter: "unselected") do %>
+ <%= link_to budget_investments_path(@budget, heading_id: @heading, filter: "unselected") do %>
<%= t("budgets.results.not_selected_investment_proyects") %>
<% end %>
| <%= t("budgets.show.group") %> | - - - <% @budget.groups.each do |group| %> -
|---|
|
- <% if group.single_heading_group? %>
- <%= link_to group.name,
- budget_investments_path(@budget,
- heading_id: group.headings.first.id,
- filter: @current_filter) %>
- <% else %>
- <%= link_to group.name,
- budget_group_path(@budget, group,
- filter: @current_filter) %>
- <% end %>
- - |
-