Wiki-Quellcode von Schulungen

Version 11.7 von Timo Schmid am 06.05.2020 12:15

Verstecke letzte Bearbeiter
Timo Schmid 2.1 1 {{velocity}}
Timo Schmid 3.2 2 #if ($request.code != $null)
Timo Schmid 11.7 3 #set( $class = $xwiki.getClass('XWiki.LoginTokenClass'))
4 #foreach($prop in $class.properties) ## go through all properties
5 * ${prop.prettyName} : $doc.display($prop.getName())
6 #end
Timo Schmid 3.2 7 #set ($code = $tokObj.getProperty('token').value)
Timo Schmid 11.2 8 $code
9 ##if ($request.code == $code)
10 ##set ($url = $xwiki.getURL($childDoc) + '?code=' + $request.code)
11 ##$response.sendRedirect($url)
12 ##end
Timo Schmid 7.1 13 Code wurde nicht gefunden, bitte kontaktieren Sie Ihren Trainer!
Timo Schmid 3.2 14 #end
Timo Schmid 2.1 15 #if ($request.teilnahme != $null)
16 {{html clean="false"}}
Timo Schmid 6.1 17 <form method="post" action='$doc.getURL('view')'>Bitte geben Sie den Code ein, den Sie von Ihrem Schulungstrainer erhalten haben:
Timo Schmid 2.1 18 <br><br>
Timo Schmid 4.1 19 <input type="text" name="code" tyle="width:250px"/>
Timo Schmid 2.1 20 <br><br>
Timo Schmid 4.1 21 <input class="btn btn-primary" type="submit" value="Weiter"></form>
Timo Schmid 2.1 22 {{/html}}
Timo Schmid 3.1 23
24 #else
Timo Schmid 8.1 25 [[Feedback-Portal für Teilnehmer>>||queryString="teilnahme=1"]]
26
Timo Schmid 3.1 27 {{display reference="xwiki:FASi.System & Struktur.5\. Unterweisung.5\.5\. Schulungen.WebHome"/}}
Timo Schmid 2.1 28 #end
29 {{/velocity}}