[e5fefbd] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 | <link rel="shortcut icon" th:href="@{assets/images/favicon.ico}">
|
---|
| 6 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
---|
| 7 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
---|
| 8 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
---|
| 9 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
---|
| 10 | <title> Трансакција </title>
|
---|
| 11 | </head>
|
---|
| 12 | <body>
|
---|
| 13 | <form class="form-signin mt-xl-0">
|
---|
| 14 | <nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
---|
| 15 | <div class="container">
|
---|
| 16 | <form class="form-inline my-2 my-lg-0">
|
---|
| 17 | <div class="input-group input-group-sm">
|
---|
| 18 | <a class="navbar-brand" href="/home-pacient"> MEDWEB </a>
|
---|
| 19 | <button class="navbar-toggler" type="button" data-toggle="collapse"
|
---|
| 20 | data-target="#navbarsExampleDefault"
|
---|
| 21 | aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
---|
| 22 | <span class="navbar-toggler-icon"></span>
|
---|
| 23 | </button>
|
---|
| 24 | </div>
|
---|
| 25 | <a class="btn btn-primary btn-sm ml-3" href="/moi-upati">
|
---|
| 26 | <i class="fa fa-shopping-cart"></i> Мои Упати
|
---|
| 27 | </a>
|
---|
| 28 | <a class="btn btn-primary btn-sm ml-3" href="/logout">
|
---|
| 29 | <i class="fa fa-shopping-cart"></i> Одјави се
|
---|
| 30 | </a>
|
---|
| 31 | </form>
|
---|
| 32 | </div>
|
---|
| 33 | </div>
|
---|
| 34 | </nav>
|
---|
| 35 |
|
---|
| 36 | <div class="container mt-5">
|
---|
| 37 | <div class="card" style="width: 55rem; ">
|
---|
| 38 | <div class="card-header text-center bg-info ">
|
---|
| 39 | <h3> Податоци за трансакција </h3>
|
---|
| 40 | </div>
|
---|
| 41 | <div class="card-body">
|
---|
| 42 | <form th:action="@{'/validiraj/rezervacija/{id}' (id = ${rezervacija.getRezervacija_id()})}"
|
---|
| 43 | th:method="POST" name="fill">
|
---|
| 44 | <div class="form-group">
|
---|
| 45 | <label for="namesurname"> Име и Презиме </label>
|
---|
| 46 | <input type="text" class="form-control" id="namesurname" name="namesurname" aria-describedby="emailHelp" required>
|
---|
| 47 | </div>
|
---|
| 48 | <div class="form-group">
|
---|
| 49 | <label for="numacc"> Број на сметка </label>
|
---|
| 50 | <input type="text" class="form-control" id="numacc" name="numacc" aria-describedby="emailHelp" required>
|
---|
| 51 | </div>
|
---|
| 52 | <div class="form-group">
|
---|
| 53 | <label for="cvc"> CVC код </label>
|
---|
| 54 | <input type="text" class="form-control" id="cvc" name="cvc" aria-describedby="emailHelp" required>
|
---|
| 55 | </div>
|
---|
| 56 | <div class="form-group">
|
---|
| 57 | <label for="date"> Датум важност </label>
|
---|
| 58 | <input type="date" class="form-control" id="date" name="date" aria-describedby="emailHelp" required>
|
---|
| 59 | </div>
|
---|
| 60 | <div class="form-group">
|
---|
| 61 | </div>
|
---|
| 62 | <script>
|
---|
| 63 | function required()
|
---|
| 64 | {
|
---|
| 65 | var field1 = document.forms["fill"]["namesurname"].value;
|
---|
| 66 | var field2 = document.forms["fill"]["numacc"].value;
|
---|
| 67 | var field3 = document.forms["fill"]["cvc"].value;
|
---|
| 68 | var field4 = document.forms["fill"]["date"].value;
|
---|
| 69 | if (field1 == "" || field2 == "" || field3 == "" || field4 == "")
|
---|
| 70 | {
|
---|
| 71 | alert("Пополнете ги сите полиња!");
|
---|
| 72 | return false;
|
---|
| 73 | }
|
---|
| 74 | else
|
---|
| 75 | {
|
---|
| 76 | alert("Успешна трансакција!");
|
---|
| 77 | return true;
|
---|
| 78 | }
|
---|
| 79 | }
|
---|
| 80 | </script>
|
---|
| 81 | <button type="submit" class="btn btn-primary" onclick="required()"> Потврди </button>
|
---|
| 82 | </form>
|
---|
| 83 | </div>
|
---|
| 84 | </div>
|
---|
| 85 | </div>
|
---|
| 86 | </form>
|
---|
| 87 | </body>
|
---|
| 88 | </html>
|
---|