Wiki-Quellcode von Schulungen
Version 6.1 von Timo Schmid am 06.05.2020 08:28
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) | ||
| |
5.1 | 9 | $response.sendRedirect($xwiki.getURL($childDoc)) |
| |
3.2 | 10 | #end |
| 11 | #end | ||
| |
6.1 | 12 | Code wurde nicht gefunden, bitte kontaktieren Sie Ihren Trainer |
| |
3.2 | 13 | #end |
| |
2.1 | 14 | #if ($request.teilnahme != $null) |
| 15 | {{html clean="false"}} | ||
| |
6.1 | 16 | <form method="post" action='$doc.getURL('view')'>Bitte geben Sie den Code ein, den Sie von Ihrem Schulungstrainer erhalten haben: |
| |
2.1 | 17 | <br><br> |
| |
4.1 | 18 | <input type="text" name="code" tyle="width:250px"/> |
| |
2.1 | 19 | <br><br> |
| |
4.1 | 20 | <input class="btn btn-primary" type="submit" value="Weiter"></form> |
| |
2.1 | 21 | {{/html}} |
| |
3.1 | 22 | |
| 23 | #else | ||
| 24 | {{display reference="xwiki:FASi.System & Struktur.5\. Unterweisung.5\.5\. Schulungen.WebHome"/}} | ||
| |
2.1 | 25 | #end |
| 26 | {{/velocity}} |