diff --git a/app/controllers/admin/budget_investments_controller.rb b/app/controllers/admin/budget_investments_controller.rb index 743faa166..8a7f33c3c 100644 --- a/app/controllers/admin/budget_investments_controller.rb +++ b/app/controllers/admin/budget_investments_controller.rb @@ -51,7 +51,7 @@ class Admin::BudgetInvestmentsController < Admin::BaseController def budget_investment_params params.require(:budget_investment) - .permit(:title, :description, :external_url, :heading_id, :administrator_id, :valuation_tag_list, valuator_ids: []) + .permit(:title, :description, :external_url, :heading_id, :administrator_id, :valuation_tag_list, :incompatible, valuator_ids: []) end def load_budget diff --git a/app/views/admin/budget_investments/edit.html.erb b/app/views/admin/budget_investments/edit.html.erb index 17dd88665..0e9b6afc9 100644 --- a/app/views/admin/budget_investments/edit.html.erb +++ b/app/views/admin/budget_investments/edit.html.erb @@ -61,9 +61,20 @@ -

+

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

+ +
+
+ <%= f.label :incompatible do %> + <%= f.check_box :incompatible, title: t('admin.budget_investments.edit.compatibility'), label: false %> + <%= t("admin.budget_investments.edit.mark_as_incompatible") %> + <% end %> +
+
+ +
<%= f.submit(class: "button", value: t("admin.budget_investments.edit.submit_button")) %> -

+
<% end %>
diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml index 72eca7a5d..24c3a9802 100755 --- a/config/locales/admin.en.yml +++ b/config/locales/admin.en.yml @@ -161,6 +161,8 @@ en: new_milestone: Create new milestone edit: classification: Clasification + compatibility: Compatibility + mark_as_incompatible: Mark this investement project as incompatible assigned_valuators: Valuators select_heading: Select heading submit_button: Update diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml index eb71ceba2..fbc56fa04 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -161,6 +161,8 @@ es: new_milestone: Crear nuevo hito edit: classification: Clasificación + compatibility: Compatibilidad + mark_as_incompatible: Marcar esta propuesta de inversión como incompatible assigned_valuators: Evaluadores select_heading: Seleccionar partida submit_button: Actualizar