Revize f38b6ac8
Přidáno uživatelem Jan Čarnogurský před téměř 5 roky(ů)
src/main/webapp/WEB-INF/templates/assembly.html | ||
---|---|---|
22 | 22 |
<div class="container box"> |
23 | 23 |
<div class="col-md-12"> |
24 | 24 |
<div class="col-md-12 form-group row"> |
25 |
<label for="exampleFormControlSelect1" class="name-input-label">Titulek tabulky:</label>
|
|
25 |
<label th:for="${tableName}" class="name-input-label">Titulek tabulky:</label>
|
|
26 | 26 |
<input type="text" class="form-control name-input" th:field="*{tableName}" |
27 | 27 |
th:value="${configuration?.tableName}"> |
28 | 28 |
</div> |
... | ... | |
73 | 73 |
<option th:each="operator : ${parameterInConfiguration.parameter.operators}" |
74 | 74 |
th:text="${operator.name}" th:value="${operator.name}"></option> |
75 | 75 |
</select> |
76 |
<input type="text" class="form-control select-filter-input" id="name"
|
|
76 |
<input type="text" class="form-control select-filter-input" |
|
77 | 77 |
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].operatorValue}"> |
78 | 78 |
</div> |
79 | 79 |
</td> |
... | ... | |
143 | 143 |
</td> |
144 | 144 |
<td> |
145 | 145 |
<input th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].columnName}" |
146 |
type="text" class="form-control select-filter-input" id="name">
|
|
146 |
type="text" class="form-control select-filter-input"> |
|
147 | 147 |
</td> |
148 | 148 |
<td> |
149 | 149 |
<span><i class="fas fa-sort"></i></span> |
... | ... | |
188 | 188 |
|
189 | 189 |
|
190 | 190 |
<div class="col-md-12 form-group row template-input"> |
191 |
<label for="exampleFormControlSelect1" class="template-input-label">Vlastní název šablony:</label>
|
|
191 |
<label th:for="${configuration.name}" class="template-input-label">Vlastní název šablony:</label>
|
|
192 | 192 |
<div class=""> |
193 |
<input type="text" required="required" class="form-control select-filter-input" id="name" |
|
194 |
th:field="${configuration.name}"> |
|
193 |
<input type="text" required="required" class="form-control select-filter-input" th:field="${configuration.name}"> |
|
195 | 194 |
</div> |
196 | 195 |
|
197 | 196 |
<button type="submit" class="btn btn-success mb-2 template-input-submit">Uložit šablonu</button> |
... | ... | |
224 | 223 |
</td> |
225 | 224 |
</div> |
226 | 225 |
</tr> |
227 |
|
|
228 |
|
|
229 | 226 |
</table> |
230 | 227 |
</div> |
231 | 228 |
</div> |
src/main/webapp/WEB-INF/templates/assembly_manage.html | ||
---|---|---|
33 | 33 |
<div class="container box"> |
34 | 34 |
<div class="col-md-12"> |
35 | 35 |
<div class="form-group row"> |
36 |
<label for="name" class="col-sm-2 col-form-label">Název sestavy:</label>
|
|
36 |
<label for="assemblyName" class="col-sm-2 col-form-label">Název sestavy:</label>
|
|
37 | 37 |
<div class="col-sm-10"> |
38 | 38 |
<input type="text" class="form-control" name="assemblyName" id="assemblyName" th:field="*{name}" th:value="*{name}" required> |
39 | 39 |
</div> |
... | ... | |
54 | 54 |
</div> |
55 | 55 |
</div> |
56 | 56 |
</div> |
57 |
|
|
58 |
|
|
59 | 57 |
<div class="container box"> |
60 | 58 |
<div class="col-md-12"> |
61 | 59 |
<div class="box-header"> |
... | ... | |
175 | 173 |
<div th:each="roleWithAccess, i : ${assembly.roles}" class="input-action-box input-border-bottom permission-row"> |
176 | 174 |
<input type="hidden" class="permission-role" th:field="${assembly.roles[__${i.index}__].id}" th:value="${roleWithAccess.id}"> |
177 | 175 |
<input type="text" readonly class="form-control-plaintext permission-title" th:field="${assembly.roles[__${i.index}__].name}" th:value="${roleWithAccess.name}"> |
178 |
|
|
179 |
|
|
180 | 176 |
<span class="action-padding action-button input-action-margin"> |
181 | 177 |
<span class="action-link far fa-trash-alt" onclick="removeRole(this);"></span> |
182 | 178 |
</span> |
... | ... | |
193 | 189 |
</div> |
194 | 190 |
</div> |
195 | 191 |
</div> |
196 |
|
|
197 | 192 |
<div class="submit_center_button"> |
198 | 193 |
<button type="submit" class="btn btn-success mb-2">Uložit</button> |
199 | 194 |
</div> |
200 |
|
|
201 | 195 |
</form> |
202 |
|
|
203 |
|
|
204 | 196 |
</div> |
205 | 197 |
|
206 | 198 |
<div layout:fragment="scripts"> |
207 | 199 |
<script type="text/javascript" src="js/assemblyManageScripts.js"></script> |
208 | 200 |
</div> |
209 |
|
|
210 | 201 |
</html> |
src/main/webapp/WEB-INF/templates/fragments/headers.html | ||
---|---|---|
1 | 1 |
<!DOCTYPE html> |
2 | 2 |
|
3 |
<html |
|
4 |
xmlns:th="http://www.thymeleaf.org" |
|
5 |
lang="cs" |
|
6 |
> |
|
3 |
<html xmlns:th="http://www.thymeleaf.org" lang="cs"> |
|
7 | 4 |
<head th:fragment="head(title)"> |
8 | 5 |
<title th:replace="${title}">PIA ukázka</title> |
9 | 6 |
<link rel="stylesheet" type="text/css" media="all" th:href="@{/css/style.css}"> |
... | ... | |
23 | 20 |
</li> |
24 | 21 |
</ul> |
25 | 22 |
</nav> |
26 |
|
|
27 | 23 |
<p>Hello <span th:text="${#authentication.name}"></span></p> |
28 | 24 |
</body> |
29 | 25 |
</html> |
src/main/webapp/WEB-INF/templates/layouts/layout.html | ||
---|---|---|
28 | 28 |
|
29 | 29 |
</head> |
30 | 30 |
<body> |
31 |
|
|
32 | 31 |
<div th:if="${errorText}" > |
33 | 32 |
<div class="alert alert-danger"> |
34 | 33 |
<span th:text="${errorText}"></span> |
... | ... | |
41 | 40 |
</div> |
42 | 41 |
|
43 | 42 |
<div sec:authorize="isAuthenticated()" class="user-panel"> |
44 |
<span>Přihlášený uživatel: <span sec:authentication="name"></span>, Role: <span sec:authentication="principal.authorities"></span></span> |
|
43 |
<span>Přihlášený uživatel: |
|
44 |
<span sec:authentication="name"></span>, |
|
45 |
Role: <span sec:authentication="principal.authorities"></span> |
|
46 |
</span> |
|
45 | 47 |
<a href="#" onclick="document.forms['logoutForm'].submit()">Odhlásit se</a> |
46 | 48 |
|
47 | 49 |
<form id="logoutForm" method="POST" th:action="@{/logout}"> |
Také k dispozici: Unified diff
re #8024 - templates refaktoring