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

FORMS-699: Variablize breadcrumbs

parent 1b00d750
......@@ -88,6 +88,7 @@ public final class FormsConstants
public static final String MARK_CAN_BE_FILTERED = "can_be_filtered";
public static final String MARK_REFERENCE_LIST_SELECT = "ref_list_select";
public static final String MARK_ANONYMIZATION_HELP = "anonymization_help_message";
public static final String MARK_BREADCRUMBS = "breadcrumb_template";
public static final String VALUE_VALIDATOR_LISTEQUESTION_NAME = "forms_listQuestionValidator";
// Parameters
......
......@@ -171,8 +171,7 @@ public class FormQuestionJspBean extends AbstractJspBean
private static final String MARK_GROUP_VALIDATED = "groupValidated";
private static final String MARK_STEP_VALIDATED = "stepValidated";
private static final String MARK_ACTION = "action";
private static final String MARK_BREADCRUMBS = "breadcrumbs";
// Parameters
private static final String PARAMETER_VALUE_VALIDATE_STEP = "validateStep";
private static final String PARAMETER_VALUE_VALIDATE_GROUP = "validateGroup";
......@@ -327,7 +326,7 @@ public class FormQuestionJspBean extends AbstractJspBean
boolean canBeFiltered = Arrays.asList( FILTERABLE ).contains( entryTypeService.getClass( ) );
model.put( FormsConstants.MARK_CAN_BE_FILTERED, canBeFiltered );
model.put( MARK_BREADCRUMBS, AppTemplateService.getTemplate( TEMPLATE_BREADCRUMBS, request.getLocale( ), model ).getHtml( ) );
model.put( FormsConstants.MARK_BREADCRUMBS, AppTemplateService.getTemplate( TEMPLATE_BREADCRUMBS, request.getLocale( ), model ).getHtml( ) );
model.put( FormsConstants.MARK_QUESTION_CREATE_TEMPLATE,
AppTemplateService.getTemplate( TEMPLATE_CREATE_QUESTION, request.getLocale( ), model ).getHtml( ) );
model.put( FormsConstants.MARK_ANONYMIZATION_HELP, entryTypeService.getAnonymizationHelpMessage( request.getLocale( ) ) );
......@@ -861,7 +860,7 @@ public class FormQuestionJspBean extends AbstractJspBean
boolean canBeFiltered = Arrays.asList( FILTERABLE ).contains( entryTypeService.getClass( ) );
model.put( FormsConstants.MARK_CAN_BE_FILTERED, canBeFiltered );
model.put( MARK_BREADCRUMBS, AppTemplateService.getTemplate( TEMPLATE_BREADCRUMBS, request.getLocale( ), model ).getHtml( ) );
model.put( FormsConstants.MARK_BREADCRUMBS, AppTemplateService.getTemplate( TEMPLATE_BREADCRUMBS, request.getLocale( ), model ).getHtml( ) );
model.put( FormsConstants.MARK_QUESTION_MODIFY_TEMPLATE,
AppTemplateService.getTemplate( TEMPLATE_MODIFY_QUESTION, request.getLocale( ), model ).getHtml( ) );
model.put( FormsConstants.MARK_ANONYMIZATION_HELP, entryTypeService.getAnonymizationHelpMessage( request.getLocale( ) ) );
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box color='primary'>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box color='primary'>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@box color='primary'>
<@boxHeader title='#i18n{forms.createEntry.titleQuestion} : "${form.title}"' />
<@boxBody>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
......
......@@ -2,7 +2,7 @@
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "/admin/util/editor/editor.html" />
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
<@box>
......
<#include "all_entry_commons.html" />
${breadcrumbs}
${breadcrumb_template}
<@row>
<@columns>
......
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