Show last authors
1 {{velocity}}
2 #set($databaseName = $request.databaseName)
3 #set($databaseVersion = $request.databaseVersion)
4
5 #if(("$!databaseName" != '' || $databaseName == '') && ("$!databaseVersion" != '' || $databaseVersion == ''))
6 #set($targetDocName = $databaseName)
7 #set($targetDocName = "${targetDocName} ${databaseVersion}")
8 #set($documentReference = $services.model.createDocumentReference($xcontext.getDatabase(), 'QA', $targetDocName))
9 #set($redirectReference = $services.model.createDocumentReference($xcontext.getDatabase(), 'QA', 'Management'))
10 $response.sendRedirect($xwiki.getURL($documentReference, 'save', "QA.DatabaseClass_0_name=$escapetool.url($databaseName)&QA.DatabaseClass_0_version=$escapetool.url($databaseVersion)&template=QA.DatabaseTemplate&parent=QA.WebHome&title=$escapetool.url($targetDocName)&form_token=${services.csrf.getToken()}&xredirect=$escapetool.url($xwiki.getURL($redirectReference))"))
11 #end
12
13 {{html wiki="true"}}
14 <form action="" class="xform third" id="addDatabaseForm">
15 (((
16 ; <label for="databaseName">$services.localization.render('qaapp.AddDatabase.databaseName.label')</label>
17 <select id="databaseName" name="databaseName">
18 <option value="HyperSQL">HyperSQL</option>
19 <option value="MySQL">MySQL</option>
20 <option value="PostgreSQL">PostgreSQL</option>
21 <option value="Oracle">Oracle</option>
22 <option value="MariaDB">MariaDB</option>
23 <option value="Microsoft SQL">Microsoft SQL</option>
24 <option value="IBM DB2">IBM DB2</option>
25 <option value="Apache Derby">Apache Derby</option>
26 </select>
27 ; <label for="databaseVersion">$services.localization.render('qaapp.AddDatabase.databaseVersion.label')</label>
28 : <input type="text" id="databaseVersion" name="databaseVersion">
29
30 <div class="xform buttons">
31 <span class="buttonwrapper"><input type="submit" value="$services.localization.render('qaapp.AddDatabase.button')" class="button"/></span>
32 </div>
33 )))
34 </form>
35 {{/html}}
36 {{/velocity}}

Get Connected