Изменения документа Создать приложение

Редактировал(а) Coluns 10.01.2024

От версии 2.1
отредактировано Coluns
на 07.12.2022
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.10]
К версии 4.1
отредактировано Coluns
на 10.01.2024
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/15.10]

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -19,7 +19,7 @@
19 19   <ul class="steps vertical">
20 20   #foreach($step in $awmSteps)
21 21   <li>
22 - <span class="number">$mathtool.add($foreach.index, 1)</span>
22 + <span class="btn btn-xs number">$mathtool.add($foreach.index, 1)</span>
23 23   <span class="name">$services.localization.render("appWithinMinutes.wizardStep.${step}.name")</span>
24 24   <span class="description">$services.localization.render("appWithinMinutes.wizardStep.${step}.description")</span>
25 25   </li>
... ... @@ -70,6 +70,7 @@
70 70   #if (!$xwiki.exists($appClassRef))
71 71   #set ($appHomeRef = $services.model.resolveDocument('', 'default', $appReference))
72 72   #set ($discard = $queryString.putAll({
73 + 'form_token': $services.csrf.getToken(),
73 73   'template': 'AppWithinMinutes.ClassTemplate',
74 74   'parent': $services.model.serialize($appHomeRef),
75 75   'title': "$appReference.name Class"
... ... @@ -105,6 +105,11 @@
105 105   $services.localization.render('platform.appwithinminutes.appNameIsUsedWarning')
106 106   </div>
107 107   #end
109 + #if (!$services.security.authorization.hasAccess('script', $xcontext.userReference, $appHomeRef))
110 + <div class="box errormessage">
111 + $escapetool.xml($services.localization.render('platform.appwithinminutes.appHomePageNoScriptRight'))
112 + </div>
113 + #end
108 108   #end
109 109  #end
110 110