diff --git a/app/controllers/admin/dashboard/actions_controller.rb b/app/controllers/admin/dashboard/actions_controller.rb index 98fd27072..5435fb6b5 100644 --- a/app/controllers/admin/dashboard/actions_controller.rb +++ b/app/controllers/admin/dashboard/actions_controller.rb @@ -24,7 +24,9 @@ class Admin::Dashboard::ActionsController < Admin::Dashboard::BaseController end end - def edit; end + def edit + dashboard_action + end def update if dashboard_action.update(dashboard_action_params) diff --git a/app/helpers/admin/proposal_dashboard_actions_helper.rb b/app/helpers/admin/proposal_dashboard_actions_helper.rb index e02fea113..80656b4cf 100644 --- a/app/helpers/admin/proposal_dashboard_actions_helper.rb +++ b/app/helpers/admin/proposal_dashboard_actions_helper.rb @@ -7,4 +7,8 @@ module Admin::ProposalDashboardActionsHelper def default_actions %w[polls email poster] end + + def css_for_resource(action) + "hide" if action == "proposed_action" + end end diff --git a/app/views/admin/dashboard/actions/_form.html.erb b/app/views/admin/dashboard/actions/_form.html.erb index 3e2e6f185..8060b6719 100644 --- a/app/views/admin/dashboard/actions/_form.html.erb +++ b/app/views/admin/dashboard/actions/_form.html.erb @@ -16,9 +16,10 @@ <%= f.check_box :active, label: ::Dashboard::Action.human_attribute_name(:active) %> -
- <%= f.check_box :request_to_administrators, label: ::Dashboard::Action.human_attribute_name(:request_to_administrators) %> +
+ <%= f.check_box :request_to_administrators %>