| {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 @@
+
+
+ | {intl l="Step" d="recettes"} |
+ {intl l="Detail" d="recettes"} |
+
+
+ {assign var="last_step" value="0"}
+ {loop name="steps-loop" type="recipe_steps" recipe_id=$recipe_id}
+
+ |
+ {$STEP}
+ {if $LOOP_COUNT > 1}
+
+ {/if}
+ {if $LOOP_COUNT < $LOOP_TOTAL}
+
+ {/if} |
+ {$DESCRIPTION} |
+
+
+ |
+
+ {if $LOOP_COUNT=$LOOP_TOTAL}{assign var="last_step" value="$STEP"}{/if}
+ {/loop}
+
+
+
+
+
+
+
+{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"}
+
+
+
+
+ {/form_field}
+
+ {form_field form=$form field="description"}
+
+
+
+ {form_error form=$form field="description"}{$message}{/form_error}
+
+
+ {/form_field}
+
+{/form}
\ No newline at end of file
diff --git a/local/modules/Recettes/templates/backOffice/default/recette-tab.html b/local/modules/Recettes/templates/backOffice/default/recette-tab.html
index 91ba7c2b..ccdc9da4 100644
--- a/local/modules/Recettes/templates/backOffice/default/recette-tab.html
+++ b/local/modules/Recettes/templates/backOffice/default/recette-tab.html
@@ -1,4 +1,5 @@
{loop type="recipe" name="recipe-loop" content_id=$content_id limit="1"}
+ {assign var="recipe_id" value=$ID}
{assign var="title" value=$TITLE}
{assign var="summary" value=$SUMMARY}
{assign var="people" value=$PEOPLE}
@@ -114,12 +115,12 @@