Toggle navigation
Log-in
Home
Page Index
User Index
Application Index
Global
Wiki Index
App Within Minutes
WizardStep
Wiki source code of
WizardStep
Last modified by eaminov on 2016/12/16 00:06
Manage
Copy
Actions
Export
Print preview
View Source
Viewers
Siblings
Content
Comments
Attachments
History
Information
×
Export
Office Formats
Export as PDF
Other Formats
Export as HTML
Show line numbers
{{velocity output="false"}} #set ($awmSteps = ['name', 'structure', 'entries', 'presentation']) #macro(appWizardHeader $stepId) {{html wiki="true"}} (% class="wizard-header" %) ((( #set($stepNumber = $awmSteps.indexOf($stepId) + 1) #set($stepTitle = $services.localization.render("appWithinMinutes.wizardStep.${stepId}.title")) = $services.localization.render('platform.appwithinminutes.wizardStepHeading', [$stepNumber, $stepTitle]) = (% class="steps" %) #foreach($step in $awmSteps) #set($index = $foreach.index + 1) #set($extraClassName = "#if($stepNumber == $index) active#elseif($stepNumber > $index) done#end") * (% class="number$extraClassName" %)#if($stepNumber > $index)&${escapetool.h}10004;#else$index#end(%%) (% class="name$extraClassName" %)$services.localization.render("appWithinMinutes.wizardStep.${step}.name") #end <div class="clearfloats"></div> ))) {{/html}} #end #macro(appWizardFooter $stepId) {{html wiki="true"}} (% class="wizard-footer buttons" %) ((( #set($nextLabel = $services.localization.render('platform.appwithinminutes.wizardStepNextButtonLabel')) #set($nextTip = $services.localization.render('platform.appwithinminutes.wizardStepNextButtonTip')) #if($stepId == 'presentation')## #set($nextLabel = $services.localization.render('platform.appwithinminutes.wizardStepFinishButtonLabel')) #set($nextTip = $services.localization.render('platform.appwithinminutes.wizardStepFinishButtonTip')) #set($templateProviderReference = "$stringtool.removeEnd($className, 'Class')TemplateProvider") #set($previousURL = $xwiki.getURL($templateProviderReference, 'edit', 'wizard=true&sheet=AppWithinMinutes.TemplateProviderEditSheet')) #elseif($stepId == 'entries') #set($classReference = "$stringtool.removeEnd($doc.fullName, 'TemplateProvider')Class") #set($previousURL = $xwiki.getURL($classReference, 'edit', 'wizard=true')) #elseif($stepId == 'structure' && $doc.isNew())## #set($previousURL = $xwiki.getURL('AppWithinMinutes.CreateApplication')) #end #if($previousURL)## <span class="buttonwrapper left"><a href="$previousURL" title="$escapetool.xml($services.localization.render('platform.appwithinminutes.wizardStepPreviousButtonTip'))" class="button secondary">$escapetool.xml($services.localization.render('platform.appwithinminutes.wizardStepPreviousButtonLabel'))</a></span>## #end <span class="buttonwrapper"><input type="submit" id="wizard-next" name="xaction_save" value="$escapetool.xml($nextLabel)" title="$escapetool.xml($nextTip)" class="button"/></span> ))) {{/html}} #end {{/velocity}} {{velocity}} #if($doc.fullName == 'AppWithinMinutes.WizardStep') Code shared by all AppWithinMinutes wizard steps. #else ## Use the style sheet and the JavaScript code required by the velocity macros previously defined. #set($discard = $xwiki.ssfx.use('uicomponents/wizard/wizard.css', true)) #set($discard = $xwiki.jsx.use('AppWithinMinutes.WizardStep')) #end {{/velocity}}
Applications
Blog
Dashboard
Help
More applications
Navigation