1
|
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"><head>
|
2
|
<meta charset="utf-8">
|
3
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
4
|
<meta name="description" content="">
|
5
|
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
6
|
<meta name="generator" content="Jekyll v3.8.6">
|
7
|
<title>Album example · Bootstrap</title>
|
8
|
<link rel="canonical" href="https://getbootstrap.com/docs/4.4/examples/album/">
|
9
|
|
10
|
<!-- Bootstrap core CSS -->
|
11
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
12
|
|
13
|
<link href="css/bootstrap-select.min.css" rel="stylesheet">
|
14
|
<link href="css/fontawesome.min.css" rel="stylesheet">
|
15
|
<link href="css/style.css" rel="stylesheet">
|
16
|
|
17
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
18
|
<script type="text/javascript" src="js/jquery.js"></script>
|
19
|
<script type="text/javascript" src="js/bootstrap.min.js"></script>
|
20
|
<script type="text/javascript" src="js/bootstrap-select.min.js"></script>
|
21
|
</head>
|
22
|
<body>
|
23
|
<div id="test"></div>
|
24
|
<main role="main">
|
25
|
|
26
|
<div class="container">
|
27
|
<input type=button onclick="history.back()" class="btn btn-success mb-2" value="Zpět">
|
28
|
<h1>
|
29
|
Editace - Studenti - studijní programy
|
30
|
</h1>
|
31
|
</div>
|
32
|
|
33
|
<form>
|
34
|
<div class="container box">
|
35
|
<div class="col-md-12">
|
36
|
<div class="form-group row">
|
37
|
<label for="name" class="col-sm-2 col-form-label">Název sestavy:</label>
|
38
|
<div class="col-sm-10">
|
39
|
<input type="text" class="form-control" id="name" th:value="${assembly.name}">
|
40
|
</div>
|
41
|
</div>
|
42
|
<div class="form-group row">
|
43
|
<label for="sql_query" class="col-sm-2 col-form-label">SQL dotaz:</label>
|
44
|
<div class="col-sm-10">
|
45
|
<textarea class="form-control" id="sql_query" rows="6" th:text="${assembly.SQLQuery}"></textarea>
|
46
|
</div>
|
47
|
</div>
|
48
|
<div class="form-group row">
|
49
|
<label class="form-check-label col-sm-2" for="checkboxPublic">Veřejný:</label>
|
50
|
<div class="col-sm-10">
|
51
|
<div class="form-check">
|
52
|
<input class="form-check-input" type="checkbox" value="" th:checked="${assembly.isPublic} == 1" id="checkboxPublic">
|
53
|
</div>
|
54
|
</div>
|
55
|
</div>
|
56
|
</div>
|
57
|
</div>
|
58
|
</div>
|
59
|
|
60
|
<div class="container box">
|
61
|
<div class="col-md-12">
|
62
|
<div class="box-header">
|
63
|
<h3 class="box-title">Parametry</h3>
|
64
|
<button type="button" class="btn btn-success"><i class="fas fa-plus"></i> Přidat parametr</button>
|
65
|
</div>
|
66
|
|
67
|
<div th:each="parameter : ${parameters}" class="panel-group" id="accordion">
|
68
|
<div class="panel panel-default">
|
69
|
<div class="panel-heading">
|
70
|
<span class="panel-title">
|
71
|
<a data-toggle="collapse" data-parent="#accordion" th:attr="href='#collapse' + ${parameter.id}">
|
72
|
<i class="fas fa-angle-right"></i> <span th:text="${parameter.name}"></span>
|
73
|
</a>
|
74
|
<span class="align-right collapse-actions">
|
75
|
<span class="action-padding input-action-margin-collapse sort-icon">
|
76
|
<i class="fas fa-sort"></i>
|
77
|
</span>
|
78
|
<span class="action-padding action-button input-action-margin-collapse">
|
79
|
<a href=# class="action-link far fa-trash-alt"></a>
|
80
|
</span>
|
81
|
</span>
|
82
|
</span>
|
83
|
</div>
|
84
|
<div th:id="'collapse' + ${parameter.id}" class="panel-collapse collapse">
|
85
|
<div class="panel-body">
|
86
|
<div class="form-group row">
|
87
|
<label for="name" class="col-sm-2 col-form-label">Název:</label>
|
88
|
<div class="col-sm-10">
|
89
|
<input type="text" class="form-control" id="name" th:value="${parameter.name}">
|
90
|
</div>
|
91
|
</div>
|
92
|
<div class="form-group row">
|
93
|
<label for="name" class="col-sm-2 col-form-label">V SQL:</label>
|
94
|
<div class="col-sm-10">
|
95
|
<input type="text" class="form-control" id="name" th:value="${parameter.nameOfSelect}">
|
96
|
</div>
|
97
|
</div>
|
98
|
<div class="form-group row">
|
99
|
<label for="exampleFormControlSelect1" class="col-sm-2">Typ:</label>
|
100
|
<div class="col-sm-10">
|
101
|
<select class="form-control" id="exampleFormControlSelect1">
|
102
|
<option th:each="parameterType : ${parameterTypes}" th:value="newParameterType + ${parameterType.name}" th:text="${parameterType.name}"></option>
|
103
|
</select>
|
104
|
</div>
|
105
|
</div>
|
106
|
|
107
|
<div class="enum_box">
|
108
|
Hodnoty:
|
109
|
<div class="enum_values col-md-8">
|
110
|
<div class="input-action-box input-border-bottom">
|
111
|
<input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Doktorský">
|
112
|
|
113
|
<span class="action-padding input-action-margin sort-icon">
|
114
|
<i class="fas fa-sort"></i>
|
115
|
</span>
|
116
|
<span class="action-padding action-button input-action-margin">
|
117
|
<a href=# class="action-link far fa-trash-alt"></a>
|
118
|
</span>
|
119
|
</div>
|
120
|
<div class="input-action-box input-border-bottom">
|
121
|
<input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Navazující">
|
122
|
|
123
|
<span class="action-padding input-action-margin sort-icon">
|
124
|
<i class="fas fa-sort"></i>
|
125
|
</span>
|
126
|
<span class="action-padding action-button input-action-margin">
|
127
|
<a href=# class="action-link far fa-trash-alt"></a>
|
128
|
</span>
|
129
|
|
130
|
</div>
|
131
|
<div class="input-action-box input-border-bottom">
|
132
|
<input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Bakalářský">
|
133
|
|
134
|
<span class="action-padding input-action-margin sort-icon">
|
135
|
<i class="fas fa-sort"></i>
|
136
|
</span>
|
137
|
<span class="action-padding action-button input-action-margin">
|
138
|
<a href=# class="action-link far fa-trash-alt"></a>
|
139
|
</span>
|
140
|
</div>
|
141
|
|
142
|
<div class="form-group row form-add-item">
|
143
|
<div class="col-md-9">
|
144
|
<input type="text" class="form-control" id="name">
|
145
|
</div>
|
146
|
<button type="submit" class="btn btn-primary mb-2">Přidat</button>
|
147
|
</div>
|
148
|
</div>
|
149
|
</div>
|
150
|
|
151
|
<div class="form-group row">
|
152
|
<label for="exampleFormControlSelect1" class="col-sm-2">Umístění:</label>
|
153
|
<div class="col-sm-10">
|
154
|
<div th:each="location : ${locations}" class="form-check form-check-inline">
|
155
|
<input class="form-check-input" type="checkbox" th:id="'checkbox' + ${location.name}" th:value="${location.name}" th:checked="${parameter.locations.contains(location)}">
|
156
|
<label class="form-check-label" th:for="checkbox + ${location.name}" th:text="${location.name}"></label>
|
157
|
</div>
|
158
|
</div>
|
159
|
</div>
|
160
|
<div class="form-group row">
|
161
|
<label for="exampleFormControlSelect1" class="col-sm-2">Funkce:</label>
|
162
|
<div class="col-sm-10">
|
163
|
<select class="mbSelect selectpicker" multiple data-live-search="true">
|
164
|
<option th:each="function : ${functions}" th:value="'selectedFunction' + ${function.name}" th:text="${function.name}" th:selected="${parameter.functions.contains(function)}"></option>
|
165
|
</select>
|
166
|
</div>
|
167
|
</div>
|
168
|
<div class="form-group row">
|
169
|
<label for="exampleFormControlSelect1" class="col-sm-2">Operátory:</label>
|
170
|
<div class="col-sm-10">
|
171
|
<select class="mbSelect selectpicker" multiple data-live-search="true">
|
172
|
<option th:each="operator : ${operators}" th:value="'selectedOperator' + ${operator.name}" th:text="${operator.name}" th:selected="${parameter.operators.contains(operator)}"></option>
|
173
|
</select>
|
174
|
</div>
|
175
|
</div>
|
176
|
</div>
|
177
|
</div>
|
178
|
</div>
|
179
|
</div>
|
180
|
</div>
|
181
|
</div>
|
182
|
|
183
|
<div class="container box">
|
184
|
<div class="col-md-4">
|
185
|
<div class="box-header">
|
186
|
<h3 class="box-title">Oprávnění</h3>
|
187
|
</div>
|
188
|
|
189
|
<div th:each="roleWithAccess : ${rolesWithAccess}" class="input-action-box input-border-bottom">
|
190
|
<input type="text" readonly class="form-control-plaintext" th:id="selectedRole + ${roleWithAccess.name}" th:value="${roleWithAccess.name}">
|
191
|
|
192
|
<span class="action-padding input-action-margin sort-icon">
|
193
|
<i class="fas fa-sort"></i>
|
194
|
</span>
|
195
|
<span class="action-padding action-button input-action-margin">
|
196
|
<a href=# class="action-link far fa-trash-alt"></a>
|
197
|
</span>
|
198
|
</div>
|
199
|
|
200
|
<div class="form-group row form-add-item">
|
201
|
<div class="col-md-9">
|
202
|
<select class="form-control " id="selectNewRole">
|
203
|
<option th:each="role : ${roles}" th:value="newRole + ${role.name}" th:text="${role.name}"></option>
|
204
|
</select>
|
205
|
</div>
|
206
|
<button type="submit" class="btn btn-primary mb-2">Přidat</button>
|
207
|
</div>
|
208
|
</div>
|
209
|
</div>
|
210
|
<div class="submit_center_button">
|
211
|
<button type="submit" class="btn btn-success mb-2">Uložit</button>
|
212
|
</div>
|
213
|
|
214
|
</form>
|
215
|
|
216
|
|
217
|
</main>
|
218
|
|
219
|
<footer class="text-muted">
|
220
|
<div class="container">
|
221
|
|
222
|
</div>
|
223
|
</footer>
|
224
|
|
225
|
<script type="text/javascript" src="js/app.js"></script>
|
226
|
</body>
|
227
|
</html>
|
228
|
<script type="text/javascript">
|
229
|
$("select").selectpicker();
|
230
|
</script>
|