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