1
|
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
|
2
|
<head>
|
3
|
<meta charset="utf-8">
|
4
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
5
|
<meta name="description" content="">
|
6
|
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
7
|
<meta name="generator" content="Jekyll v3.8.6">
|
8
|
<title>Album example · Bootstrap</title>
|
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
|
|
14
|
<link href="css/bootstrap-select.min.css" rel="stylesheet">
|
15
|
<link href="css/fontawesome.min.css" rel="stylesheet">
|
16
|
<link href="css/style.css" rel="stylesheet">
|
17
|
|
18
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
|
19
|
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
|
20
|
crossorigin="anonymous"></script>
|
21
|
<script type="text/javascript" src="js/jquery.js"></script>
|
22
|
<script type="text/javascript" src="js/bootstrap.min.js"></script>
|
23
|
<script type="text/javascript" src="js/bootstrap-select.min.js"></script>
|
24
|
</head>
|
25
|
<body>
|
26
|
<div id="test"></div>
|
27
|
<main role="main">
|
28
|
|
29
|
<div class="container">
|
30
|
<a href="/" class="btn btn-success mb-2">Zpět</a>
|
31
|
<h1>
|
32
|
Sestava - Studenti - studijní programy
|
33
|
</h1>
|
34
|
</div>
|
35
|
|
36
|
<form th:object="${configuration}" method="post" th:action="@{/configuration(configurationID=${configuration.id})}">
|
37
|
<input type="hidden" th:field="*{assembly.id}" th:value="${configuration.assembly?.getId()}"/>
|
38
|
<div class="container box">
|
39
|
<div class="col-md-12">
|
40
|
<div class="col-md-12 form-group row">
|
41
|
<label for="exampleFormControlSelect1" class="name-input-label">Titulek tabulky:</label>
|
42
|
<input type="text" class="form-control name-input" th:field="*{tableName}"
|
43
|
th:value="${configuration?.tableName}">
|
44
|
</div>
|
45
|
|
46
|
<span>Parametry:</span>
|
47
|
<div class="col-md-7">
|
48
|
<table class="table">
|
49
|
<thead>
|
50
|
<tr>
|
51
|
<th class="col-1">Parametr</th>
|
52
|
<th class="col-2">Umístění</th>
|
53
|
<th class="col-3">Filtry</th>
|
54
|
</tr>
|
55
|
</thead>
|
56
|
<tbody>
|
57
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}">
|
58
|
<td>
|
59
|
<span class="select-text-padding"
|
60
|
th:text="${parameterInConfiguration.parameter.name}"></span>
|
61
|
</td>
|
62
|
<td>
|
63
|
<optional th:each="location : ${parameterInConfiguration.parameter.locations}">
|
64
|
<span th:if="${location.name.equals('Sloupec')}"
|
65
|
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.name}"
|
66
|
class="select-action-padding select-action-button select-input-action-margin-collapse">
|
67
|
<i class="fas fa-align-justify"></i>
|
68
|
</span>
|
69
|
<span th:if="${location.name.equals('Řádek')}"
|
70
|
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.name}"
|
71
|
class="select-action-padding select-action-button select-input-action-margin-collapse">
|
72
|
<i class="fas fa-align-justify transform"></i>
|
73
|
</span>
|
74
|
<span th:if="${location.name.equals('Hodnota')}"
|
75
|
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.name}"
|
76
|
class="select-action-padding select-action-button select-input-action-margin-collapse">
|
77
|
<i class="fas fa-heading"></i>
|
78
|
</span>
|
79
|
</optional>
|
80
|
</td>
|
81
|
<td class="s">
|
82
|
<div class="col select-filter">
|
83
|
<select class="form-control" style="{width:60px;}" id="exampleFormControlSelect1"
|
84
|
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].operator.name}">
|
85
|
<option th:value="zadny" selected value> -- Zvolte operátor --</option>
|
86
|
<option th:each="operator : ${parameterInConfiguration.parameter.operators}"
|
87
|
th:text="${operator.name}" th:value="${operator.name}"></option>
|
88
|
</select>
|
89
|
<input type="text" class="form-control select-filter-input" id="name"
|
90
|
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].operatorValue}">
|
91
|
</div>
|
92
|
</td>
|
93
|
</tr>
|
94
|
</tbody>
|
95
|
</table>
|
96
|
</div>
|
97
|
|
98
|
<div class="selected-input-container">
|
99
|
<div class="selected-input-box">
|
100
|
<div class="selected-input-box-icon">
|
101
|
<i class="fas fa-align-justify"></i>
|
102
|
</div>
|
103
|
<table class="table table-parameter">
|
104
|
<thead>
|
105
|
<tr>
|
106
|
<th class="col-1-p"></th>
|
107
|
<th class="col-2-p">Vlastní název</th>
|
108
|
<th class="col-3-p"></th>
|
109
|
</tr>
|
110
|
</thead>
|
111
|
<tbody>
|
112
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}" th:if="${parameterInConfiguration.location.name?.equals('Řádek')}">
|
113
|
<td>
|
114
|
<span th:text="${parameterInConfiguration.parameter.name}"></span>
|
115
|
</td>
|
116
|
<td>
|
117
|
<input th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].columnName}"
|
118
|
type="text" class="form-control select-filter-input" id="name">
|
119
|
</td>
|
120
|
<td>
|
121
|
<span><i class="fas fa-sort"></i></span>
|
122
|
</td>
|
123
|
</tr>
|
124
|
</tbody>
|
125
|
</table>
|
126
|
</div>
|
127
|
|
128
|
|
129
|
<div class="selected-input-box">
|
130
|
<div class="selected-input-box-icon">
|
131
|
<i class="fas fa-align-justify transform"></i>
|
132
|
</div>
|
133
|
<table class="table table-parameter">
|
134
|
<thead>
|
135
|
<tr>
|
136
|
<th class="col-1-p"></th>
|
137
|
<th class="col-2-p">Vlastní název</th>
|
138
|
<th class="col-3-p"></th>
|
139
|
</tr>
|
140
|
</thead>
|
141
|
<tbody>
|
142
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}" th:if="${parameterInConfiguration.location.name?.equals('Sloupec')}">
|
143
|
<td>
|
144
|
<span th:text="${parameterInConfiguration.parameter.name}"></span>
|
145
|
</td>
|
146
|
<td>
|
147
|
<input th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].columnName}"
|
148
|
type="text" class="form-control select-filter-input" id="name">
|
149
|
</td>
|
150
|
<td>
|
151
|
<span><i class="fas fa-sort"></i></span>
|
152
|
</td>
|
153
|
</tr>
|
154
|
</tbody>
|
155
|
</table>
|
156
|
</div>
|
157
|
|
158
|
|
159
|
<div class="selected-input-box">
|
160
|
<div class="selected-input-box-icon">
|
161
|
<i class="fas fa-heading"></i>
|
162
|
</div>
|
163
|
<table class="table table-parameter">
|
164
|
<thead>
|
165
|
<tr>
|
166
|
<th class="col-1-p"></th>
|
167
|
<th class="col-2-p">Funkce</th>
|
168
|
</tr>
|
169
|
</thead>
|
170
|
<tbody>
|
171
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}" th:if="${parameterInConfiguration.location.name?.equals('Hodnota')}">
|
172
|
<td>
|
173
|
<span th:text="${parameterInConfiguration.parameter.name}"></span>
|
174
|
</td>
|
175
|
<td>
|
176
|
<select class="form-control" style="{width:60px;}"
|
177
|
id="exampleFormControlSelect1"
|
178
|
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].functions}"
|
179
|
multiple>
|
180
|
<option th:each="function : ${parameterInConfiguration.parameter.functions}"
|
181
|
th:text="${function.name}" th:value="${{function.id}}"></option>
|
182
|
</select>
|
183
|
</td>
|
184
|
|
185
|
</tr>
|
186
|
</tbody>
|
187
|
</table>
|
188
|
</div>
|
189
|
</div>
|
190
|
|
191
|
|
192
|
<div class="col-md-12 form-group row template-input">
|
193
|
<label for="exampleFormControlSelect1" class="template-input-label">Vlastní název šablony:</label>
|
194
|
<div class="">
|
195
|
<input type="text" required="required" class="form-control select-filter-input" id="name"
|
196
|
th:field="${configuration.name}">
|
197
|
</div>
|
198
|
|
199
|
<button type="submit" class="btn btn-success mb-2 template-input-submit">Uložit šablonu</button>
|
200
|
</div>
|
201
|
|
202
|
|
203
|
<div class="buttons-wrap">
|
204
|
<button type="submit" class="btn btn-secondary mb-2 " name="generate-table">Vygenerovat tabulku
|
205
|
</button>
|
206
|
<button type="submit" class="btn btn-secondary mb-2 " name="export-xls">Export do XLS</button>
|
207
|
<button type="submit" class="btn btn-secondary mb-2 " name="export-pdf">Export do PDF</button>
|
208
|
</div>
|
209
|
</div>
|
210
|
</div>
|
211
|
</form>
|
212
|
|
213
|
|
214
|
<div th:if="${contingencyTableRows}" class="container box">
|
215
|
<div class="col-md-12">
|
216
|
|
217
|
|
218
|
<table class="tg table">
|
219
|
|
220
|
|
221
|
<tr th:each="contingencyTableRow : ${contingencyTableRows}">
|
222
|
<div class="tg-align" th:if="${contingencyTableRow.isHeader()}">
|
223
|
<th class="tg-align" th:each="contingencyTableRowCell : ${contingencyTableRow.getCells()}">
|
224
|
<span th:text="${contingencyTableRowCell.getValue()}"></span>
|
225
|
</th>
|
226
|
</div>
|
227
|
<div th:unless="${contingencyTableRow.isHeader()}">
|
228
|
<td class="tg-align" th:each="contingencyTableRowCell : ${contingencyTableRow.getCells()}">
|
229
|
<span th:text="${contingencyTableRowCell.getValue()}"></span>
|
230
|
</td>
|
231
|
</div>
|
232
|
</tr>
|
233
|
|
234
|
|
235
|
</table>
|
236
|
</div>
|
237
|
</div>
|
238
|
</main>
|
239
|
|
240
|
<footer class="text-muted">
|
241
|
<div class="container">
|
242
|
|
243
|
</div>
|
244
|
</footer>
|
245
|
|
246
|
<script type="text/javascript" src="js/app.js"></script>
|
247
|
</body>
|
248
|
</html>
|
249
|
<script type="text/javascript">
|
250
|
$("select").selectpicker();
|
251
|
</script>
|