Revize cfe48a96
Přidáno uživatelem Jan Čarnogurský před téměř 5 roky(ů)
src/main/webapp/WEB-INF/templates/index.html | ||
---|---|---|
1 |
<!DOCTYPE html> |
|
2 |
|
|
3 |
<html |
|
4 |
xmlns:th="http://www.thymeleaf.org" |
|
5 |
lang="cs" |
|
6 |
> |
|
7 |
<head th:replace="fragments/headers :: head(~{::title})"> |
|
8 |
<title>Title</title> |
|
9 |
</head> |
|
1 |
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"><head> |
|
2 |
<meta charset="utf-8"> |
|
3 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|
4 |
<meta name="description" content=""> |
|
5 |
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> |
|
6 |
<meta name="generator" content="Jekyll v3.8.6"> |
|
7 |
<title>Album example · Bootstrap</title> |
|
8 |
|
|
9 |
<link rel="canonical" href="https://getbootstrap.com/docs/4.4/examples/album/"> |
|
10 |
|
|
11 |
<!-- Bootstrap core CSS --> |
|
12 |
<link href="css/bootstrap.min.css" rel="stylesheet"> |
|
13 |
<link href="css/fontawesome.min.css" rel="stylesheet"> |
|
14 |
<link href="css/style.css" rel="stylesheet"> |
|
15 |
|
|
16 |
|
|
17 |
</head> |
|
10 | 18 |
<body> |
11 |
<nav th:replace="fragments/headers :: nav"></nav> |
|
12 |
|
|
13 |
<form method="post" th:action="@{/}"> |
|
14 |
<table> |
|
15 |
<tr th:each="iassembly : ${assemblies}"> |
|
16 |
<div> |
|
17 |
<td> |
|
18 |
<span th:text="${iassembly.name}"></span> |
|
19 |
<button name="assemblyID" type="submit" th:value="${iassembly.id}">Select</button> |
|
19 |
<div id="test"></div> |
|
20 |
<main role="main"> |
|
21 |
|
|
22 |
<div class="container"> |
|
23 |
<h1> |
|
24 |
Výběr sestavy |
|
25 |
</h1> |
|
26 |
</div> |
|
27 |
<div class="container"> |
|
28 |
<div class="col-md-4 box"> |
|
29 |
<div class="box-header"> |
|
30 |
<h3 class="box-title">Rychle k ...</h3> |
|
31 |
</div> |
|
32 |
<table class="table table-bordered table-striped"> |
|
33 |
<tbody> |
|
34 |
<tr> |
|
35 |
<td><a href=#>Vlastní šablona 1</a></td> |
|
36 |
<td class="center-cell"> |
|
37 |
<span class="action-button"> |
|
38 |
<a href=# class="action-link far fa-trash-alt"></a> |
|
39 |
</span> |
|
40 |
</td> |
|
41 |
</tr> |
|
42 |
<tr> |
|
43 |
<td><a href=#>Vlastní šablona 2, Vlastní šablona 2, Vlastní šablona 2, Vlastní šablona 2</a></td> |
|
44 |
<td class="center-cell"> |
|
45 |
<span class="action-button"> |
|
46 |
<a href=# class="action-link far fa-trash-alt"></a> |
|
47 |
</span> |
|
20 | 48 |
</td> |
21 |
</div> |
|
49 |
</tr> |
|
50 |
</tbody> |
|
51 |
</table> |
|
52 |
</div> |
|
53 |
</div> |
|
54 |
|
|
55 |
<div class="container box"> |
|
56 |
<div class="box-header"> |
|
57 |
<h3 class="box-title">Seznam sestav</h3> |
|
58 |
</div> |
|
59 |
<div class="button-container"> |
|
60 |
<button type="button" class="btn btn-success"><i class="fas fa-plus"></i> Přidat novou sestavu</button> |
|
61 |
<button type="button" class="btn btn-success align-right"><i class="fas fa-sort"></i> Upravit řazení</button> |
|
62 |
</div> |
|
63 |
|
|
64 |
<table class="table table-bordered table-striped"> |
|
65 |
<thead> |
|
66 |
<tr> |
|
67 |
<th scope="col">Sestava</th> |
|
68 |
<th scope="col">Seznam atributů</th> |
|
69 |
<th scope="col">Akce</th> |
|
22 | 70 |
</tr> |
71 |
</thead> |
|
72 |
<tbody> |
|
73 |
<tr th:each="iassembly : ${assemblies}"> |
|
74 |
<div> |
|
75 |
<td><a th:href="@{/assembly(assemblyID=${iassembly.id})}"><span th:text="${iassembly.name}"></span></a></td> |
|
76 |
<td>Akademický rok, Fakulta, Typ strudia, Ročník, ...</td> |
|
77 |
<td class="center-cell"> |
|
78 |
<span class="action-button"> |
|
79 |
<a href=# class="action-link far fa-edit"></a> |
|
80 |
</span> |
|
81 |
<span class="action-button"> |
|
82 |
<a href=# class="action-link far fa-trash-alt"></a> |
|
83 |
</span> |
|
84 |
</td> |
|
85 |
</div> |
|
86 |
</tr> |
|
87 |
</tbody> |
|
23 | 88 |
</table> |
24 |
</form> |
|
89 |
</div> |
|
90 |
</main> |
|
91 |
|
|
92 |
<footer class="text-muted"> |
|
93 |
<div class="container"> |
|
94 |
|
|
95 |
</div> |
|
96 |
</footer> |
|
97 |
|
|
98 |
<script type="text/javascript" src="js/app.js"></script> |
|
25 | 99 |
</body> |
26 | 100 |
</html> |
Také k dispozici: Unified diff
re #7871 - connect templates with data from database