@@ -31,6 +33,16 @@
{form_error form=$form field="title"}{$message}{/form_error}
{/form_field}
+ {form_field form=$form field="summary"}
+
+
+ {if $required}*{/if}
+
+
+ {form_error form=$form field="summary"}{$message}{/form_error}
+ {/form_field}
{form_field form=$form field="difficulty"}
diff --git a/local/modules/Recettes/templates/frontOffice/default/assets/css/Recettes.css b/local/modules/Recettes/templates/frontOffice/default/assets/css/Recettes.css
index 95934e55..f2220d35 100644
--- a/local/modules/Recettes/templates/frontOffice/default/assets/css/Recettes.css
+++ b/local/modules/Recettes/templates/frontOffice/default/assets/css/Recettes.css
@@ -4,6 +4,7 @@ article#recette {
display: flex;
flex-direction: column;
align-items: normal;
+ margin: auto;
}
div.entete {
@@ -28,3 +29,7 @@ div.entete span {
div.entete span b {
color: #0e0e0e;
}
+.photo-principale img {
+ width: 250px;
+ box-shadow: 10px 10px 15px gray;
+}
\ No newline at end of file
diff --git a/templates/frontOffice/custom/recette.html b/templates/frontOffice/custom/recette.html
index cd2f8919..279c9917 100644
--- a/templates/frontOffice/custom/recette.html
+++ b/templates/frontOffice/custom/recette.html
@@ -29,31 +29,51 @@
{block name="main-content"}
{if $content_id}
-
-
+
+
{loop type="recipe" name="recipe-loop" content_id=$content_id limit="1"}
{if $DIFFICULTY eq 0}{assign var="label_difficulty" value="Facile"}{/if}
{if $DIFFICULTY eq 1}{assign var="label_difficulty" value="Moyen"}{/if}
{if $DIFFICULTY eq 2}{assign var="label_difficulty" value="Difficile"}{/if}
-
{$TITLE}
-
+
{intl l='Preparation time' d='recettes'}
{$PREPARATION_TIME}
{intl l='Cooking time' d='recettes'}
{$COOKING_TIME}
{intl l='Difficulty' d='recettes'}
{$label_difficulty}
-
- {loop type="image" name="image-loop" content=$content_id}
-

+
+ {loop type="image" name="image-loop" content=$content_id visible=true}
+

{/loop}
-
+
+
{intl l='Nos produits' d='recettes'}
+
+
+
{intl l='Autres ingrédients' d='recettes'}
+
+
-
+
{/loop}