summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/information/student.html
blob: da91c67e88540fb3ef22ce2efe87f8b0d81c6cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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>