1 |
2cdd3adc
|
mlinha
|
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
|
2 |
|
|
<head>
|
3 |
cfe48a96
|
cagy
|
<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 |
2cdd3adc
|
mlinha
|
<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 |
cfe48a96
|
cagy
|
<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 |
2868bb9a
|
Vojtěch Danišík
|
</head>
|
25 |
|
|
<body>
|
26 |
cfe48a96
|
cagy
|
<div id="test"></div>
|
27 |
|
|
<main role="main">
|
28 |
|
|
|
29 |
|
|
<div class="container">
|
30 |
93fff090
|
Vojtěch Danišík
|
<a href="/" class="btn btn-success mb-2">Zpět</a>
|
31 |
cfe48a96
|
cagy
|
<h1>
|
32 |
|
|
Sestava - Studenti - studijní programy
|
33 |
|
|
</h1>
|
34 |
|
|
</div>
|
35 |
|
|
|
36 |
b439853d
|
mlinha
|
<form th:object="${configuration}" method="post" th:action="@{/configuration(configurationID=${configuration.id})}">
|
37 |
2cdd3adc
|
mlinha
|
<input type="hidden" th:field="*{assembly.id}" th:value="${configuration.assembly?.getId()}"/>
|
38 |
cfe48a96
|
cagy
|
<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 |
2cdd3adc
|
mlinha
|
<input type="text" class="form-control name-input" th:field="*{tableName}"
|
43 |
|
|
th:value="${configuration?.tableName}">
|
44 |
cfe48a96
|
cagy
|
</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 |
b439853d
|
mlinha
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}">
|
58 |
cfe48a96
|
cagy
|
<td>
|
59 |
2cdd3adc
|
mlinha
|
<span class="select-text-padding"
|
60 |
|
|
th:text="${parameterInConfiguration.parameter.name}"></span>
|
61 |
b439853d
|
mlinha
|
</td>
|
62 |
cfe48a96
|
cagy
|
<td>
|
63 |
b439853d
|
mlinha
|
<optional th:each="location : ${parameterInConfiguration.parameter.locations}">
|
64 |
2cdd3adc
|
mlinha
|
<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 |
cfe48a96
|
cagy
|
<i class="fas fa-align-justify"></i>
|
68 |
|
|
</span>
|
69 |
2cdd3adc
|
mlinha
|
<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 |
cfe48a96
|
cagy
|
<i class="fas fa-align-justify transform"></i>
|
73 |
|
|
</span>
|
74 |
2cdd3adc
|
mlinha
|
<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 |
b439853d
|
mlinha
|
<i class="fas fa-heading"></i>
|
78 |
|
|
</span>
|
79 |
|
|
</optional>
|
80 |
cfe48a96
|
cagy
|
</td>
|
81 |
|
|
<td class="s">
|
82 |
|
|
<div class="col select-filter">
|
83 |
2cdd3adc
|
mlinha
|
<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 |
cfe48a96
|
cagy
|
</select>
|
89 |
2cdd3adc
|
mlinha
|
<input type="text" class="form-control select-filter-input" id="name"
|
90 |
|
|
th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].operatorValue}">
|
91 |
cfe48a96
|
cagy
|
</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 |
2cdd3adc
|
mlinha
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}" th:if="${parameterInConfiguration.location.name?.equals('Řádek')}">
|
113 |
cfe48a96
|
cagy
|
<td>
|
114 |
2cdd3adc
|
mlinha
|
<span th:text="${parameterInConfiguration.parameter.name}"></span>
|
115 |
cfe48a96
|
cagy
|
</td>
|
116 |
|
|
<td>
|
117 |
2cdd3adc
|
mlinha
|
<input th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].columnName}"
|
118 |
|
|
type="text" class="form-control select-filter-input" id="name">
|
119 |
cfe48a96
|
cagy
|
</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 |
2cdd3adc
|
mlinha
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}" th:if="${parameterInConfiguration.location.name?.equals('Sloupec')}">
|
143 |
cfe48a96
|
cagy
|
<td>
|
144 |
2cdd3adc
|
mlinha
|
<span th:text="${parameterInConfiguration.parameter.name}"></span>
|
145 |
cfe48a96
|
cagy
|
</td>
|
146 |
|
|
<td>
|
147 |
2cdd3adc
|
mlinha
|
<input th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].columnName}"
|
148 |
|
|
type="text" class="form-control select-filter-input" id="name">
|
149 |
cfe48a96
|
cagy
|
</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 |
2cdd3adc
|
mlinha
|
<th class="col-2-p">Funkce</th>
|
168 |
cfe48a96
|
cagy
|
</tr>
|
169 |
|
|
</thead>
|
170 |
|
|
<tbody>
|
171 |
2cdd3adc
|
mlinha
|
<tr th:each="parameterInConfiguration, itemStat : ${configuration.parametersInConfiguration}" th:if="${parameterInConfiguration.location.name?.equals('Hodnota')}">
|
172 |
cfe48a96
|
cagy
|
<td>
|
173 |
2cdd3adc
|
mlinha
|
<span th:text="${parameterInConfiguration.parameter.name}"></span>
|
174 |
cfe48a96
|
cagy
|
</td>
|
175 |
|
|
<td>
|
176 |
2cdd3adc
|
mlinha
|
<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 |
cfe48a96
|
cagy
|
</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 |
2cdd3adc
|
mlinha
|
<input type="text" required="required" class="form-control select-filter-input" id="name"
|
196 |
|
|
th:field="${configuration.name}">
|
197 |
cfe48a96
|
cagy
|
</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 |
2cdd3adc
|
mlinha
|
<button type="submit" class="btn btn-secondary mb-2 " name="generate-table">Vygenerovat tabulku
|
205 |
|
|
</button>
|
206 |
cfe48a96
|
cagy
|
<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 |
2868bb9a
|
Vojtěch Danišík
|
</div>
|
210 |
|
|
</div>
|
211 |
cfe48a96
|
cagy
|
</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 |
2cdd3adc
|
mlinha
|
<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 |
cfe48a96
|
cagy
|
|
234 |
|
|
|
235 |
|
|
</table>
|
236 |
2868bb9a
|
Vojtěch Danišík
|
</div>
|
237 |
cfe48a96
|
cagy
|
</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 |
2868bb9a
|
Vojtěch Danišík
|
</body>
|
248 |
cfe48a96
|
cagy
|
</html>
|
249 |
|
|
<script type="text/javascript">
|
250 |
|
|
$("select").selectpicker();
|
251 |
|
|
</script>
|