diff options
author | mavlushechka <mavlushechka@gmail.com> | 2021-11-12 21:31:54 +0500 |
---|---|---|
committer | mavlushechka <mavlushechka@gmail.com> | 2021-11-12 21:31:54 +0500 |
commit | 8d284e1690faba5c0f834a07bac81e1ee00d515f (patch) | |
tree | dd587e71f8c091c1262a84cd2c7e1dd7cd7e4226 /src/main/resources/templates/information/student.html |
Initializing
Diffstat (limited to 'src/main/resources/templates/information/student.html')
-rwxr-xr-x | src/main/resources/templates/information/student.html | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/main/resources/templates/information/student.html b/src/main/resources/templates/information/student.html new file mode 100755 index 0000000..da91c67 --- /dev/null +++ b/src/main/resources/templates/information/student.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html xmlns:th="http://www.thymeleaf.org" lang="en"> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="author" content="Mavlushechka"> + <title>Talaba haqida ma'lumotlar</title> + <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"> + <link th:href="@{/css/form-validation.css}" rel="stylesheet"> +</head> +<body class="bg-light"> +<div class="container"> + <main> + <div class="py-5 text-center"> + <img class="d-block mx-auto mb-4" src="../../static/img/student.png" th:src="@{/img/student.png}" alt="Logo" width="90" height="90"> + <h2>Talaba haqida ma'lumotlar</h2> + </div> + <div class="row g-5"> + <div class="col-md-7 col-lg-8 mx-auto"> + <form class="needs-validation" method="post" th:action="@{/information/student/save}" enctype="multipart/form-data" novalidate> + <div class="row g-3"> + <div class="col-sm-12"> + <label for="telephoneNumber" class="form-label">Shaxsiy telefon raqam</label> + <input type="number" class="form-control" id="telephoneNumber" name="telephoneNumber" th:value="${student?.telephoneNumber}" min="0" required> + <div class="invalid-feedback"> + Shaxsiy telefon raqamni kiriting. + </div> + </div> + <div class="col-sm-12"> + <label for="diploma" class="form-label">Erishgan yutuqlar (agar diplomga ega bo'lsa)</label> + <input type="text" class="form-control" id="diploma" name="diploma" th:value="${student?.diploma}"> + </div> + <div class="col-sm-12"> + <label for="religion" class="form-label">Diniy qarash</label> + <input type="text" class="form-control" id="religion" name="religion" th:value="${student?.religion}" required> + <div class="invalid-feedback"> + Diniy qarashingizni kiriting. + </div> + </div> + <div class="col-sm-12"> + <label for="car" class="form-label">Shaxsiy avtomashina (o`zining nomiga rasmiylashtirilgan bo`lsa)</label> + <input type="text" class="form-control" id="car" name="car" th:value="${student?.car}"> + </div> + <div class="col-sm-12"> + <label for="house" class="form-label">Shaxsiy uy (o`zining nomiga rasmiylashtirilgan bo`lsa)</label> + <input type="text" class="form-control" id="house" name="house" th:value="${student?.house}"> + </div> + <div class="col-sm-12"> + <label for="photo" class="form-label">Rasm (3x4)</label> + <input type="file" class="form-control" id="photo" name="photo" accept="image/*" required> + <div class="invalid-feedback"> + Rasmni joylang. + </div> + </div> + </div> + <div hidden> + <input type="text" id="id" name="id" th:value="${user.id}" required> + </div> + <button class="w-100 btn btn-primary btn-lg mt-5 mb-5" type="submit">Yuborish</button> + </form> + <div class="mt-3 invalid-feedback" th:if="${#messages}"> + <span th:text="${#messages}"></span> + </div> + </div> + </div> + </main> +</div> +<script th:src="@{/js/bootstrap.bundle.min.js}"></script> +<script th:src="@{/js/form-validation.js}"></script> +</body> +</html> |