{$productTitle}
+ {if $categorie ne ""}Cat : {$categorie}{/if} {if $hasDescription}{$DESCRIPTION nofilter}
@@ -42,7 +49,7 @@| {intl l="Step" d="recettes"} | -{intl l="Detail" d="recettes"} | - - - {loop name="steps-loop" type="recipe_steps" recipe_id=$recipe_id} -
|---|---|
| {$STEP} | -{$DESCRIPTION} | -
| {intl l="Product" d="recettes"} | diff --git a/local/modules/Recettes/templates/backOffice/default/includes/steps.html b/local/modules/Recettes/templates/backOffice/default/includes/steps.html new file mode 100644 index 00000000..2c543ca5 --- /dev/null +++ b/local/modules/Recettes/templates/backOffice/default/includes/steps.html @@ -0,0 +1,51 @@ + + + + +{form name="recette-step-create"} + {capture "step_create"} + {include file="modal/step-edit.html" form_name="recette-step-create" next_step=($last_step+1)} + {/capture} + + {include file="includes/generic-create-dialog.html" + + dialog_id = "add-step-modal" + dialog_title = {intl l="Create a new step" d="recettes"} + dialog_body = {$smarty.capture.step_create nofilter} + + dialog_ok_label = {intl l="Create"} + dialog_cancel_label = {intl l="Cancel"} + + form_action = {$current_url} + form_enctype = {form_enctype form=$form} + } +{/form} \ No newline at end of file diff --git a/local/modules/Recettes/templates/backOffice/default/modal/step-edit.html b/local/modules/Recettes/templates/backOffice/default/modal/step-edit.html new file mode 100644 index 00000000..10bc56a1 --- /dev/null +++ b/local/modules/Recettes/templates/backOffice/default/modal/step-edit.html @@ -0,0 +1,26 @@ +{form name=$form_name} + + {form_hidden_fields form=$form} + + {render_form_field form=$form field="success_url" value={$success_url|default:{url path="/admin/content/update/$contentId?current_tab=recipe"}}} + + {form_field form=$form field="step"} +
|---|