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
Hide line numbers
1: {{velocity output="false"}} 2: #macro(appWizardHeader $stepNumber) 3: {{html wiki="true"}} 4: (% class="wizard-header" %) 5: ((( 6: #set($stepTitle = $msg.get("platform.appwithinminutes.wizardStep${stepNumber}Title")) 7: = $msg.get('platform.appwithinminutes.wizardStepHeading', [$stepNumber, $stepTitle]) = 8: 9: (% class="steps" %) 10: #foreach($index in [1,2,3]) 11: #set($extraClassName = "#if($stepNumber == $index) active#elseif($stepNumber > $index) done#end") 12: * (% class="number$extraClassName" %)#if($stepNumber > $index)&${escapetool.h}10004;#else$index#end(%%) (% class="name$extraClassName" %)$msg.get("platform.appwithinminutes.wizardStep${index}Name") 13: #end 14: 15: <div class="clearfloats"></div> 16: ))) 17: {{/html}} 18: #end 19: 20: #macro(appWizardFooter $stepNumber) 21: {{html wiki="true"}} 22: (% class="wizard-footer buttons" %) 23: ((( 24: #set($nextLabel = $msg.get('platform.appwithinminutes.wizardStepNextButtonLabel')) 25: #set($nextTip = $msg.get('platform.appwithinminutes.wizardStepNextButtonTip')) 26: #if($stepNumber == 3)## 27: #set($nextLabel = $msg.get('platform.appwithinminutes.wizardStepFinishButtonLabel')) 28: #set($nextTip = $msg.get('platform.appwithinminutes.wizardStepFinishButtonTip')) 29: #set($previousURL = $xwiki.getURL($className, 'edit', 'wizard=true')) 30: #elseif($stepNumber == 2 && $doc.isNew())## 31: #set($previousURL = $xwiki.getURL('AppWithinMinutes.CreateApplication')) 32: #end 33: #if($previousURL)## 34: <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>## 35: #end 36: <span class="buttonwrapper"><input type="submit" id="wizard-next" name="xaction_save" value="$escapetool.xml($nextLabel)" title="$escapetool.xml($nextTip)" class="button"/></span> 37: ))) 38: {{/html}} 39: #end 40: {{/velocity}} 41: 42: {{velocity}} 43: #if($doc.fullName == 'AppWithinMinutes.WizardStep') 44: Code shared by all AppWithinMinutes wizard steps. 45: #else 46: ## Use the style sheet and the JavaScript code required by the velocity macros previously defined. 47: #set($discard = $xwiki.ssx.use('AppWithinMinutes.WizardStep')) 48: #set($discard = $xwiki.jsx.use('AppWithinMinutes.WizardStep')) 49: #end 50: {{/velocity}}