Wiki source code of Add App

Last modified by Michael Hamann on 2025/09/25 15:08

Show last authors
1 {{velocity}}
2 #set($appName = $request.appName)
3 #set($appVersion = $request.appVersion)
4 #if(("$!appName" != '' || $appName == '') && ("$!appVersion" != '' || $appVersion == ''))
5 #set($targetDocName = "${appName} ${appVersion}")
6 #set($documentReference = $services.model.createDocumentReference($xcontext.getDatabase(), 'QA', "$targetDocName"))
7 #set($redirectReference = $services.model.createDocumentReference($xcontext.getDatabase(), 'QA', 'Management'))
8 $response.sendRedirect($xwiki.getURL($documentReference, 'save', "QA.AppClass_0_name=$escapetool.url($appName)&QA.AppClass_0_version=$escapetool.url($appVersion)&template=QA.AppTemplate&parent=QA.WebHome&title=$escapetool.url($targetDocName)&form_token=${services.csrf.getToken()}&xredirect=$escapetool.url($xwiki.getURL($redirectReference))"))
9 #end
10
11 {{html wiki="true"}}
12 <form action="" class="xform third" id="addAppForm">
13 (((
14 ; <label for="appName">$services.localization.render('qaapp.AddApp.AppName.label')</label>
15 : <input type="text" id="appName" name="appName">
16
17 ; <label for="appVersion">$services.localization.render('qaapp.AddApp.appVersion.label')</label>
18 : <input type="text" id="appVersion" name="appVersion">
19
20 <div class="xform buttons">
21 <span class="buttonwrapper"><input type="submit" value="$services.localization.render('qaapp.AddApp.button')" class="button"/></span>
22 </div>
23 )))
24 </form>
25 {{/html}}
26 {{/velocity}}

Get Connected