diff --git a/app/assets/images/communication/blocks/templates/pages/alternate.png b/app/assets/images/communication/blocks/templates/pages/alternate.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2a52c219a95deb971b383bd7b33b648fc455c Binary files /dev/null and b/app/assets/images/communication/blocks/templates/pages/alternate.png differ diff --git a/app/models/communication/block/template/page.rb b/app/models/communication/block/template/page.rb index 8651290b3b2b2a235bb3429f566de09b82e7b4d7..8ae847626be968e0cfdf709c56986817978e61eb 100644 --- a/app/models/communication/block/template/page.rb +++ b/app/models/communication/block/template/page.rb @@ -1,7 +1,7 @@ class Communication::Block::Template::Page < Communication::Block::Template::Base has_elements - has_layouts [:grid, :list, :cards] + has_layouts [:grid, :list, :cards, :alternate] has_component :mode, :option, options: [:selection, :children] has_component :text, :rich_text has_component :page_id, :page diff --git a/app/views/admin/communication/blocks/components/layout/_edit.html.erb b/app/views/admin/communication/blocks/components/layout/_edit.html.erb index a6b572ac9892da9356ffc4ebc5b4b57e058c3430..b20ed7a7e8f78aee87b36d6b1909cd77d20530b4 100644 --- a/app/views/admin/communication/blocks/components/layout/_edit.html.erb +++ b/app/views/admin/communication/blocks/components/layout/_edit.html.erb @@ -35,7 +35,9 @@ layouts = template.class.layouts v-model="data.layout" value="<%= layout %>" id="layout-<%= layout %>"> - <h3 class="h4"><%= name %></h3> + <label for="layout-<%= layout %>"> + <b><%= name %></b> + </label> </div> <p><%= description %></p> </div> diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index b44050096f649c85683cbc2db8abe6fd118731ff..e25a3e57ec7bec58418febce75441927e26a9da6 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -486,6 +486,9 @@ en: list: label: List description: The main page's short description is used as a big text, and the pages are listed on the right. + alternate: + label: Alternate + description: Pages either on the left or on the right, composing a graphically light layout. edit: mode: label: List kind diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 4d98d28791c099cf4fbcf224f3c6a77b63621cec..ff64b5856adcfb5c40b1abfd617f79d9e352fdb9 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -486,6 +486,9 @@ fr: list: label: Liste description: Le chapô de la page principale sert d'édito en gros et les pages sont présentées sous forme de liste à droite. + alternate: + label: Alternance + description: Une alternance très légère graphiquement de pages, rythmée entre la gauche et la droite. edit: mode: label: Type de liste