mirror of
https://github.com/mrfluffy-dev/PRG381.git
synced 2026-01-17 02:10:33 +00:00
First commit
This commit is contained in:
80
target/classes/templates/registration.html
Normal file
80
target/classes/templates/registration.html
Normal file
@@ -0,0 +1,80 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="ISO-8859-1">
|
||||
<title>Registration</title>
|
||||
<link rel="stylesheet"
|
||||
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
||||
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
|
||||
crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- create navigation bar ( header) -->
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed"
|
||||
data-toggle="collapse" data-target="#navbar" aria-expanded="false"
|
||||
aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span> <span
|
||||
class="icon-bar"></span> <span class="icon-bar"></span> <span
|
||||
class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#" th:href="@{/}">Registration and
|
||||
Login Module</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<!-- Create HTML registration form -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
|
||||
<!-- success message -->
|
||||
<div th:if="${param.success}">
|
||||
<div class="alert alert-info">You've successfully registered
|
||||
to our awesome app!</div>
|
||||
</div>
|
||||
|
||||
<h1>Registration</h1>
|
||||
|
||||
<form th:action="@{/registration}" method="post" th:object="${user}">
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="firstName"> First Name </label>
|
||||
<input id="firstName" class="form-control" th:field="*{firstName}"
|
||||
required autofocus="autofocus" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="lastName"> Last Name </label> <input
|
||||
id="lastName" class="form-control" th:field="*{lastName}"
|
||||
required autofocus="autofocus" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="email"> Email </label> <input
|
||||
id="email" class="form-control" th:field="*{email}" required
|
||||
autofocus="autofocus" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="password"> Password </label> <input
|
||||
id="password" class="form-control" type="password"
|
||||
th:field="*{password}" required autofocus="autofocus" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-success">Register</button>
|
||||
<span>Already registered? <a href="/" th:href="@{/login}">Login
|
||||
here</a></span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user