From 646b3657ee43506fe93a3ab314c84cf8e5b665f9 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Mon, 3 Jul 2017 18:21:49 +0200 Subject: [PATCH] Add investment status on admin budget investment detail show page --- app/views/admin/budget_investments/show.html.erb | 5 +++++ config/locales/admin.en.yml | 4 ++++ config/locales/admin.es.yml | 4 ++++ config/routes.rb | 1 - 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/views/admin/budget_investments/show.html.erb b/app/views/admin/budget_investments/show.html.erb index f220c0955..95fc6c76a 100644 --- a/app/views/admin/budget_investments/show.html.erb +++ b/app/views/admin/budget_investments/show.html.erb @@ -56,3 +56,8 @@

<%= link_to t("admin.budget_investments.show.new_milestone"), new_admin_budget_budget_investment_budget_investment_milestone_path(@budget, @investment) %>

+ +

<%= t("admin.budget_investments.show.compatibility.title") %>

+

+ <%= t("admin.budget_investments.show.compatibility.#{@investment.incompatible?}") %> +

diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml index 24c3a9802..6f72defa5 100755 --- a/config/locales/admin.en.yml +++ b/config/locales/admin.en.yml @@ -159,6 +159,10 @@ en: undefined: Undefined milestone: Milestone new_milestone: Create new milestone + compatibility: + title: Compatibility + "true": Incompatible + "false": Compatible edit: classification: Clasification compatibility: Compatibility diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml index fbc56fa04..773520629 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -159,6 +159,10 @@ es: undefined: Sin definir milestone: Seguimiento new_milestone: Crear nuevo hito + compatibility: + title: Compatibilidad + "true": Incompatible + "false": Compatible edit: classification: Clasificación compatibility: Compatibilidad diff --git a/config/routes.rb b/config/routes.rb index dbf3e4709..bdf1e22f3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -210,7 +210,6 @@ Rails.application.routes.draw do end end - resources :signature_sheets, only: [:index, :new, :create, :show] resources :banners, only: [:index, :new, :create, :edit, :update, :destroy] do