Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | require_once("core.php"); |
| 3 | security::checkType(security::WORKER); |
| 4 | |
| 5 | $id = people::userData("id"); |
| 6 | |
| 7 | $allowedMethods = validations::getAllowedMethods(); |
| 8 | ?> |
| 9 | <!DOCTYPE html> |
| 10 | <html> |
| 11 | <head> |
| 12 | <title><?php echo $conf["appName"]; ?></title> |
| 13 | <?php visual::includeHead(); ?> |
| 14 | <link rel="stylesheet" href="css/dashboard.css"> |
| 15 | <link rel="stylesheet" href="css/incidents.css"> |
| 16 | </head> |
| 17 | <?php visual::printBodyTag(); ?> |
| 18 | <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-drawer"> |
| 19 | <?php visual::includeNav(); ?> |
| 20 | <main class="mdl-layout__content"> |
| 21 | <div class="page-content"> |
| 22 | <div class="main mdl-shadow--4dp"> |
| 23 | <h2>ValidaciĆ³n</h2> |
| 24 | <div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect"> |
| 25 | <div class="mdl-tabs__tab-bar"> |
| 26 | <?php |
| 27 | foreach ($allowedMethods as $method) { |
| 28 | echo '<a href="#method'.security::htmlsafe(validations::$methodCodename[$method]).'" class="mdl-tabs__tab'.($method == $conf["validation"]["defaultMethod"] ? " is-active" : "").'">'.security::htmlsafe(validations::$methodName[$method]).'</a>'; |
| 29 | } |
| 30 | ?> |
| 31 | </div> |
| 32 | <?php |
| 33 | foreach ($allowedMethods as $method) { |
| 34 | echo '<div class="mdl-tabs__panel'.($method == $conf["validation"]["defaultMethod"] ? " is-active" : "").'" id="method'.security::htmlsafe(validations::$methodCodename[$method]).'">'; |
| 35 | validationsView::renderChallengeInstructions($method); |
| 36 | echo '</a>'; |
| 37 | } |
| 38 | ?> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |
| 42 | </main> |
| 43 | </div> |
| 44 | </body> |
| 45 | </html> |