Projekt

Obecné

Profil

Stáhnout (2.93 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
	<head>
6
		<title>Výběr sestavy</title>
7
	</head>
8

    
9
	<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
		<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
					<tr th:each="iconfiguration : ${configurations}">
25
						<td><a th:href="@{/configuration(configurationID=${iconfiguration.id})}"><span th:text="${iconfiguration.name}"></span></a></td>
26
						<td class="center-cell">
27
				  <span class="action-button">
28
					<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
				  </span>
30
						</td>
31
					</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

    
43
				<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
				<span sec:authorize="hasAuthority('Administrátor')" class="btn btn-success align-right" id="saveSort">Uložit řazení</span>
45
			</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
					<th scope="col" sec:authorize="hasAuthority('Administrátor')">Akce</th>
53
				</tr>
54
				</thead>
55
				<tbody class="sort">
56
					<tr th:each="iassembly, itemStat : ${assemblies}" th:id ="${iassembly.id}">
57
						<div>
58
							<td><a th:href="@{/assembly(assemblyID=${iassembly.id})}"><span th:text="${iassembly.name}"></span></a></td>
59
							<td th:text="${attributes[__${itemStat.index}__]}"></td>
60
							<td sec:authorize="hasAuthority('Administrátor')">
61
								<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
									  <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
									</span>
68
									<i class="fas fa-sort"></i>
69
								</div>
70
							</td>
71
						</div>
72
					</tr>
73
				</tbody>
74
			</table>
75
		</div>
76
	</div>
77

    
78
	<div layout:fragment="scripts">
79
		<script type="text/javascript" src="js/indexScripts.js" th:inline="javascript"></script>
80
	</div>
81

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