Projekt

Obecné

Profil

Stáhnout (2.93 KB) Statistiky
| Větev: | Revize:
1 8766d436 cagy
<html xmlns:th="http://www.thymeleaf.org"
2 48e98533 cagy
	  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:sec="http://www.w3.org/1999/xhtml"
3 8766d436 cagy
	  layout:decorator="~{/layouts/layout}">
4 cfe48a96 cagy
5 f09d9a1f cagy
	<head>
6
		<title>Výběr sestavy</title>
7
	</head>
8
9 8766d436 cagy
	<div layout:fragment="content">
10
		<meta id="_csrf" name="_csrf" th:content="${_csrf.token}"/>
11
		<meta id="_csrf_header" name="_csrf_header" th:content="${_csrf.headerName}"/>
12 cfe48a96 cagy
		<div class="container">
13
			<h1>
14
				Výběr sestavy
15
			</h1>
16
		</div>
17
		<div class="container">
18
			<div class="col-md-4 box">
19
				<div class="box-header">
20
					<h3 class="box-title">Rychle k ...</h3>
21
				</div>
22
				<table class="table table-bordered table-striped">
23
					<tbody>
24 b439853d mlinha
					<tr th:each="iconfiguration : ${configurations}">
25
						<td><a th:href="@{/configuration(configurationID=${iconfiguration.id})}"><span th:text="${iconfiguration.name}"></span></a></td>
26 cfe48a96 cagy
						<td class="center-cell">
27
				  <span class="action-button">
28 b3c57a7c cagy
					<a th:href="@{/configuration_delete(configurationID=${iconfiguration.id})}" class="action-link far fa-trash-alt" onclick="return confirm('Opravdu si přejete odstranit sestavu?');"></a>
29 cfe48a96 cagy
				  </span>
30 2868bb9a Vojtěch Danišík
						</td>
31 cfe48a96 cagy
					</tr>
32
					</tbody>
33
				</table>
34
			</div>
35
		</div>
36
37
		<div class="container box">
38
			<div class="box-header">
39
				<h3 class="box-title">Seznam sestav</h3>
40
			</div>
41
			<div class="button-container">
42 a2e84e8c Vojtěch Danišík
43 31f896bc cagy
				<a sec:authorize="hasAuthority('Administrátor')" th:href="@{/assembly_new}" class="btn btn-success mb-2"><i class="fas fa-plus"></i> Přidat novou sestavu</a>
44 d149244c cagy
				<span sec:authorize="hasAuthority('Administrátor')" class="btn btn-success align-right" id="saveSort">Uložit řazení</span>
45 cfe48a96 cagy
			</div>
46
47
			<table class="table table-bordered table-striped">
48
				<thead>
49
				<tr>
50
					<th scope="col">Sestava</th>
51
					<th scope="col">Seznam atributů</th>
52 48e98533 cagy
					<th scope="col" sec:authorize="hasAuthority('Administrátor')">Akce</th>
53 2868bb9a Vojtěch Danišík
				</tr>
54 cfe48a96 cagy
				</thead>
55 f7dc4075 cagy
				<tbody class="sort">
56 9037608d cagy
					<tr th:each="iassembly, itemStat : ${assemblies}" th:id ="${iassembly.id}">
57 cfe48a96 cagy
						<div>
58
							<td><a th:href="@{/assembly(assemblyID=${iassembly.id})}"><span th:text="${iassembly.name}"></span></a></td>
59 b66f682e mlinha
							<td th:text="${attributes[__${itemStat.index}__]}"></td>
60 48e98533 cagy
							<td sec:authorize="hasAuthority('Administrátor')">
61 bfd68253 cagy
								<div class="action-wrapper">
62
									<span class="action-button">
63
									  <a th:href="@{/assembly_edit(assemblyID=${iassembly.id})}" class="action-link far fa-edit"></a>
64
									</span>
65
									<span class="action-button">
66 b3c57a7c cagy
									  <a th:href="@{/assembly_delete(assemblyID=${iassembly.id})}" class="action-link far fa-trash-alt" onclick="return confirm('Opravdu si přejete odstranit sestavu?');"></a>
67 bfd68253 cagy
									</span>
68 f7dc4075 cagy
									<i class="fas fa-sort"></i>
69
								</div>
70
							</td>
71
						</div>
72
					</tr>
73
				</tbody>
74 2868bb9a Vojtěch Danišík
			</table>
75 cfe48a96 cagy
		</div>
76 8766d436 cagy
	</div>
77 cfe48a96 cagy
78 8766d436 cagy
	<div layout:fragment="scripts">
79
		<script type="text/javascript" src="js/indexScripts.js" th:inline="javascript"></script>
80
	</div>
81 f7dc4075 cagy
82 8766d436 cagy
</html>