Projekt

Obecné

Profil

Stáhnout (15.1 KB) Statistiky
| Větev: | Revize:
1 8766d436 cagy
<html xmlns:th="http://www.thymeleaf.org"
2
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
3
      layout:decorator="~{/layouts/layout}">
4 cfe48a96 cagy
5 8766d436 cagy
    <div layout:fragment="content">
6 cfe48a96 cagy
7 8766d436 cagy
        <div class="container">
8
            <h1>
9
                Sestava - Studenti - studijní programy
10
            </h1>
11
            <a href="/" class="btn btn-success mb-2">Zpět</a>
12
        </div>
13 cfe48a96 cagy
14 8766d436 cagy
        <form th:object="${configuration}" method="post" th:action="@{/configuration(configurationID=${configuration.id})}">
15
            <input type="hidden" th:field="*{assembly.id}" th:value="${configuration.assembly?.getId()}"/>
16
            <div class="container box">
17
                <div class="col-md-12">
18
                    <div class="col-md-12 form-group row">
19
                        <label for="exampleFormControlSelect1" class="name-input-label">Titulek tabulky:</label>
20
                        <input type="text" class="form-control name-input" th:field="*{tableName}"
21
                               th:value="${configuration?.tableName}">
22
                    </div>
23
                    <span>Parametry:</span>
24
                    <div class="col-md-9">
25
                        <table class="table">
26 cfe48a96 cagy
                            <thead>
27
                            <tr>
28 8766d436 cagy
                                <th class="col-1">Parametr</th>
29
                                <th class="col-2">Umístění</th>
30
                                <th class="col-3">Filtry</th>
31 cfe48a96 cagy
                            </tr>
32
                            </thead>
33 8766d436 cagy
                            <tbody>
34
                            <tr th:each="parameterInConfiguration, itemStat : ${#lists.sort(configuration.parametersInConfiguration, comparator)}" class="parameter-row">
35
                               <input type="hidden" class="parameterIndex" th:value="${itemStat.index}">
36 cfe48a96 cagy
                                <td>
37 8766d436 cagy
                                    <span class="select-text-padding parameter-name"
38
                                          th:text="${parameterInConfiguration.parameter.name}"></span>
39 cfe48a96 cagy
                                </td>
40 8766d436 cagy
                                <td class="select-action-buttons">
41
                                    <optional th:each="location : ${parameterInConfiguration.parameter.locations}">
42
                                        <span th:if="${location.name?.equals('Řádek')}"
43
                                          th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.name}"
44
                                          class="select-action-padding select-action-button select-input-action-margin-collapse unselectable row-button"
45
                                          th:classappend="(${configuration.parametersInConfiguration[__${itemStat.index}__].location.name?.equals('Řádek')}) ? select-action-headlight"  >
46
                                            <i class="fas fa-align-justify"></i>
47
                                        </span>
48
                                        <span th:if="${location.name?.equals('Sloupec')}"
49
                                              th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.name}"
50
                                              class="select-action-padding select-action-button select-input-action-margin-collapse unselectable column-button"
51
                                              th:classappend="(${configuration.parametersInConfiguration[__${itemStat.index}__].location.name?.equals('Sloupec')}) ? select-action-headlight">
52
                                            <i class="fas fa-align-justify transform"></i>
53
                                        </span>
54
                                        <span th:if="${location.name?.equals('Hodnota')}"
55
                                              th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.name}"
56
                                              class="select-action-padding select-action-button select-input-action-margin-collapse unselectable value-button"
57
                                              th:classappend="(${configuration.parametersInConfiguration[__${itemStat.index}__].location.name?.equals('Hodnota')}) ? select-action-headlight">
58
                                            <i class="fas fa-heading"></i>
59
                                        </span>
60
                                    </optional>
61 cfe48a96 cagy
                                </td>
62 8766d436 cagy
                                <td class="s">
63
                                    <div class="col select-filter">
64
                                        <select class="form-control"
65
                                                th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].operator.name}">
66
                                            <option th:value="zadny" selected value> -- Operátor --</option>
67
                                            <option th:each="operator : ${parameterInConfiguration.parameter.operators}"
68
                                                    th:text="${operator.name}" th:value="${operator.name}"></option>
69
                                        </select>
70
                                        <input type="text" class="form-control select-filter-input" id="name"
71
                                               th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].operatorValue}">
72
                                    </div>
73 cfe48a96 cagy
                                </td>
74 8766d436 cagy
75
                                <select class="form-control hidden" th:id="'function-select-' + ${itemStat.index}"
76
                                        th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].functions}"
77
                                        multiple>
78
                                    <option th:each="function : ${parameterInConfiguration.parameter.functions}"
79
                                            th:text="${function.name}" th:value="${{function.id}}"></option>
80
                                </select>
81 cfe48a96 cagy
                            </tr>
82
                            </tbody>
83
                        </table>
84
                    </div>
85
86 8766d436 cagy
                    <div class="selected-input-container">
87
                        <div class="selected-input-box">
88
                            <div class="selected-input-box-icon">
89
                                <i class="fas fa-align-justify"></i>
90
                            </div>
91
                            <table class="table table-parameter">
92
                                <thead>
93
                                <tr>
94
                                    <th class="col-1-p"></th>
95
                                    <th class="col-2-p">Vlastní název</th>
96
                                    <th class="col-3-p"></th>
97
                                </tr>
98
                                </thead>
99
                                <tbody id="row-wrapper" class="sortable">
100
                                <tr th:each="parameterInConfiguration, itemStat : ${#lists.sort(configuration.parametersInConfiguration)}" th:if="${parameterInConfiguration.location.name?.equals('Řádek')}" class="row-parameter parameter">
101
                                    <input type="hidden" th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.id}" value="1">
102
                                    <input type="hidden" class="parametr-order" th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].parameterOrder}" th:value="${configuration.parametersInConfiguration[__${itemStat.index}__].parameterOrder}">
103
                                    <td>
104
                                        <span class="parameter-name" th:text="${parameterInConfiguration.parameter.name}"></span>
105
                                    </td>
106
                                    <td>
107
                                        <input th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].columnName}"
108
                                               type="text" class="form-control select-filter-input">
109
                                    </td>
110
                                    <td>
111
                                        <span><i class="fas fa-sort"></i></span>
112
                                    </td>
113
                                </tr>
114
                                </tbody>
115
                            </table>
116
                        </div>
117
118 cfe48a96 cagy
119 8766d436 cagy
                        <div class="selected-input-box">
120
                            <div class="selected-input-box-icon">
121
                                <i class="fas fa-align-justify transform"></i>
122
                            </div>
123
                            <table class="table table-parameter">
124
                                <thead>
125
                                <tr>
126
                                    <th class="col-1-p"></th>
127
                                    <th class="col-2-p">Vlastní název</th>
128
                                    <th class="col-3-p"></th>
129
                                </tr>
130
                                </thead>
131
                                <tbody id="column-wrapper" class="sortable">
132
                                <tr th:each="parameterInConfiguration, itemStat : ${#lists.sort(configuration.parametersInConfiguration)}" th:if="${parameterInConfiguration.location.name?.equals('Sloupec')}" class="column-parameter parameter">
133
                                    <input type="hidden" th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.id}" value="2">
134
                                    <input type="hidden" class="parametr-order" th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].parameterOrder}" th:value="${configuration.parametersInConfiguration[__${itemStat.index}__].parameterOrder}">
135
                                    <td>
136
                                        <span class="parameter-name" th:text="${parameterInConfiguration.parameter.name}"></span>
137
                                    </td>
138
                                    <td>
139
                                        <input th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].columnName}"
140
                                               type="text" class="form-control select-filter-input" id="name">
141
                                    </td>
142
                                    <td>
143
                                        <span><i class="fas fa-sort"></i></span>
144
                                    </td>
145
                                </tr>
146
                                </tbody>
147
                            </table>
148 cfe48a96 cagy
                        </div>
149
150
151 8766d436 cagy
                        <div class="selected-input-box">
152
                            <div class="selected-input-box-icon">
153
                                <i class="fas fa-heading"></i>
154
                            </div>
155
                            <table class="table table-parameter">
156
                                <thead>
157
                                <tr>
158
                                    <th class="col-1-p"></th>
159
                                    <th class="col-2-p">Funkce</th>
160
                                </tr>
161
                                </thead>
162
                                <tbody id="value-wrapper">
163
                                <tr th:each="parameterInConfiguration, itemStat : ${#lists.sort(configuration.parametersInConfiguration)}" th:if="${parameterInConfiguration.location.name?.equals('Hodnota')}" class="value-parameter parameter">
164
                                    <input type="hidden" th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].location.id}" value="3">
165
                                    <input type="hidden" class="parametr-order" th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].parameterOrder}" th:value="${configuration.parametersInConfiguration[__${itemStat.index}__].parameterOrder}">
166
                                    <td>
167
                                        <span class="parameter-name" th:text="${parameterInConfiguration.parameter.name}"></span>
168
                                    </td>
169
                                    <td>
170
                                        <select class="form-control"
171
                                                th:field="${configuration.parametersInConfiguration[__${itemStat.index}__].functions}"
172
                                                multiple>
173
                                            <option th:each="function : ${parameterInConfiguration.parameter.functions}"
174
                                                    th:text="${function.name}" th:value="${{function.id}}"></option>
175
                                        </select>
176
                                    </td>
177
                                </tr>
178
                                </tbody>
179
                            </table>
180 cfe48a96 cagy
                        </div>
181
                    </div>
182
183
184 8766d436 cagy
                    <div class="col-md-12 form-group row template-input">
185
                        <label for="exampleFormControlSelect1" class="template-input-label">Vlastní název šablony:</label>
186
                        <div class="">
187
                            <input type="text" required="required" class="form-control select-filter-input" id="name"
188
                                   th:field="${configuration.name}">
189
                        </div>
190 cfe48a96 cagy
191 8766d436 cagy
                        <button type="submit" class="btn btn-success mb-2 template-input-submit">Uložit šablonu</button>
192
                    </div>
193 cfe48a96 cagy
194
195 8766d436 cagy
                    <div class="buttons-wrap">
196
                        <button type="submit" class="btn btn-secondary mb-2 " name="generate-table">Vygenerovat tabulku
197
                        </button>
198
                        <button type="submit" class="btn btn-secondary mb-2 " name="export-xls">Export do XLS</button>
199
                        <button type="submit" class="btn btn-secondary mb-2 " name="export-pdf">Export do PDF</button>
200
                    </div>
201 cfe48a96 cagy
                </div>
202 2868bb9a Vojtěch Danišík
            </div>
203 8766d436 cagy
        </form>
204 cfe48a96 cagy
205
206 8766d436 cagy
        <div th:if="${contingencyTableRows}" class="container box">
207
            <div class="col-md-12">
208
                <table class="tg table">
209
                    <tr th:each="contingencyTableRow : ${contingencyTableRows}">
210
                        <div class="tg-align" th:if="${contingencyTableRow.isHeader()}">
211
                            <th class="tg-align" th:each="contingencyTableRowCell : ${contingencyTableRow.getCells()}">
212
                                <span th:text="${contingencyTableRowCell.getValue()}"></span>
213
                            </th>
214
                        </div>
215
                        <div th:unless="${contingencyTableRow.isHeader()}">
216
                            <td class="tg-align" th:each="contingencyTableRowCell : ${contingencyTableRow.getCells()}">
217
                                <span th:text="${contingencyTableRowCell.getValue()}"></span>
218
                            </td>
219
                        </div>
220
                    </tr>
221 cfe48a96 cagy
222
223 8766d436 cagy
                </table>
224
            </div>
225 2868bb9a Vojtěch Danišík
        </div>
226 cfe48a96 cagy
    </div>
227
228 8766d436 cagy
    <div layout:fragment="scripts">
229
        <script type="text/javascript" src="js/assemblyScripts.js"></script>
230 cfe48a96 cagy
    </div>
231
232
</html>