Changes for page Create Application

Last modified by Thomas Mortagne on 2023/11/30 14:34

From version 8.1
edited by Thomas Mortagne
on 2015/11/23 12:25
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-7.3]
To version 9.1
edited by Thomas Mortagne
on 2016/12/26 12:53
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-8.4.3]

Summary

Details

Page properties
Content
... ... @@ -5,14 +5,14 @@
5 5  {{velocity output="false"}}
6 6  #macro(showStep)
7 7   {{html wiki="true"}}
8 - #appWizardHeader(1)
8 + #appWizardHeader('name')
9 9   (% class="wizard-help" %)
10 10   (((
11 11   **$services.localization.render('platform.appwithinminutes.wizardStepHelpTitle')** $services.localization.render('platform.appwithinminutes.wizardStepHelpDescription')
12 12   (% class="steps vertical" %)
13 - #foreach($index in [1, 2, 3])
14 - * (% class="number" %)$index(%%) (% class="name" %)$services.localization.render("platform.appwithinminutes.wizardStep${index}Name")(%%)
15 - (% class="description" %)$services.localization.render("platform.appwithinminutes.wizardStep${index}Description")
13 + #foreach($step in $awmSteps)
14 + * (% class="number" %)$mathtool.add($foreach.index, 1)(%%) (% class="name" %)$services.localization.render("appWithinMinutes.wizardStep.${step}.name")(%%)
15 + (% class="description" %)$services.localization.render("appWithinMinutes.wizardStep.${step}.description")
16 16   #end
17 17   )))
18 18   <form action="$doc.getURL()" method="post" class="xform wizard-body">
... ... @@ -59,7 +59,6 @@
59 59   #if (!$xwiki.exists($appClassRef))
60 60   #set ($appHomeRef = $services.model.resolveDocument('', 'default', $appReference))
61 61   #set ($discard = $queryString.putAll({
62 - 'editor': 'inline',
63 63   'template': 'AppWithinMinutes.ClassTemplate',
64 64   'parent': $services.model.serialize($appHomeRef),
65 65   'title': "$appReference.name Class"
... ... @@ -80,23 +80,15 @@
80 80   #set ($appClassRef = $appDescriptorObj.getValue('class'))
81 81   ## The class reference is relative to the document holding the application descriptor.
82 82   #set ($appClassRef = $services.model.resolveDocument($appClassRef, 'explicit', $appDescriptor.documentReference))
83 - #set ($appDataRef = $appDescriptorObj.getValue('dataSpace'))
84 - ## The data space reference is relative to the document holding the application descriptor.
85 - #set ($appDataRef = $services.model.resolveSpace($appDataRef, 'explicit', $appDescriptor.documentReference))
86 86   #else
87 87   ## Create a new application.
88 - #set ($appDataRef = $services.model.createSpaceReference('Data', $appReference))
89 89   #set ($appCodeRef = $services.model.createSpaceReference('Code', $appReference))
90 90   #set ($appClassRef = $services.model.createDocumentReference("$!{appReference.name}Class", $appCodeRef))
91 91   #end
92 92   ; $services.localization.render('platform.appwithinminutes.appNamePreviewHomePageUrlLabel')
93 93   : {{{$!xwiki.getDocument($appReference).externalURL}}}
94 - ; $services.localization.render('platform.appwithinminutes.appNamePreviewDataSpaceLabel')
95 - : {{html clean="false"}}#hierarchy($appDataRef){{/html}}
96 96   ; $services.localization.render('platform.appwithinminutes.appNamePreviewCodeSpaceLabel')
97 97   : {{html clean="false"}}#hierarchy($appClassRef.parent){{/html}}
98 - ; $services.localization.render('platform.appwithinminutes.appNamePreviewClassReferenceLabel')
99 - : {{html clean="false"}}#hierarchy($appClassRef){{/html}}
100 100   #set ($appHomeRef = $services.model.resolveDocument('', 'default', $appReference))
101 101   #if ($appDescriptor || $xwiki.exists($appHomeRef) || $xwiki.exists($appClassRef))
102 102  
... ... @@ -141,5 +141,5 @@
141 141  #else
142 142   #showStep
143 143  #end
144 -#set ($docextras = [])
135 +#set ($displayDocExtra = false)
145 145  {{/velocity}}