From 3121dd066e1c0495a4d7956f50e05573c94c0e00 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Tue, 27 Dec 2016 18:02:35 +0100 Subject: [PATCH] adds thead and button to select on budget investement index table --- .../admin/budget_investments/index.html.erb | 22 +++++++++++++++++++ config/locales/admin.en.yml | 9 ++++++++ config/locales/admin.es.yml | 9 ++++++++ 3 files changed, 40 insertions(+) diff --git a/app/views/admin/budget_investments/index.html.erb b/app/views/admin/budget_investments/index.html.erb index 5aff40115..737bac9c8 100644 --- a/app/views/admin/budget_investments/index.html.erb +++ b/app/views/admin/budget_investments/index.html.erb @@ -41,6 +41,17 @@

<%= page_entries_info @investments %>

+ + + + + + + + + + + <% @investments.each do |investment| %> + <% end %>
<%= t("admin.budget_investments.index.table_id") %><%= t("admin.budget_investments.index.table_title") %><%= t("admin.budget_investments.index.table_admin") %><%= t("admin.budget_investments.index.table_valuator") %><%= t("admin.budget_investments.index.table_geozone") %><%= t("admin.budget_investments.index.table_status") %><%= t("admin.budget_investments.index.table_actions") %>
@@ -69,6 +80,17 @@ <%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}", price: investment.price) %> + <% if investment.feasible? %> + <%= link_to "#", class: "button small hollow expanded" do %> + <%= t("admin.budget_investments.index.select") %> + <% end %> + <% else %> + <%= link_to "#", class: "button small hollow warning expanded" do %> + <%= t("admin.budget_investments.index.deselect") %> + <% end %> + <% end %> +
diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml index c70eda84d..75f446851 100755 --- a/config/locales/admin.en.yml +++ b/config/locales/admin.en.yml @@ -114,6 +114,15 @@ en: feasible: "Feasible (%{price})" not_feasible: "Not feasible" undefined: "Undefined" + deselect: "Deselect" + select: "Select" + table_id: "ID" + table_title: "Title" + table_admin: "Administrator" + table_valuator: "Valuator" + table_geozone: "Scope of operation" + table_status: "Status" + table_actions: "Actions" show: assigned_admin: Assigned administrator assigned_valuators: Assigned valuators diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml index 579029f18..bffb2f336 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -114,6 +114,15 @@ es: feasible: "Viable (%{price})" not_feasible: "Inviable" undefined: "Sin definir" + deselect: "Deseleccionar" + select: "Seleccionar" + table_id: "ID" + table_title: "Título" + table_admin: "Administrador" + table_valuator: "Evaluador" + table_geozone: "Ámbito de actuación" + table_status: "Estado" + table_actions: "Acciones" show: assigned_admin: Administrador asignado assigned_valuators: Evaluadores asignados