|
20 | 20 | <transition name="slide-content-left">
|
21 | 21 | <div v-show="beforeSubmit" id="left-screen">
|
22 | 22 | <div class="row">
|
23 |
| - <div class="input-group col-lg-3 col-6"> |
24 |
| - <label for="batch-item-type-select" class="blue-label col-form-label mr-3"> |
25 |
| - Type: |
26 |
| - </label> |
| 23 | + <div class="col-lg-4 col-md-4 col-12 mb-3 d-flex align-items-center gap-2"> |
| 24 | + <label for="batch-item-type-select" class="blue-label"> Type: </label> |
27 | 25 | <select
|
28 | 26 | id="batch-item-type-select"
|
29 | 27 | v-model="item_type"
|
30 |
| - class="form-control" |
| 28 | + class="form-select" |
31 | 29 | required
|
32 | 30 | >
|
33 | 31 | <option v-for="type in allowedTypes" :key="type" :value="type">
|
34 | 32 | {{ itemTypes[type].display }}
|
35 | 33 | </option>
|
36 | 34 | </select>
|
37 | 35 | </div>
|
38 |
| - <div class="input-group col-lg-3 col-6"> |
39 |
| - <label for="batchItemNRows" class="blue-label col-form-label text-left mb-2 mr-3"> |
| 36 | + <div class="col-lg-4 col-md-4 col-12 mb-3 d-flex align-items-center gap-2"> |
| 37 | + <label for="batchItemNRows" class="blue-label flex-shrink-0"> |
40 | 38 | Number of rows:
|
41 | 39 | </label>
|
42 | 40 | <input
|
43 | 41 | id="batchItemNRows"
|
44 | 42 | v-model="nSamples"
|
45 |
| - class="form-control" |
| 43 | + class="form-control flex-grow-1" |
46 | 44 | type="number"
|
47 | 45 | min="0"
|
48 | 46 | max="100"
|
49 | 47 | />
|
50 | 48 | </div>
|
51 | 49 | </div>
|
52 | 50 | <div class="row">
|
53 |
| - <div class="col-md-6 mt-2" @click="templateIsOpen = !templateIsOpen"> |
| 51 | + <div class="col-md-6 d-flex gap-2" @click="templateIsOpen = !templateIsOpen"> |
54 | 52 | <font-awesome-icon
|
55 | 53 | :icon="['fas', 'chevron-right']"
|
56 | 54 | fixed-width
|
57 |
| - class="collapse-arrow clickable" |
| 55 | + class="collapse-arrow" |
58 | 56 | :class="{ expanded: templateIsOpen }"
|
59 | 57 | />
|
60 |
| - <label class="blue-label clickable pl-2"> Template: </label> |
| 58 | + <label class="blue-label ml-2"> Template: </label> |
61 | 59 | </div>
|
62 | 60 | </div>
|
63 | 61 |
|
|
68 | 66 | >
|
69 | 67 | <table data-testid="batch-add-table-template" class="table table-sm mb-2">
|
70 | 68 | <thead>
|
71 |
| - <tr class="subheading template-subheading"> |
| 69 | + <tr class="table-light subheading template-subheading"> |
72 | 70 | <th style="width: calc(12%)">ID</th>
|
73 | 71 | <th>Name</th>
|
74 | 72 | <th style="width: calc(15%)">Date</th>
|
|
81 | 79 | <td>
|
82 | 80 | <input
|
83 | 81 | v-model="itemTemplate.item_id"
|
84 |
| - class="form-control" |
| 82 | + class="form-select" |
85 | 83 | :placeholder="generateIDsAutomatically ? null : 'ex_{#}'"
|
86 | 84 | :disabled="generateIDsAutomatically"
|
87 | 85 | @input="applyIdTemplate"
|
|
91 | 89 | id="automatic-batch-id-label"
|
92 | 90 | v-model="generateIDsAutomatically"
|
93 | 91 | type="checkbox"
|
94 |
| - class="form-check-input clickable" |
| 92 | + class="form-check-input" |
95 | 93 | @input="setIDsNull"
|
96 | 94 | />
|
97 | 95 | <label
|
98 | 96 | id="automatic-id-label"
|
99 |
| - class="form-check-label clickable" |
| 97 | + class="form-check-label" |
100 | 98 | for="automatic-batch-id-label"
|
101 | 99 | >
|
102 | 100 | auto IDs
|
|
106 | 104 | <td>
|
107 | 105 | <input
|
108 | 106 | v-model="itemTemplate.name"
|
109 |
| - class="form-control" |
| 107 | + class="form-select" |
110 | 108 | placeholder="Example name {#}"
|
111 | 109 | @input="applyNameTemplate"
|
112 | 110 | />
|
113 | 111 | </td>
|
114 | 112 | <td>
|
115 | 113 | <input
|
116 | 114 | v-model="itemTemplate.date"
|
117 |
| - class="form-control" |
| 115 | + class="form-select" |
118 | 116 | type="datetime-local"
|
119 | 117 | :min="epochStart"
|
120 | 118 | :max="oneYearOn"
|
|
171 | 169 | </tbody>
|
172 | 170 | </table>
|
173 | 171 |
|
174 |
| - <div class="form-group mt-2 mb-1" style="display: flex"> |
175 |
| - <label |
176 |
| - id="start-counting-label" |
177 |
| - for="start-counting" |
178 |
| - class="px-3 col-form-label-sm" |
179 |
| - > |
| 172 | + <div class="mt-2 mb-1" style="display: flex"> |
| 173 | + <label id="start-counting-label" for="start-counting" class="px-3 form-label-sm"> |
180 | 174 | start counting {#} at:
|
181 | 175 | </label>
|
182 | 176 | <input
|
183 | 177 | id="start-counting"
|
184 | 178 | v-model="templateStartNumber"
|
185 | 179 | type="number"
|
186 |
| - class="form-control form-control-sm" |
| 180 | + class="form-select form-select-sm" |
187 | 181 | style="width: 5em"
|
188 | 182 | @input="applyIdAndNameTemplates"
|
189 | 183 | />
|
|
207 | 201 | <td>
|
208 | 202 | <input
|
209 | 203 | v-model="item.item_id"
|
210 |
| - class="form-control" |
| 204 | + class="form-select" |
211 | 205 | :disabled="generateIDsAutomatically"
|
212 | 206 | @input="itemTemplate.item_id = ''"
|
213 | 207 | />
|
214 | 208 | </td>
|
215 | 209 | <td>
|
216 | 210 | <input
|
217 | 211 | v-model="item.name"
|
218 |
| - class="form-control" |
| 212 | + class="form-select" |
219 | 213 | @input="itemTemplate.name = ''"
|
220 | 214 | />
|
221 | 215 | </td>
|
222 | 216 | <td>
|
223 | 217 | <input
|
224 | 218 | v-model="item.date"
|
225 |
| - class="form-control" |
| 219 | + class="form-select" |
226 | 220 | type="datetime-local"
|
227 | 221 | :min="epochStart"
|
228 | 222 | :max="oneYearOn"
|
|
269 | 263 | <td>
|
270 | 264 | <button
|
271 | 265 | type="button"
|
272 |
| - class="close" |
| 266 | + class="btn-close" |
273 | 267 | aria-label="delete"
|
274 | 268 | @click.stop="removeRow(index)"
|
275 |
| - > |
276 |
| - <span aria-hidden="true">×</span> |
277 |
| - </button> |
| 269 | + ></button> |
278 | 270 | </td>
|
279 | 271 | </tr>
|
280 | 272 | <td colspan="3">
|
|
0 commit comments