Last change
on this file since 3965aed was 3965aed, checked in by lepaSi <86915414+lepaSi@…>, 16 months ago |
Init
|
-
Property mode
set to
100644
|
File size:
2.3 KB
|
Rev | Line | |
---|
[3965aed] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en" xmlns:sec="http://www.w3.org/1999/xhtml">
|
---|
| 3 | <link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css">
|
---|
| 4 | <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
---|
| 5 | <head>
|
---|
| 6 | <meta charset="UTF-8">
|
---|
| 7 | <title>Vehicles</title>
|
---|
| 8 |
|
---|
| 9 | <style>
|
---|
| 10 |
|
---|
| 11 | table th,td{
|
---|
| 12 | border-top-style: solid;
|
---|
| 13 | border-right-style: solid;
|
---|
| 14 | border-bottom-style: solid;
|
---|
| 15 | border-left-style: solid;
|
---|
| 16 | border-color: lightskyblue;
|
---|
| 17 | }
|
---|
| 18 | body {
|
---|
| 19 | font-family: "Trebuchet MS", Tahoma, sans-serif;
|
---|
| 20 | border-top-style: dotted;
|
---|
| 21 | border-right-style: solid;
|
---|
| 22 | border-bottom-style: solid;
|
---|
| 23 | border-left-style: solid;
|
---|
| 24 | width: 1600px;
|
---|
| 25 | background: lightgrey;
|
---|
| 26 | height: 950px;
|
---|
| 27 | margin: auto;
|
---|
| 28 | }
|
---|
| 29 | .bar{
|
---|
| 30 | background: orange;
|
---|
| 31 | width: 1593px;
|
---|
| 32 | position: relative;
|
---|
| 33 | height: 125px;
|
---|
| 34 | border-style: dotted;
|
---|
| 35 | border-width: thick;
|
---|
| 36 | bottom: 3px;
|
---|
| 37 |
|
---|
| 38 | }
|
---|
| 39 | .bar a{
|
---|
| 40 | width: 150px;
|
---|
| 41 | top: 50px;
|
---|
| 42 | }
|
---|
| 43 | .bar a:first-child{
|
---|
| 44 | position: relative;
|
---|
| 45 | left: 1200px;
|
---|
| 46 | padding-right: 30px;
|
---|
| 47 | }
|
---|
| 48 | .bar a:last-child{
|
---|
| 49 | position: relative;
|
---|
| 50 | left: 1250px;
|
---|
| 51 | }
|
---|
| 52 | a:link, a:visited {
|
---|
| 53 | background-color: lightcoral;
|
---|
| 54 | color: black;
|
---|
| 55 | padding: 14px 25px;
|
---|
| 56 | text-align: center;
|
---|
| 57 | text-decoration: none;
|
---|
| 58 | display: inline-block;
|
---|
| 59 | }
|
---|
| 60 | table a{
|
---|
| 61 | width: 150px;
|
---|
| 62 | }
|
---|
| 63 | </style>
|
---|
| 64 | </head>
|
---|
| 65 | <body>
|
---|
| 66 | <div class="bar">
|
---|
| 67 | <a class="w3-bar-item w3-button w3-border-right" sec:authorize="hasAnyRole('KLIENT','VRABOTEN')" th:href="@{/logout}">Logout</a>
|
---|
| 68 | <a class="w3-bar-item w3-button w3-border-right" th:href="@{/}">Home</a>
|
---|
| 69 | </div>
|
---|
| 70 |
|
---|
| 71 | <table class="table table-striped table-primary" style="width: 100%">
|
---|
| 72 | <thead>
|
---|
| 73 | <tr>
|
---|
| 74 | <th> Marka </th>
|
---|
| 75 | <th> Model </th>
|
---|
| 76 | <th> RegTab </th>
|
---|
| 77 | <th> Cena </th>
|
---|
| 78 | </tr>
|
---|
| 79 | </thead>
|
---|
| 80 | <tbody>
|
---|
| 81 | <tr th:each="vozilo : ${vozila}">
|
---|
| 82 | <td><span th:text="${vozilo.getMarka()}"> Marka </span></td>
|
---|
| 83 | <td><span th:text="${vozilo.getModel()}"> Model </span></td>
|
---|
| 84 | <td><span th:text="${vozilo.getRegtab()}"> Regtab </span></td>
|
---|
| 85 | <td><span th:text="${vozilo.getCenavozi()}"> Cena </span></td>
|
---|
| 86 | <td><a sec:authorize="hasAnyRole('KLIENT')" th:href="@{/rentVehicle/{id}(id=${vozilo.getIdvozi()})}">Rent</a></td>
|
---|
| 87 | </tr>
|
---|
| 88 | </tbody>
|
---|
| 89 | </table>
|
---|
| 90 | </body>
|
---|
| 91 | </html> |
---|
Note:
See
TracBrowser
for help on using the repository browser.