2019-09-27 06:37:55 +00:00
<!DOCTYPE html>
< html xmlns:th = "http://www.thymeleaf.org" >
2019-10-22 12:12:18 +00:00
2019-09-27 06:37:55 +00:00
< head >
2019-10-22 12:12:18 +00:00
< div th:replace = "fragments/head :: headFragment" >
< title id = "pageTitle" > Registration< / title >
< / div >
< script src = "https://code.jquery.com/jquery-2.1.4.min.js" th:if = "false" > < / script >
< script src = "http://blackpeppersoftware.github.io/thymeleaf-fragment.js/thymeleaf-fragment.js" defer = "defer" th:if = "false" > < / script >
2019-09-27 06:37:55 +00:00
< / head >
2019-10-22 12:12:18 +00:00
2019-09-27 06:37:55 +00:00
< body >
2019-10-22 12:12:18 +00:00
< div th:include = "fragments/navbar :: navbarFragment" > < / div >
< header >
< div class = "container" >
< div class = "row" >
2019-11-05 04:24:12 +00:00
< div class = "col-lg-6 offset-lg-3 py-5" >
2019-10-22 12:12:18 +00:00
<!-- <h4 class="display - 4 text - center py - 2">Chat</h4> -->
2019-11-05 04:24:12 +00:00
< div class = "card text-white bg-primary card-form rounded mx-auto p-5" id = "registration-card" >
2019-10-22 12:12:18 +00:00
< div class = "card-body rounded" >
<!-- <h4 class="card - title">Chat</h4> -->
<!-- <div class="form - group">
< textarea id = "chatTextArea" class = "form-control-lg py-2" disabled > < / textarea >
< / div > -->
<!-- <form action="#" th:action="@{/seedstartermng}" th:object="${seedStarter}" method="post"> -->
<!-- th:action="@{/api/chat}" -->
<!-- <label>First Name</label>
< div th:classappend = "${#fields.hasErrors('firstName')} ? 'input-icon right' : ''" >
< i th:if = "${#fields.hasErrors('firstName')}" class = "fa fa-exclamation tooltips" data-original-title = "please enter a valid first name" data-container = "body" > < / i >
< input type = "text" class = "form-control" maxlength = "32" th:field = "*{firstName}" placeholder = "Between 1 and 32 characters" / >
< span th:if = "${#fields.hasErrors('firstName')}" class = "help-block" th:errors = "*{firstName}" > < / span >
< / div > -->
< div class = "card-text" >
2019-11-05 04:24:12 +00:00
< h2 class = "card-title text-center mb-3" > Register< / h2 >
2019-10-22 12:12:18 +00:00
< form action = "#" th:action = "@{/perform_registration}" th:object = ${userRegistrationDTO} method = "POST" >
< div class = "form-group" >
< label > Enter username: < / label >
2019-10-24 06:42:42 +00:00
< input th:classappend = "${#fields.hasErrors('userName')} ? 'is-invalid' : ''" class = "form-control" th:field = "*{userName}" type = "text" name = "username" required >
< small class = "form-text" > Username must be alphanumeric< / small >
< span th:if = "${#fields.hasErrors('userName')}" class = "help-block text-danger" th:errors = "*{userName}" > < / span >
2019-10-22 12:12:18 +00:00
< / div >
< div class = "form-group" >
< label > Enter password: < / label >
2019-10-24 06:42:42 +00:00
< input th:classappend = "${#fields.hasErrors('password')} ? 'is-invalid' : ''" class = "form-control" th:field = "*{password}" type = "password" name = "password" id = "password" required >
< span th:if = "${#fields.hasErrors('password')}" class = "help-block text-danger" th:errors = "*{password}" > < / span >
2019-10-22 12:12:18 +00:00
< / div >
< div class = "form-group" >
< label for = "password-repeat" > Repeat password: < / label >
< input class = "form-control" type = "password" id = "password-repeat" required >
< / div >
< div class = "form-group" >
< input class = "form-control btn btn-secondary" type = "submit" value = "Submit" >
< / div >
< / form >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / header >
2019-09-27 06:37:55 +00:00
< / body >
2019-10-22 12:12:18 +00:00
2019-09-27 06:37:55 +00:00
< / html >