-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added page for creating a new user when logged in; not saving, but ad…
…ded validations
- Loading branch information
Showing
11 changed files
with
121 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="description" content="darkhold create user page" /> | ||
<meta name="author" content="Suraj" /> | ||
<title>Getting Started: Darkhold classroom quiz experience</title> | ||
<link href="/styles/error-styles.css" rel="stylesheet" /> | ||
<script type="text/javascript" src="/scripts/common-scripts.js"></script> | ||
<script type="text/javascript" src="/scripts/user-management-scripts.js"></script> | ||
<script type="text/javascript" src="/scripts/core/bootstrap-5.3.1/bootstrap.min.js"></script> | ||
</head> | ||
<body> | ||
<main> | ||
<div th:insert="~{navbar :: navbar}"></div> | ||
<div class="container"> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Create User</h3> | ||
</div> | ||
</div> | ||
|
||
<form th:action="@{/users/save}" method="post" th:object="${userForm}"> | ||
<div class="border border-secondary rounded p-3"> | ||
<div class="input-group mb-3"> | ||
<label class="col-sm-4 col-form-label">First Name : </label> | ||
<div class="col-sm-8"> | ||
<input type="text" class="form-control" th:field="*{firstName}" required minlength="8" maxlength="90" /> | ||
</div> | ||
</div> | ||
<div class="input-group mb-3"> | ||
<label class="col-sm-4 col-form-label">Last Name : </label> | ||
<div class="col-sm-8"> | ||
<input type="text" class="form-control" th:field="*{lastName}" required minlength="8" maxlength="90" /> | ||
</div> | ||
</div> | ||
<div class="input-group mb-3"> | ||
<label class="col-sm-4 col-form-label">E-mail : </label> | ||
<div class="col-sm-8"> | ||
<input type="email" class="form-control" th:field="*{email}" required minlength="8" maxlength="128" /> | ||
</div> | ||
</div> | ||
<div class="input-group mb-3"> | ||
<label class="col-sm-4 col-form-label">Password : </label> | ||
<div class="col-sm-8"> | ||
<input type="password" class="form-control" th:field="*{password}" required minlength="8" maxlength="20" /> | ||
</div> | ||
</div> | ||
<div class="input-group mb-3"> | ||
<label class="col-sm-4 col-form-label">Roles : </label> | ||
<div class="col-sm-8"> | ||
<th:block th:each="role : ${listRoles}"> | ||
<div class="form-check"> | ||
<input type="checkbox" th:field="*{roles}" th:text="${role.name}" th:value="${role.id}" class="form-check-input"/> | ||
- <small>[[${role.description}]]</small> | ||
</div> | ||
</th:block> | ||
</div> | ||
</div> | ||
<div class="input-group mb-3"> | ||
<label class="col-sm-4 col-form-label">Enabled : </label> | ||
<div class="col-sm-8"> | ||
<input type="checkbox" th:field="*{enabled}" /> | ||
</div> | ||
</div> | ||
<div class="text-center"> | ||
<input type="submit" value="Save" class="btn btn-primary m-3" onclick="saveThisUser();" /> | ||
<input type="button" value="Cancel" class="btn border-secondary" /> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters