From e4235aacbb6babd66f57bd034c5f440f3b011bc2 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 6 Mar 2024 16:30:15 +0100 Subject: [PATCH 1/3] Change icon for row element --- src/Resources/config/richeditor.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/config/richeditor.yaml b/src/Resources/config/richeditor.yaml index f18bb437..66583273 100644 --- a/src/Resources/config/richeditor.yaml +++ b/src/Resources/config/richeditor.yaml @@ -170,7 +170,7 @@ monsieurbiz_sylius_richeditor: alias: row title: 'monsieurbiz_richeditor_plugin.ui_element.monsieurbiz.row.title' description: 'monsieurbiz_richeditor_plugin.ui_element.monsieurbiz.row.description' - icon: columns + icon: bars tags: [ default, layout ] classes: form: MonsieurBiz\SyliusRichEditorPlugin\Form\Type\UiElement\RowType From 97294d080faae280fb1c304bec901dc977dcad1d Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 6 Mar 2024 16:34:12 +0100 Subject: [PATCH 2/3] Change translation for row and column elements --- src/Resources/translations/messages.en.yml | 4 ++-- src/Resources/translations/messages.fr.yml | 4 ++-- src/Resources/translations/messages.hr.yml | 6 +++--- src/Resources/translations/messages.nl.yml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Resources/translations/messages.en.yml b/src/Resources/translations/messages.en.yml index 4c90c0e3..d4127573 100644 --- a/src/Resources/translations/messages.en.yml +++ b/src/Resources/translations/messages.en.yml @@ -2,12 +2,12 @@ monsieurbiz_richeditor_plugin: ui_element: monsieurbiz.column: title: 'Column Layout Element' - description: 'A layout to display elements as a column' + description: 'A layout to display elements column by column' field: content: 'Content' monsieurbiz.row: title: 'Row Layout Element' - description: 'A layout to display elements as a row' + description: 'A layout to display elements row by row' field: content: 'Content' monsieurbiz.html: diff --git a/src/Resources/translations/messages.fr.yml b/src/Resources/translations/messages.fr.yml index 6bcdd831..1984d06d 100644 --- a/src/Resources/translations/messages.fr.yml +++ b/src/Resources/translations/messages.fr.yml @@ -2,12 +2,12 @@ monsieurbiz_richeditor_plugin: ui_element: monsieurbiz.column: title: 'Lame Colonne' - description: 'Une lame contenant d''autres lames affichées en colonne' + description: 'Une mise en page pour afficher les éléments colonne par colonne' field: content: 'Contenu' monsieurbiz.row: title: 'Lame Ligne' - description: 'Une lame contenant d''autres lames affichées côte à côte' + description: 'Une mise en page pour afficher les éléments ligne par ligne' field: content: 'Contenu' monsieurbiz.html: diff --git a/src/Resources/translations/messages.hr.yml b/src/Resources/translations/messages.hr.yml index 654b1b43..86f01ca5 100644 --- a/src/Resources/translations/messages.hr.yml +++ b/src/Resources/translations/messages.hr.yml @@ -1,13 +1,13 @@ monsieurbiz_richeditor_plugin: ui_element: monsieurbiz.column: - title: 'Kolona' - description: 'Element koji sadrži druge elemente unutra' + title: 'Stupac' + description: 'Raspored za prikaz elemenata stupac po stupac' field: content: 'Sadržaj' monsieurbiz.row: title: 'Red' - description: 'Element koji sadrži druge elemente unutra' + description: 'Raspored za prikaz elemenata red po red' field: content: 'Sadržaj' monsieurbiz.html: diff --git a/src/Resources/translations/messages.nl.yml b/src/Resources/translations/messages.nl.yml index 5279b383..339f8d1e 100644 --- a/src/Resources/translations/messages.nl.yml +++ b/src/Resources/translations/messages.nl.yml @@ -2,12 +2,12 @@ monsieurbiz_richeditor_plugin: ui_element: monsieurbiz.column: title: 'Kolom' - description: 'Een element met een lijst met elementen erin' + description: 'Een lay-out om elementen kolom per kolom weer te geven' field: content: 'Inhoud' monsieurbiz.row: title: 'Rij' - description: 'Een element met een lijst met elementen erin' + description: 'Een lay-out om elementen rij per rij weer te geven' field: content: 'Inhoud' monsieurbiz.html: From 702e45b596ecb1ad2576059b66256236e5c99784 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 6 Mar 2024 16:48:58 +0100 Subject: [PATCH 3/3] Add wireframes for column and row --- src/Resources/config/richeditor.yaml | 2 ++ src/Resources/views/Wireframe/column.svg.twig | 20 +++++++++++++++++++ src/Resources/views/Wireframe/row.svg.twig | 20 +++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 src/Resources/views/Wireframe/column.svg.twig create mode 100644 src/Resources/views/Wireframe/row.svg.twig diff --git a/src/Resources/config/richeditor.yaml b/src/Resources/config/richeditor.yaml index 66583273..a068642f 100644 --- a/src/Resources/config/richeditor.yaml +++ b/src/Resources/config/richeditor.yaml @@ -160,6 +160,7 @@ monsieurbiz_sylius_richeditor: title: 'monsieurbiz_richeditor_plugin.ui_element.monsieurbiz.column.title' description: 'monsieurbiz_richeditor_plugin.ui_element.monsieurbiz.column.description' icon: columns + wireframe: column tags: [ default, layout ] classes: form: MonsieurBiz\SyliusRichEditorPlugin\Form\Type\UiElement\ColumnType @@ -171,6 +172,7 @@ monsieurbiz_sylius_richeditor: title: 'monsieurbiz_richeditor_plugin.ui_element.monsieurbiz.row.title' description: 'monsieurbiz_richeditor_plugin.ui_element.monsieurbiz.row.description' icon: bars + wireframe: row tags: [ default, layout ] classes: form: MonsieurBiz\SyliusRichEditorPlugin\Form\Type\UiElement\RowType diff --git a/src/Resources/views/Wireframe/column.svg.twig b/src/Resources/views/Wireframe/column.svg.twig new file mode 100644 index 00000000..cc49a508 --- /dev/null +++ b/src/Resources/views/Wireframe/column.svg.twig @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/Resources/views/Wireframe/row.svg.twig b/src/Resources/views/Wireframe/row.svg.twig new file mode 100644 index 00000000..64db725e --- /dev/null +++ b/src/Resources/views/Wireframe/row.svg.twig @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + +