From 9981483269c7efaf7b9bf0e8ea866ac69fdce68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ig=C3=B3n?= Date: Wed, 16 Oct 2024 17:45:45 +0200 Subject: [PATCH] change settings options for highlighted processes/conferences/initiatives --- .../highlighted_conferences_settings_form/show.erb | 2 +- .../highlighted_initiatives_settings_form/show.erb | 2 +- .../content_blocks/highlighted_processes_settings_form/show.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb b/decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb index f160e635171e6..e77b77ad640bd 100644 --- a/decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +++ b/decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb @@ -1,3 +1,3 @@ <% form.fields_for :settings, form.object.settings do |settings_fields| %> - <%= settings_fields.select :max_results, [6, 9, 12], prompt: "", label: %> + <%= settings_fields.select :max_results, (3..30).step(3).to_a, prompt: "", label: %> <% end %> diff --git a/decidim-initiatives/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb b/decidim-initiatives/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb index 75e6b28e42e02..34b01d401aa74 100644 --- a/decidim-initiatives/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb +++ b/decidim-initiatives/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb @@ -1,4 +1,4 @@ <% form.fields_for :settings, form.object.settings do |settings_fields| %> - <%= settings_fields.select :max_results, [4, 8, 12], prompt: "", label: max_results_label %> + <%= settings_fields.select :max_results, (3..30).step(3).to_a, prompt: "", label: max_results_label %> <%= settings_fields.select :order, order_select, prompt: "", label: order_label %> <% end %> diff --git a/decidim-participatory_processes/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb b/decidim-participatory_processes/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb index f160e635171e6..e77b77ad640bd 100644 --- a/decidim-participatory_processes/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb +++ b/decidim-participatory_processes/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb @@ -1,3 +1,3 @@ <% form.fields_for :settings, form.object.settings do |settings_fields| %> - <%= settings_fields.select :max_results, [6, 9, 12], prompt: "", label: %> + <%= settings_fields.select :max_results, (3..30).step(3).to_a, prompt: "", label: %> <% end %>