Projekt

Obecné

Profil

Stáhnout (2.88 KB) Statistiky
| Větev: | Revize:
1
<html xmlns:th="http://www.thymeleaf.org"
2
	  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:sec="http://www.w3.org/1999/xhtml"
3
	  layout:decorator="~{/layouts/layout}">
4

    
5
	<div layout:fragment="content">
6
		<meta id="_csrf" name="_csrf" th:content="${_csrf.token}"/>
7
		<meta id="_csrf_header" name="_csrf_header" th:content="${_csrf.headerName}"/>
8
		<div class="container">
9
			<h1>
10
				Výběr sestavy
11
			</h1>
12
		</div>
13
		<div class="container">
14
			<div class="col-md-4 box">
15
				<div class="box-header">
16
					<h3 class="box-title">Rychle k ...</h3>
17
				</div>
18
				<table class="table table-bordered table-striped">
19
					<tbody>
20
					<tr th:each="iconfiguration : ${configurations}">
21
						<td><a th:href="@{/configuration(configurationID=${iconfiguration.id})}"><span th:text="${iconfiguration.name}"></span></a></td>
22
						<td class="center-cell">
23
				  <span class="action-button">
24
					<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>
25
				  </span>
26
						</td>
27
					</tr>
28
					</tbody>
29
				</table>
30
			</div>
31
		</div>
32

    
33
		<div class="container box">
34
			<div class="box-header">
35
				<h3 class="box-title">Seznam sestav</h3>
36
			</div>
37
			<div class="button-container">
38

    
39
				<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>
40
				<span sec:authorize="hasAuthority('Administrátor')" class="btn btn-success align-right" id="saveSort">Uložit řazení</span>
41
			</div>
42

    
43
			<table class="table table-bordered table-striped">
44
				<thead>
45
				<tr>
46
					<th scope="col">Sestava</th>
47
					<th scope="col">Seznam atributů</th>
48
					<th scope="col" sec:authorize="hasAuthority('Administrátor')">Akce</th>
49
				</tr>
50
				</thead>
51
				<tbody class="sort">
52
					<tr th:each="iassembly, itemStat : ${assemblies}" th:id ="${iassembly.id}">
53
						<div>
54
							<td><a th:href="@{/assembly(assemblyID=${iassembly.id})}"><span th:text="${iassembly.name}"></span></a></td>
55
							<td th:text="${attributes[__${itemStat.index}__]}"></td>
56
							<td sec:authorize="hasAuthority('Administrátor')">
57
								<div class="action-wrapper">
58
									<span class="action-button">
59
									  <a th:href="@{/assembly_edit(assemblyID=${iassembly.id})}" class="action-link far fa-edit"></a>
60
									</span>
61
									<span class="action-button">
62
									  <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>
63
									</span>
64
									<i class="fas fa-sort"></i>
65
								</div>
66
							</td>
67
						</div>
68
					</tr>
69
				</tbody>
70
			</table>
71
		</div>
72
	</div>
73

    
74
	<div layout:fragment="scripts">
75
		<script type="text/javascript" src="js/indexScripts.js" th:inline="javascript"></script>
76
	</div>
77

    
78
</html>
(3-3/4)