Skip to content

Commit bb5a3ea

Browse files
committed
improve customer selection layout
1 parent ad392c7 commit bb5a3ea

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

src/main/resources/static/style.css

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,26 +164,30 @@ body {
164164
background-color: var(--button-hover-background-color);
165165
}
166166

167+
.ui-select-big {
168+
width: 30%;
169+
}
170+
167171
.minor {
168172
font-size: 90%;
169173
}
170174

171175
.ui-panel-1 {
172-
border: 5px groove #1c1c1c;
173-
padding: 0 15px 15px;
174-
margin-bottom: 10px;
176+
border: 5px groove #aaa;
177+
padding: 15px;
178+
margin: 7px 0;
175179
}
176180

177181
.ui-panel-2 {
178-
border: 3px groove grey;
179-
padding: 0 10px 10px;
180-
margin-bottom: 7px;
182+
border: 3px groove #bbb;
183+
padding: 10px;
184+
margin: 5px 0;
181185
}
182186

183187
.ui-panel-3 {
184-
border: 1.5px groove lightgrey;
185-
padding: 0 5px 5px;
186-
margin-bottom: 5px;
188+
border: 1.5px groove #ccc;
189+
padding: 5px;
190+
margin: 3px 0;
187191
}
188192

189193
/* utility components */

src/main/resources/templates/timetable/create_entry.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
<div class="ui-menubar" th:insert="~{/layout/menubar}"></div>
77
<form class="ui-panel-1">
88
<div class="ui-panel-2">
9-
<label for="input-customerName">Kunde</label>
10-
<select id="input-customerName" name="customerName" onchange="populateDepartmentNames()" required size="8"></select>
11-
<label for="input-departmentName">Abteilung</label>
12-
<select id="input-departmentName" name="departmentName" required size="8"></select>
9+
<label for="input-customerName">Kunde</label> & <label for="input-departmentName">Abteilung</label>
10+
<br/>
11+
<select class="ui-select-big" id="input-customerName" name="customerName" onchange="populateDepartmentNames()" required size="8">
12+
<option>- wird geladen -</option>
13+
</select>
14+
<select class="ui-select-big" id="input-departmentName" name="departmentName" required size="8">
15+
<option>- bitte Kunde wählen -</option>
16+
</select>
1317
</div>
1418
<div class="ui-panel-2">
1519
<label for="input-startTime">Anfang</label>
@@ -21,7 +25,8 @@
2125
</div>
2226
<div class="ui-panel-2">
2327
<label for="input-notes">Beschreibung</label>
24-
<input id="input-notes" name="notes" type="text">
28+
<br/>
29+
<textarea cols="80" id="input-notes" name="notes" rows="5"></textarea>
2530
</div>
2631
<input onclick="submitCreateEntry()" type="submit">
2732
</form>

0 commit comments

Comments
 (0)