Reimplements several bi views
This commit is contained in:
27
app/views/management/budgets/investments/index.html.erb
Normal file
27
app/views/management/budgets/investments/index.html.erb
Normal file
@@ -0,0 +1,27 @@
|
||||
<main>
|
||||
<span class="not-print">
|
||||
<%= render 'admin/shared/budget_investment_search', url: management_budgets_investments_path %>
|
||||
</span>
|
||||
|
||||
<div class="wrap row">
|
||||
<div id="budget-investments" class="budget-investments-list small-12 medium-9 column">
|
||||
|
||||
<div class="small-12 search-results">
|
||||
<%= content_tag(:h2, t("management.investments.filters.unfeasible")) if params[:unfeasible].present? %>
|
||||
<%= content_tag(:h2, t("management.investments.filters.by_geozone", geozone: @geozone_name)) if @geozone_name.present? %>
|
||||
<% if params[:search].present? %>
|
||||
<h2>
|
||||
<%= page_entries_info @investments %>
|
||||
<%= t("management.investments.search_results", count: @investments.size, search_term: params[:search]) %>
|
||||
</h2>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% @investments.each do |investment| %>
|
||||
<%= render partial: '/budgets/investments/investment', locals: { investment: investment, investment_votes: @investment_votes } %>
|
||||
<% end %>
|
||||
|
||||
<%= paginate @investments %>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
5
app/views/management/budgets/investments/show.html.erb
Normal file
5
app/views/management/budgets/investments/show.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<% provide :title do %><%= investment.title %><% end %>
|
||||
|
||||
<%= render '/shared/print' %>
|
||||
|
||||
<%= render partial: '/budgets/investments/investment', locals: { investment: @investment, investment_votes: @investment_votes } %>
|
||||
Reference in New Issue
Block a user