Commit 34e83c5e authored by Guillaume Lépine's avatar Guillaume Lépine
Browse files

FORMS-698 : use macro formBreadCrumb for create/modify entries

parent ca1ee0b6
<#--- MACRO breadforms --->
<#macro breadforms title=''>
<@row>
<@breadcrumbs id='breadforms'>
<li>
<@link href='jsp/admin/plugins/forms/ManageForms.jsp' title='Retour'><@icon style='home' /></@link>
</li>
<li>
<@link href='jsp/admin/plugins/forms/ManageSteps.jsp?view=manageSteps&id_form=${form.id}' title='Liste des étapes'>${form.title}</@link>
</li>
<li>
<@link href='jsp/admin/plugins/forms/ManageQuestions.jsp?view=manageQuestions&id_step=${step.id}' title='Liste des questions'>${step.title}</@link>
</li>
<li class="active">
${title}
</li>
</@breadcrumbs>
</@row>
<@formBreadCrumb>
<#if step.final && step.initial>
<@breadcrumbItem class='active is-active'>${form.title}</@breadcrumbItem>
<#else>
<@breadcrumbItem><@link href='jsp/admin/plugins/forms/ManageSteps.jsp?view=manageSteps&id_form=${form.id}' title='Liste des étapes'>${form.title}</@link></@breadcrumbItem>
<@breadcrumbItem><@link href='jsp/admin/plugins/forms/ManageQuestions.jsp?view=manageQuestions&id_step=${step.id}' title='Liste des questions'>${step.title}</@link></@breadcrumbItem>
</#if>
<@breadcrumbItem class='active is-active'>${title}</@breadcrumbItem>
</@formBreadCrumb>
</#macro>
<#macro confirmField>
......
......@@ -301,11 +301,11 @@ $( function(){
</script>
</#macro>
<#macro formBreadCrumb>
<#macro formBreadCrumb home='jsp/admin/plugins/forms/ManageForms.jsp'>
<@row>
<@breadcrumbs id='breadforms' params=' style="margin-bottom:1em; background-color:transparent;"' >
<@breadcrumbs id='breadforms' params=' style="margin-bottom:1em; background-color:transparent;"'>
<@breadcrumbItem>
<@link href='jsp/admin/plugins/forms/ManageForms.jsp' title='Retour liste des formulaires'>
<@link href=home title='Retour liste des formulaires'>
<@icon style='home' />
</@link>
</@breadcrumbItem>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment