[bdc68e0] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en" >
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 | <title>Add event</title>
|
---|
| 6 |
|
---|
| 7 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
|
---|
| 8 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
---|
| 9 |
|
---|
| 10 | </head>
|
---|
| 11 | <body>
|
---|
| 12 | <nav class="navbar navbar-expand-lg nv">
|
---|
| 13 | <div class="container">
|
---|
| 14 | <a class="navbar-brand" href="#"><img src="../../images/logo.png" class="photo" alt="logo"></a>
|
---|
| 15 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
---|
| 16 | <span class="navbar-toggler-icon"><i class="fa-solid fa-bars"></i></span>
|
---|
| 17 | </button>
|
---|
| 18 | <div class="collapse navbar-collapse" id="navbarSupportedContent">
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | <ul class="navbar-nav m-auto mb-2 mb-lg-0">
|
---|
| 22 | <li class="nav-item">
|
---|
| 23 | <a class="nav-link" href="/home"><b>Home</b></a>
|
---|
| 24 | </li>
|
---|
| 25 | <li class="nav-item">
|
---|
| 26 | <a class="nav-link" href="/events"><b>Events</b></a>
|
---|
| 27 | </li>
|
---|
| 28 | <li class="nav-item">
|
---|
| 29 | <a class="nav-link" href="/about"><b>About</b></a>
|
---|
| 30 | </li>
|
---|
| 31 | </ul>
|
---|
| 32 | <form class="search" action="/search" method="get">
|
---|
| 33 | <input type="text" id="search" name="q" style="border-radius: 4px; border-style: none">
|
---|
| 34 | <button type="submit" style="border-radius: 4px; border-style: none;
|
---|
| 35 | font-weight: normal; font-family: Montserrat; font-size: medium">Search</button>
|
---|
| 36 | </form>
|
---|
| 37 | <form class="d-flex">
|
---|
| 38 | <th:block th:if="${session.user == null}">
|
---|
| 39 | <button class="btn0" >
|
---|
| 40 | <a type="button" href="/registerUser" style="color: black">Register</a>
|
---|
| 41 | </button>
|
---|
| 42 | </th:block>
|
---|
| 43 | <th:block th:if="${session.user == null}">
|
---|
| 44 | <button class="btn1" >
|
---|
| 45 | <a type="button" href="/userLogin" style="color: darkblue">Login</a>
|
---|
| 46 | </button>
|
---|
| 47 | </th:block>
|
---|
| 48 | <th:block th:if="${session.user != null}">
|
---|
| 49 | <button class="btn1" >
|
---|
| 50 | <a type="button" href="/userLogout" style="color: darkblue">Logout</a>
|
---|
| 51 | </button>
|
---|
| 52 | </th:block>
|
---|
| 53 | <th:block th:if="${session.user != null}">
|
---|
| 54 | <button class="btn0" href="#">
|
---|
| 55 | <th:block th:if="${session.user != null}"
|
---|
| 56 | th:text="${session.user.getUsername()}"></th:block>
|
---|
| 57 | </button>
|
---|
| 58 | </th:block>
|
---|
| 59 |
|
---|
| 60 | </form>
|
---|
| 61 | </div>
|
---|
| 62 | </div>
|
---|
| 63 | </nav>
|
---|
| 64 | <div>
|
---|
| 65 | <section class="Form py-5">
|
---|
| 66 | <div class="container py-5">
|
---|
| 67 | <div class="row g-0">
|
---|
| 68 | <div class="col-lg-3">
|
---|
| 69 | </div>
|
---|
| 70 |
|
---|
| 71 | <div class="col-lg-6 px-5 pt-5 text-center">
|
---|
| 72 | <h4>Додади настан</h4>
|
---|
| 73 |
|
---|
| 74 | <form method="post" action="/addEvent">
|
---|
| 75 | <div class="form-row">
|
---|
| 76 | <div class="col-lg-12">
|
---|
| 77 | <label for="name">Име</label>
|
---|
| 78 | <input type="text" required class="form-control my-3 p-4" placeholder="Име" id="name" name="name">
|
---|
| 79 | </div>
|
---|
| 80 | </div>
|
---|
| 81 |
|
---|
| 82 | <div class="form-row">
|
---|
| 83 | <div class="col-lg-12">
|
---|
| 84 | <label for="price">Цена</label>
|
---|
| 85 | <input type="text" required class="form-control my-3 p-4" placeholder="Цена" id="price" name="price">
|
---|
| 86 | </div>
|
---|
| 87 | </div>
|
---|
| 88 |
|
---|
| 89 | <div class="form-row">
|
---|
| 90 | <div class="col-lg-12">
|
---|
| 91 | <label for="city">Град</label>
|
---|
| 92 | <input type="text" required class="form-control my-3 p-4" placeholder="Град" id="city" name="city">
|
---|
| 93 | </div>
|
---|
| 94 | </div>
|
---|
| 95 |
|
---|
| 96 | <div class="form-row">
|
---|
| 97 | <div class="col-lg-12">
|
---|
| 98 | <label for="date">Време</label>
|
---|
| 99 | <input type="date" required class="form-control my-3 p-4" placeholder="Време" id="date" name="date">
|
---|
| 100 | </div>
|
---|
| 101 | </div>
|
---|
| 102 |
|
---|
| 103 | <div class="form-row">
|
---|
| 104 | <div class="col-lg-12">
|
---|
| 105 | <label for="phoneNumber">Телефонски број</label>
|
---|
| 106 | <input type="text" required class="form-control my-3 p-4" placeholder="Телефонски број" id="phoneNumber" name="phoneNumber">
|
---|
| 107 | </div>
|
---|
| 108 | </div>
|
---|
| 109 |
|
---|
| 110 | <div class="form-row">
|
---|
| 111 | <div class="col-lg-12">
|
---|
| 112 | <label for="artist">Уметник</label>
|
---|
| 113 | <select name="artist" id="artist">
|
---|
| 114 | <option th:each="artist : ${artists}" th:value="${artist.getId()}" th:text="${artist.getFullName()}"></option>
|
---|
| 115 | </select>
|
---|
| 116 | </div>
|
---|
| 117 | </div>
|
---|
| 118 |
|
---|
| 119 | <div class="form-row">
|
---|
| 120 | <div class="col-lg-12">
|
---|
| 121 | <label for="organizer">Оранизатор</label>
|
---|
| 122 | <select name="organizer" id="organizer">
|
---|
| 123 | <option th:each="organizer : ${organizers}" th:value="${organizer.getId()}" th:text="${organizer.getFullName()}"></option>
|
---|
| 124 | </select>
|
---|
| 125 | </div>
|
---|
| 126 | </div>
|
---|
| 127 |
|
---|
| 128 |
|
---|
| 129 | <div class="form-row">
|
---|
| 130 | <div class="col-lg-12">
|
---|
| 131 | <button type="submit" class="btn0">Додади настан</button>
|
---|
| 132 | </div>
|
---|
| 133 | </div>
|
---|
| 134 |
|
---|
| 135 | </form>
|
---|
| 136 | </div>
|
---|
| 137 | </div>
|
---|
| 138 | </div>
|
---|
| 139 | </section>
|
---|
| 140 | </div>
|
---|
| 141 | </body>
|
---|
| 142 | </html> |
---|