A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
4.9 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <div th:replace="fragments/head :: headFragment">
  5. <title id="pageTitle">Login</title>
  6. </div>
  7. <script src="https://code.jquery.com/jquery-2.1.4.min.js" th:if="false"></script>
  8. <script src="http://blackpeppersoftware.github.io/thymeleaf-fragment.js/thymeleaf-fragment.js" defer="defer" th:if="false"></script>
  9. </head>
  10. <body>
  11. <div th:include="fragments/navbar :: navbarFragment"></div>
  12. <!-- <header id="chat-section" class="bg-secondary">
  13. <div class="dark-overlay">
  14. <div class="chat-inner container">
  15. <div class="row">
  16. <div class="col-sm d-lg-block">
  17. <h1 class="display-4">Chat with your friends</h1>
  18. <div class="d-flex">
  19. <div class="p-4 align-self-start">
  20. </div>
  21. <div class="p-4 align-self-end">
  22. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Laboriosam dolorem nostrum consequatur eos voluptates. Ipsam ullam quos illo qui. Quaerat corrupti nisi numquam rerum quasi nesciunt deserunt fugit commodi consequatur!
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </header> -->
  30. <header>
  31. <div class="container">
  32. <div class="row">
  33. <div class=" col-lg-6 offset-lg-3 py-5">
  34. <!-- <h4 class="display-4 text-center py-2">Chat</h4> -->
  35. <div class="card text-white bg-primary text-center card-form rounded p-5" id="login-card">
  36. <div class="card-body rounded">
  37. <!-- <h4 class="card-title">Chat</h4> -->
  38. <!-- <div class="form-group">
  39. <textarea id="chatTextArea" class="form-control-lg py-2" disabled></textarea>
  40. </div> -->
  41. <!-- <form action="#" th:action="@{/seedstartermng}" th:object="${seedStarter}" method="post"> -->
  42. <!-- th:action="@{/api/chat}" -->
  43. <div class="card-text">
  44. <form action="#" th:action="@{/perform_login}" method="POST" id="loginForm">
  45. <!-- <fieldset>
  46. <legend>Please Sign In</legend> -->
  47. <h2 class="card-title mb-4">Please Sign In</h2>
  48. <div th:if="${param.error}" class="alert alert-danger">
  49. Error signing in. Please check your username and password.
  50. </div>
  51. <div th:if="${param.logout}" class="alert alert-success">
  52. You have been logged out.
  53. </div>
  54. <div class="form-group">
  55. <!-- <label for="username">Enter user name: </label> -->
  56. <input class="form-control" type="text" name="username" id="username" placeholder="Username">
  57. </div>
  58. <div class="form-group">
  59. <!-- <label for="password">Enter password: </label> -->
  60. <input class="form-control" type="password" name="password" id="password" placeholder="Password">
  61. </div>
  62. <div class="form-group">
  63. <button class="form-control btn btn-secondary" type="submit">Login</button>
  64. </div>
  65. <!-- </fieldset> -->
  66. </form>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </header>
  74. <script src="../js/login.js" type="text/javascript"></script>
  75. </body>
  76. </html>
  77. <!-- form th:action="@{/login.html}" method="post" -->
  78. <!-- <form action="#" th:action="@{/greeting}" th:object="${greeting}" method="post">
  79. <p>Id: <input type="text" th:field="*{id}" /></p>
  80. <p>Message: <input type="text" th:field="*{content}" /></p>
  81. <p><input type="submit" value="Submit" /> <input type="reset" value="Reset" /></p>
  82. </form> -->
  83. <!-- <form action="#" th:action="@{/perform_login}" th:object=${user} method="POST">
  84. <label>Enter user name: </label>
  85. <input th:field="*{userName}" type="text" name="username" id="username">
  86. <br> <br> <label>Enter password: </label>
  87. <input th:field="*{password}" type="password" name="password" id="username"> <br> <br>
  88. <input type="submit" value="Submit">
  89. </form>
  90. -->