diff --git a/app/models/communication/block/template/page.rb b/app/models/communication/block/template/page.rb index 34c92822d..ac4044bd2 100644 --- a/app/models/communication/block/template/page.rb +++ b/app/models/communication/block/template/page.rb @@ -18,6 +18,7 @@ class Communication::Block::Template::Page < Communication::Block::Template::Bas has_component :category_id, :page_category has_component :option_image, :boolean, default: true + has_component :option_subtitle, :boolean, default: true has_component :option_categories, :boolean, default: false has_component :option_main_summary, :boolean, default: true has_component :option_summary, :boolean, default: true diff --git a/app/views/admin/communication/blocks/templates/pages/_edit.html.erb b/app/views/admin/communication/blocks/templates/pages/_edit.html.erb index a24d76640..77a67dc5e 100644 --- a/app/views/admin/communication/blocks/templates/pages/_edit.html.erb +++ b/app/views/admin/communication/blocks/templates/pages/_edit.html.erb @@ -44,6 +44,7 @@ <%= osuny_label t('admin.communication.blocks.display_options.title') %> <%= block_component_edit block, :option_main_summary %> <%= block_component_edit block, :option_image %> + <%= block_component_edit block, :option_subtitle %> <%= block_component_edit block, :option_summary %> <%= block_component_edit block, :option_categories %> <% end %> \ No newline at end of file diff --git a/config/locales/communication/blocks/en.yml b/config/locales/communication/blocks/en.yml index 711c3822d..a689ecca8 100644 --- a/config/locales/communication/blocks/en.yml +++ b/config/locales/communication/blocks/en.yml @@ -595,6 +595,8 @@ en: label: Show pages images option_main_summary: label: Show main page summary + option_subtitle: + label: Show pages subtitle option_summary: label: Show pages short descriptions page_id: diff --git a/config/locales/communication/blocks/fr.yml b/config/locales/communication/blocks/fr.yml index 7e4836970..476a712e2 100644 --- a/config/locales/communication/blocks/fr.yml +++ b/config/locales/communication/blocks/fr.yml @@ -596,6 +596,8 @@ fr: label: Afficher les images des pages option_main_summary: label: Afficher le résumé de la page principale + option_subtitle: + label: Afficher les sous-titres des pages option_summary: label: Afficher les descriptions courtes des pages page_id: