diff --git a/app/controllers/admin/budget_investments_controller.rb b/app/controllers/admin/budget_investments_controller.rb index 8a7f33c3c..dd10930fb 100644 --- a/app/controllers/admin/budget_investments_controller.rb +++ b/app/controllers/admin/budget_investments_controller.rb @@ -51,7 +51,8 @@ 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, :incompatible, valuator_ids: []) + .permit(:title, :description, :external_url, :heading_id, :administrator_id, :valuation_tag_list, :incompatible, + :selected, 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 0e9b6afc9..1e21ee706 100644 --- a/app/views/admin/budget_investments/edit.html.erb +++ b/app/views/admin/budget_investments/edit.html.erb @@ -61,15 +61,22 @@ -

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

-
-
+
+
+

<%= 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 %>
+
+

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

+ <%= f.label :selected do %> + <%= f.check_box :selected, title: t('admin.budget_investments.edit.selection'), label: false %> + <%= t("admin.budget_investments.edit.mark_as_selected") %> + <% end %> +
diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml index 999689492..864222da1 100755 --- a/config/locales/admin.en.yml +++ b/config/locales/admin.en.yml @@ -166,7 +166,9 @@ en: edit: classification: Clasification compatibility: Compatibility - mark_as_incompatible: Mark this investement project as incompatible + mark_as_incompatible: Mark as incompatible + selection: Selection + mark_as_selected: Mark as selected 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 c77a95062..ca103f661 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -166,7 +166,9 @@ es: edit: classification: Clasificación compatibility: Compatibilidad - mark_as_incompatible: Marcar esta propuesta de inversión como incompatible + mark_as_incompatible: Marcar como incompatible + selected: Selección + mark_as_selected: Marcar como seleccionado assigned_valuators: Evaluadores select_heading: Seleccionar partida submit_button: Actualizar