improves styles for valuation budgets

This commit is contained in:
Alberto Garcia Cabeza
2017-01-04 17:33:09 +01:00
parent 02359c8e2a
commit 74a361690d
4 changed files with 81 additions and 30 deletions

View File

@@ -1,4 +1,7 @@
<h2><%= @budget.name %> - <%= t("valuation.budget_investments.index.title") %></h2> <h2>
<%= @budget.name %> - <%= t("valuation.budget_investments.index.title") %>
<small>(Asignadas a EVALUADOR)</small>
</h2>
<div class="row collapse"> <div class="row collapse">
<% @heading_filters.each_slice(8) do |slice| %> <% @heading_filters.each_slice(8) do |slice| %>
@@ -18,25 +21,34 @@
<h3><%= page_entries_info @investments %></h3> <h3><%= page_entries_info @investments %></h3>
<table> <table>
<% @investments.each do |investment| %> <thead>
<tr id="<%= dom_id(investment) %>"> <tr>
<td> <th><%= t("valuation.budget_investments.index.table_id") %></th>
<strong><%= investment.id %></strong> <th><%= t("valuation.budget_investments.index.table_title") %></th>
</td> <th><%= t("valuation.budget_investments.index.table_heading_name") %></th>
<td> <th><%= t("valuation.budget_investments.index.table_actions") %></th>
<%= link_to investment.title, valuation_budget_budget_investment_path(@budget, investment) %>
</td>
<td class="small">
<%= link_to t("valuation.budget_investments.index.edit"), edit_valuation_budget_budget_investment_path(@budget, investment) %>
</td>
<td class="small">
<%= assigned_valuators_info(investment.valuators) %>
</td>
<td class="small">
<%= investment.heading.name %>
</td>
</tr> </tr>
<% end %> </thead>
<tbody>
<% @investments.each do |investment| %>
<tr id="<%= dom_id(investment) %>">
<td>
<strong><%= investment.id %></strong>
</td>
<td>
<%= link_to investment.title, valuation_budget_budget_investment_path(@budget, investment) %>
</td>
<td class="small">
<%= investment.heading.name %>
</td>
<td class="small">
<%= link_to t("valuation.budget_investments.index.edit"),
edit_valuation_budget_budget_investment_path(@budget, investment),
class: "button hollow expanded" %>
</td>
</tr>
<% end %>
</tbody>
</table> </table>
<%= paginate @investments %> <%= paginate @investments %>

View File

@@ -5,13 +5,34 @@
<h3><%= page_entries_info @budgets %></h3> <h3><%= page_entries_info @budgets %></h3>
<table> <table>
<% @budgets.each do |budget| %> <thead>
<tr id="<%= dom_id(budget) %>" class="budget"> <tr>
<td> <th><%= t("valuation.budgets.index.table_name") %></th>
<%= link_to budget.name, valuation_budget_budget_investments_path(budget_id: budget.id) %> <th><%= t("valuation.budgets.index.table_phase") %></th>
</td> <th><%= t("valuation.budgets.index.table_assigned_headings") %></th>
<th><%= t("valuation.budgets.index.table_actions") %></th>
</tr> </tr>
<% end %> </thead>
<tbody>
<% @budgets.each do |budget| %>
<tr id="<%= dom_id(budget) %>" class="budget">
<td>
<%= budget.name %>
</td>
<td>
<%= t("budget.phase.#{budget.phase}") %>
</td>
<td>
3 partidas
</td>
<td>
<%= link_to t("valuation.budgets.index.evaluate"),
valuation_budget_budget_investments_path(budget_id: budget.id),
class: "button hollow expanded" %>
</td>
</tr>
<% end %>
</tbody>
</table> </table>
<%= paginate @budgets %> <%= paginate @budgets %>

View File

@@ -9,8 +9,13 @@ en:
index: index:
title: Participatory budgets title: Participatory budgets
filters: filters:
open: Open current: Open
finished: Finished finished: Finished
table_name: Name
table_phase: Phase
table_assigned_headings: Assigned headings
table_actions: Actions
evaluate: Evaluate
budget_investments: budget_investments:
index: index:
headings_filter_all: All headings headings_filter_all: All headings
@@ -19,11 +24,15 @@ en:
valuating: Under valuation valuating: Under valuation
valuation_finished: Valuation finished valuation_finished: Valuation finished
title: Investment projects title: Investment projects
edit: Edit edit: Edit dossier
valuators_assigned: valuators_assigned:
one: Assigned valuator one: Assigned valuator
other: "%{count} valuators assigned" other: "%{count} valuators assigned"
no_valuators_assigned: No valuators assigned no_valuators_assigned: No valuators assigned
table_id: ID
table_title: Title
table_heading_name: Heading name
table_actions: Actions
show: show:
back: Back back: Back
title: Investment project title: Investment project

View File

@@ -9,8 +9,13 @@ es:
index: index:
title: Presupuestos participativos title: Presupuestos participativos
filters: filters:
open: Abiertos current: Abiertos
finished: Terminados finished: Terminados
table_name: Nombre
table_phase: Fase
table_assigned_headings: Partidas asignadas
table_actions: Acciones
evaluate: Evaluar
budget_investments: budget_investments:
index: index:
headings_filter_all: Todas las partidas headings_filter_all: Todas las partidas
@@ -19,11 +24,15 @@ es:
valuating: En evaluación valuating: En evaluación
valuation_finished: Evaluación finalizada valuation_finished: Evaluación finalizada
title: Propuestas de inversión title: Propuestas de inversión
edit: Editar edit: Editar informe
valuators_assigned: valuators_assigned:
one: Evaluador asignado one: Evaluador asignado
other: "%{count} evaluadores asignados" other: "%{count} evaluadores asignados"
no_valuators_assigned: Sin evaluador no_valuators_assigned: Sin evaluador
table_id: ID
table_title: Título
table_heading_name: Nombre de la partida
table_actions: Acciones
show: show:
back: Volver back: Volver
title: Propuesta de inversión title: Propuesta de inversión