General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
AppWithinMinutes
▼
:
Document Index
»
Page:
WizardStep
Search
default
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Main wiki
»
App Within Minutes
»
WizardStep
Wiki source code of
WizardStep
Last modified by
Administrator
on 2012/03/21 17:41
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity output="false"}} #macro(appWizardHeader $stepNumber) {{html wiki="true"}} (% class="wizard-header" %) ((( #set($stepTitle = $msg.get("platform.appwithinminutes.wizardStep${stepNumber}Title")) = $msg.get('platform.appwithinminutes.wizardStepHeading', [$stepNumber, $stepTitle]) = (% class="steps" %) #foreach($index in [1,2,3]) #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" %)$msg.get("platform.appwithinminutes.wizardStep${index}Name") #end <div class="clearfloats"></div> ))) {{/html}} #end #macro(appWizardFooter $stepNumber) {{html wiki="true"}} (% class="wizard-footer buttons" %) ((( #set($nextLabel = $msg.get('platform.appwithinminutes.wizardStepNextButtonLabel')) #set($nextTip = $msg.get('platform.appwithinminutes.wizardStepNextButtonTip')) #if($stepNumber == 3)## #set($nextLabel = $msg.get('platform.appwithinminutes.wizardStepFinishButtonLabel')) #set($nextTip = $msg.get('platform.appwithinminutes.wizardStepFinishButtonTip')) #set($previousURL = $xwiki.getURL($className, 'edit', 'wizard=true')) #elseif($stepNumber == 2 && $doc.isNew())## #set($previousURL = $xwiki.getURL('AppWithinMinutes.CreateApplication')) #end #if($previousURL)## <span class="buttonwrapper left"><a href="$previousURL" title="$escapetool.xml($msg.get('platform.appwithinminutes.wizardStepPreviousButtonTip'))" class="button secondary">$escapetool.xml($msg.get('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.ssx.use('AppWithinMinutes.WizardStep')) #set($discard = $xwiki.jsx.use('AppWithinMinutes.WizardStep')) #end {{/velocity}}