casSwivelLoginView.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  6. <title th:text="#{cas.mfa.swivel.pagetitle}">Swivel Login View</title>
  7. <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
  8. </head>
  9. <body>
  10. <main role="main" class="container mt-3 mb-3">
  11. <div layout:fragment="content" id="login">
  12. <h3 th:text="#{cas.mfa.swivel.label.header}">Swivel Authentication</h3>
  13. <form method="post" id="fm1" class="fm-v clearfix" th:object="${credential}" th:action="@{/login}">
  14. <div id="msg" class="alert alert-danger errors" th:if="${#fields.hasErrors('*')}">
  15. <span th:each="err : ${#fields.errors('*')}" th:utext="${err}">Error message</span>
  16. </div>
  17. <div class="form-group">
  18. <p class="text-center">
  19. <img th:src="@{/swivel/turingImage(principal=${principal})}"
  20. src="http://via.placeholder.com/150x50"/>
  21. </p>
  22. <label for="token" class="fl-label" th:utext="#{cas.mfa.swivel.label.token}">Token:</label>
  23. <input type="password" class="form-control required" required id="token" size="25" tabindex="1"
  24. th:field="*{token}"
  25. th:accesskey="#{screen.welcome.label.password.accesskey}" autocomplete="off"/>
  26. </div>
  27. <input class="btn btn-submit" name="_eventId_submit" accesskey="l"
  28. th:value="#{screen.welcome.button.login}" tabindex="4" type="submit" value="Login"/>
  29. <input type="hidden" name="execution" th:value="${flowExecutionKey}"/>
  30. </form>
  31. </div>
  32. </main>
  33. </body>
  34. </html>