Changes for page Create Application
Last modified by Administrator on 2020/09/21 16:05
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-8.4.1]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. bbishop1 +XWiki.Admin - 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($ indexin[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 ($doc extras=[])135 +#set ($displayDocExtra = false) 145 145 {{/velocity}}