소스 검색

Float Labels on timeshare Admin

master
30117125 4 년 전
부모
커밋
c47228bdef
1개의 변경된 파일292개의 추가작업 그리고 233개의 파일을 삭제
  1. 292
    233
      src/components/admin/status/editTimeShareAdminPage.vue

+ 292
- 233
src/components/admin/status/editTimeShareAdminPage.vue 파일 보기

@@ -64,47 +64,57 @@
64 64
               <div class="form-row">
65 65
                 <div class="form-group col-md-6">
66 66
                   <div class="input-group">
67
-                    <!-- {{weekParam}} -->
68
-                    <label class="uniSelectLabel" for="weekInfoRegionSelect">REGION</label>
69
-                    <select
70
-                      class="form-control uniSelect"
71
-                      v-model="selectedRegion"
72
-                      style="font-size: 15px"
67
+                    <label v-if="!selectedRegion" class="uniSelectLabel" for="weekInfoRegionSelect"
68
+                      >REGION</label
73 69
                     >
74
-                      <option v-for="(region, r) in regions" :key="r" :value="region.regionCode">{{
75
-                        region.regionName
76
-                      }}</option>
77
-                    </select>
70
+                    <float-label label="REGION" style="width:100%" fixed>
71
+                      <select
72
+                        class="form-control uniSelect"
73
+                        v-model="selectedRegion"
74
+                        style="font-size: 15px"
75
+                      >
76
+                        <option
77
+                          v-for="(region, r) in regions"
78
+                          :key="r"
79
+                          :value="region.regionCode"
80
+                          >{{ region.regionName }}</option
81
+                        >
82
+                      </select>
83
+                    </float-label>
84
+
78 85
                     <div class="validation"></div>
79 86
                   </div>
80 87
                   <div class="validation"></div>
81 88
                 </div>
82 89
                 <div class="form-group col-md-6">
83 90
                   <div class="input-group">
84
-                    <label class="uniSelectLabel" for="weekInfoResortSelect">RESORT NAME</label>
91
+                    <float-label label="RESORT NAME" style="width:100%" fixed>
92
+                      <select class="form-control uniSelect" v-model="selectedResort">
93
+                        <option value="Other">Other</option>
94
+                        <option
95
+                          v-for="(resort, r) in filteredResort"
96
+                          :key="r"
97
+                          :value="resort.resortCode"
98
+                          >{{ resort.resortName }}</option
99
+                        >
100
+                      </select>
101
+                    </float-label>
85 102
 
86
-                    <select class="form-control uniSelect" v-model="selectedResort">
87
-                      <option value="Other">Other</option>
88
-                      <option
89
-                        v-for="(resort, r) in filteredResort"
90
-                        :key="r"
91
-                        :value="resort.resortCode"
92
-                        >{{ resort.resortName }}</option
93
-                      >
94
-                    </select>
95 103
                     <div class="validation"></div>
96 104
                   </div>
97 105
                   <div class="validation"></div>
98 106
                 </div>
99 107
                 <div class="form-group col-md-6">
100
-                  <input
101
-                    class="form-control"
102
-                    v-if="weekParam.otherResort"
103
-                    placeholder="NAME OF RESORT (* IF OTHER)"
104
-                    type="text"
105
-                    name="other"
106
-                    v-model="weekParam.otherResortName"
107
-                  />
108
+                  <float-label>
109
+                    <input
110
+                      class="form-control"
111
+                      v-if="weekParam.otherResort"
112
+                      placeholder="NAME OF RESORT (* IF OTHER)"
113
+                      type="text"
114
+                      name="other"
115
+                      v-model="weekParam.otherResortName"
116
+                    />
117
+                  </float-label>
108 118
                 </div>
109 119
                 <div class="form-group col-md-6">
110 120
                   <div v-if="weekParam.otherResort">
@@ -112,137 +122,157 @@
112 122
                       >REGION</label
113 123
                     >
114 124
                   </div>
115
-
116
-                  <select
117
-                    class="form-control uniSelect"
118
-                    v-if="weekParam.otherResort"
119
-                    name="region"
120
-                    id="region"
121
-                    v-model="weekParam.region"
122
-                  >
123
-                    <option v-for="(region, r) in regions" :key="r">{{ region.regionName }}</option>
124
-                  </select>
125
+                  <float-label>
126
+                    <select
127
+                      class="form-control uniSelect"
128
+                      v-if="weekParam.otherResort"
129
+                      name="region"
130
+                      id="region"
131
+                      v-model="weekParam.region"
132
+                    >
133
+                      <option v-for="(region, r) in regions" :key="r">{{
134
+                        region.regionName
135
+                      }}</option>
136
+                    </select>
137
+                  </float-label>
125 138
                 </div>
126 139
                 <div class="form-group col-md-6">
127
-                  <input
128
-                    type="number"
129
-                    class="form-control"
130
-                    name="unitNumber"
131
-                    id="unitNumber"
132
-                    placeholder="UNIT NUMBER"
133
-                    v-model="weekParam.unitNumber"
134
-                    data-msg="Please enter unit number"
135
-                  />
140
+                  <float-label>
141
+                    <input
142
+                      type="number"
143
+                      class="form-control"
144
+                      name="unitNumber"
145
+                      id="unitNumber"
146
+                      placeholder="UNIT NUMBER"
147
+                      v-model="weekParam.unitNumber"
148
+                      data-msg="Please enter unit number"
149
+                    />
150
+                  </float-label>
151
+
136 152
                   <div class="validation"></div>
137 153
                 </div>
138 154
                 <div class="form-group col-md-6">
139
-                  <input
140
-                    type="text"
141
-                    class="form-control"
142
-                    name="week"
143
-                    id="week"
144
-                    placeholder="UNIT / WEEK NUMBER"
145
-                    v-model="weekParam.weekNumber"
146
-                    data-msg="Please enter week number"
147
-                  />
155
+                  <float-label>
156
+                    <input
157
+                      type="text"
158
+                      class="form-control"
159
+                      name="week"
160
+                      id="week"
161
+                      placeholder="UNIT / WEEK NUMBER"
162
+                      v-model="weekParam.weekNumber"
163
+                      data-msg="Please enter week number"
164
+                    />
165
+                  </float-label>
166
+
148 167
                   <div class="validation"></div>
149 168
                 </div>
150
-                <div class="form-group col-md-6">
151
-                  <label class="uniSelectLabel" for="region">SEASON</label>
169
+                <div class="form-group col-md-6 mt-2">
170
+                  <float-label label="SEASON" fixed>
171
+                    <select
172
+                      class="form-control uniSelect"
173
+                      name="season"
174
+                      id="season"
175
+                      v-model="selectedSeason"
176
+                    >
177
+                      <option v-for="(season, r) in seasons" :key="r">{{ season.name }}</option>
178
+                    </select>
179
+                  </float-label>
152 180
 
153
-                  <select
154
-                    class="form-control uniSelect"
155
-                    name="season"
156
-                    id="season"
157
-                    v-model="selectedSeason"
158
-                  >
159
-                    <option v-for="(season, r) in seasons" :key="r">{{ season.name }}</option>
160
-                  </select>
161 181
                   <div class="validation"></div>
162 182
                 </div>
163
-                <div class="form-group col-md-6">
164
-                  <label class="uniSelectLabel" for="region">BEDROOM/S</label>
183
+                <div class="form-group col-md-6 mt-2">
184
+                  <float-label label="BEDROOM/S" fixed>
185
+                    <select
186
+                      class="form-control uniSelect"
187
+                      name="region"
188
+                      id="region"
189
+                      v-model="selectedBedrooms"
190
+                    >
191
+                      <option v-for="(item, i) in resortBedrooms" :key="i">{{ item }}</option>
192
+                    </select>
193
+                  </float-label>
165 194
 
166
-                  <select
167
-                    class="form-control uniSelect"
168
-                    name="region"
169
-                    id="region"
170
-                    v-model="selectedBedrooms"
171
-                  >
172
-                    <option v-for="(item, i) in resortBedrooms" :key="i">{{ item }}</option>
173
-                  </select>
174 195
                   <div class="validation"></div>
175 196
                 </div>
176
-                <div class="form-group col-md-6">
177
-                  <label class="uniSelectLabel" for="region">SLEEP MAX</label>
197
+                <div class="form-group col-md-6 mt-2">
198
+                  <float-label label="SLEEP MAX" fixed>
199
+                    <select
200
+                      class="form-control uniSelect"
201
+                      name="region"
202
+                      id="region"
203
+                      v-model="selectedMaxSleep"
204
+                    >
205
+                      <option v-for="(item, i) in maxSleep" :key="i">{{ item }}</option>
206
+                    </select>
207
+                  </float-label>
178 208
 
179
-                  <select
180
-                    class="form-control uniSelect"
181
-                    name="region"
182
-                    id="region"
183
-                    v-model="selectedMaxSleep"
184
-                  >
185
-                    <option v-for="(item, i) in maxSleep" :key="i">{{ item }}</option>
186
-                  </select>
187 209
                   <div class="validation"></div>
188 210
                 </div>
189
-                <div class="form-group col-md-6">
190
-                  <input
191
-                    type="number"
192
-                    class="form-control"
193
-                    name="levy"
194
-                    id="levy"
195
-                    placeholder="Levy Amount"
196
-                    v-model="weekParam.levyAmount"
197
-                    data-msg="Please enter levy amount"
198
-                  />
211
+                <div class="form-group col-md-6 mt-2">
212
+                  <float-label>
213
+                    <input
214
+                      type="number"
215
+                      class="form-control"
216
+                      name="levy"
217
+                      id="levy"
218
+                      placeholder="Levy Amount"
219
+                      v-model="weekParam.levyAmount"
220
+                      data-msg="Please enter levy amount"
221
+                    />
222
+                  </float-label>
223
+
199 224
                   <div class="validation"></div>
200 225
                 </div>
201
-                <div class="form-group col-md-6">
202
-                  <label class="uniSelectLabel" for="region">WEEK TYPE</label>
203
-                  <select
204
-                    class="form-control uniSelect"
205
-                    name="region"
206
-                    id="region"
207
-                    v-model="selectedWeekType"
208
-                  >
209
-                    <option :key="0">Flexi</option>
210
-                    <option :key="1">Fixed</option>
211
-                    <option :key="2">Module</option>
212
-                    <option :key="3">Syndicate</option>
213
-                  </select>
226
+                <div class="form-group col-md-6 mt-2">
227
+                  <float-label label="WEEK TYPE" fixed>
228
+                    <select
229
+                      class="form-control uniSelect"
230
+                      name="region"
231
+                      id="region"
232
+                      v-model="selectedWeekType"
233
+                    >
234
+                      <option :key="0">Flexi</option>
235
+                      <option :key="1">Fixed</option>
236
+                      <option :key="2">Module</option>
237
+                      <option :key="3">Syndicate</option>
238
+                    </select>
239
+                  </float-label>
214 240
                 </div>
215 241
                 <div class="form-row">
216
-                  <div class="form-group col-md-6">
217
-                    Arrival Date :
218
-                    <input
219
-                      type="datetime-local"
220
-                      class="form-control"
221
-                      name="occupationDate1"
222
-                      v-model="weekParam.arrivalDate"
223
-                    />
242
+                  <div class="form-group col-md-6 mt-2">
243
+                    <float-label label="ARRIVAL DATE">
244
+                      <input
245
+                        type="datetime-local"
246
+                        class="form-control"
247
+                        name="occupationDate1"
248
+                        v-model="weekParam.arrivalDate"
249
+                      />
250
+                    </float-label>
251
+
224 252
                     <div class="validation"></div>
225 253
                   </div>
226
-                  <div class="form-group col-md-6">
227
-                    Departure Date :
228
-                    <input
229
-                      type="datetime-local"
230
-                      class="form-control"
231
-                      name="occupationDate2"
232
-                      v-model="weekParam.departureDate"
233
-                    />
254
+                  <div class="form-group col-md-6 mt-2">
255
+                    <float-label label="DEPARTURE DATE">
256
+                      <input
257
+                        type="datetime-local"
258
+                        class="form-control"
259
+                        name="occupationDate2"
260
+                        v-model="weekParam.departureDate"
261
+                      />
262
+                    </float-label>
234 263
                     <div class="validation"></div>
235 264
                   </div>
236
-                  <div class="form-group col-md-6">
237
-                    Purchase Price:
238
-                    <input
239
-                      class="form-control"
240
-                      placeholder="R"
241
-                      type="number"
242
-                      step="any"
243
-                      name="purchasePrice"
244
-                      v-model="weekParam.sellPrice"
245
-                    />
265
+                  <div class="form-group col-md-6 mt-2">
266
+                    <float-label label="PURCHASE PRICE">
267
+                      <input
268
+                        class="form-control"
269
+                        placeholder="R"
270
+                        type="number"
271
+                        step="any"
272
+                        name="purchasePrice"
273
+                        v-model="weekParam.sellPrice"
274
+                      />
275
+                    </float-label>
246 276
                     <div class="validation"></div>
247 277
                   </div>
248 278
                 </div>
@@ -296,103 +326,124 @@
296 326
               </div>
297 327
             </div>
298 328
 
299
-            <div class="section-header">
329
+            <div class="section-header" style="margin-top:50px">
300 330
               <h2>Detailed Individual Information</h2>
301 331
             </div>
302 332
             <div class="form">
303 333
               <div class="row">
304 334
                 <div class="form-group col-md-6">
305
-                  <input
306
-                    type="text"
307
-                    name="name"
308
-                    class="form-control"
309
-                    id="name"
310
-                    placeholder="Name"
311
-                    data-rule="minlen:4"
312
-                    data-msg="Please enter your name"
313
-                    v-model="week.owner.name"
314
-                  />
335
+                  <float-label>
336
+                    <input
337
+                      type="text"
338
+                      name="name"
339
+                      class="form-control"
340
+                      id="name"
341
+                      placeholder="Name"
342
+                      data-rule="minlen:4"
343
+                      data-msg="Please enter your name"
344
+                      v-model="week.owner.name"
345
+                    />
346
+                  </float-label>
347
+
315 348
                   <div class="validation"></div>
316 349
                 </div>
317 350
                 <div class="form-group col-md-6">
318
-                  <input
319
-                    type="text"
320
-                    class="form-control"
321
-                    name="surname"
322
-                    id="surname"
323
-                    placeholder="Surname"
324
-                    data-msg="Please enter your surname"
325
-                    v-model="week.owner.surname"
326
-                  />
351
+                  <float-label>
352
+                    <input
353
+                      type="text"
354
+                      class="form-control"
355
+                      name="surname"
356
+                      id="surname"
357
+                      placeholder="Surname"
358
+                      data-msg="Please enter your surname"
359
+                      v-model="week.owner.surname"
360
+                    />
361
+                  </float-label>
362
+
327 363
                   <div class="validation"></div>
328 364
                 </div>
329 365
               </div>
330
-              <div class="row">
366
+              <div class="row mt-2">
331 367
                 <div class="form-group col-md-6">
332
-                  <input
333
-                    type="text"
334
-                    name="idnum"
335
-                    class="form-control"
336
-                    id="idnum"
337
-                    placeholder="ID Number"
338
-                    data-rule="minlen:4"
339
-                    data-msg="Please enter your ID number"
340
-                    v-model="week.owner.idNumber"
341
-                  />
368
+                  <float-label>
369
+                    <input
370
+                      type="text"
371
+                      name="idnum"
372
+                      class="form-control"
373
+                      id="idnum"
374
+                      placeholder="ID Number"
375
+                      data-rule="minlen:4"
376
+                      data-msg="Please enter your ID number"
377
+                      v-model="week.owner.idNumber"
378
+                    />
379
+                  </float-label>
380
+
342 381
                   <div class="validation"></div>
343 382
                 </div>
344 383
                 <div class="form-group col-md-6">
345
-                  <input
346
-                    type="text"
347
-                    class="form-control"
348
-                    name="company"
349
-                    id="company"
350
-                    placeholder="Company Reg Number"
351
-                    data-rule="minlen:4"
352
-                    data-msg="Please enter your company reg number"
353
-                    v-model="week.owner.companyRegNumber"
354
-                  />
384
+                  <float-label>
385
+                    <input
386
+                      type="text"
387
+                      class="form-control"
388
+                      name="company"
389
+                      id="company"
390
+                      placeholder="Company Reg Number"
391
+                      data-rule="minlen:4"
392
+                      data-msg="Please enter your company reg number"
393
+                      v-model="week.owner.companyRegNumber"
394
+                    />
395
+                  </float-label>
396
+
355 397
                   <div class="validation"></div>
356 398
                 </div>
357 399
               </div>
358
-              <div class="row">
400
+              <div class="row mt-2">
359 401
                 <div class="form-group col-md-6">
360
-                  <input
361
-                    type="text"
362
-                    class="form-control"
363
-                    name="email"
364
-                    id="email"
365
-                    placeholder="Email Address"
366
-                    data-msg="Please enter your email address"
367
-                    v-model="week.owner.emailAddress"
368
-                  />
402
+                  <float-label>
403
+                    <input
404
+                      type="text"
405
+                      class="form-control"
406
+                      name="email"
407
+                      id="email"
408
+                      placeholder="Email Address"
409
+                      data-msg="Please enter your email address"
410
+                      v-model="week.owner.emailAddress"
411
+                    />
412
+                  </float-label>
413
+
369 414
                   <div class="validation"></div>
370 415
                 </div>
371 416
               </div>
372
-              <div class="row">
417
+              <div class="row mt-2">
373 418
                 <div class="form-group col-md-6">
374
-                  <input
375
-                    type="text"
376
-                    name="cell"
377
-                    class="form-control"
378
-                    id="cell"
379
-                    placeholder="Cell Number"
380
-                    data-rule="minlen:4"
381
-                    data-msg="Please enter your cell number"
382
-                    v-model="week.owner.cellNumner"
383
-                  />
419
+                  <float-label>
420
+                    <input
421
+                      type="text"
422
+                      name="cell"
423
+                      class="form-control"
424
+                      id="cell"
425
+                      placeholder="Cell Number"
426
+                      data-rule="minlen:4"
427
+                      data-msg="Please enter your cell number"
428
+                      v-model="week.owner.cellNumner"
429
+                    />
430
+                  </float-label>
431
+
384 432
                   <div class="validation"></div>
385 433
                 </div>
386 434
                 <div class="form-group col-md-6">
387
-                  <input
388
-                    type="text"
389
-                    class="form-control"
390
-                    name="landline"
391
-                    id="landline"
392
-                    placeholder="Landline Number"
393
-                    data-msg="Please enter your landline number"
394
-                    v-model="week.owner.landlineNumber"
395
-                  />
435
+                  <float-label>
436
+                    <input
437
+                      type="text"
438
+                      class="form-control"
439
+                      name="landline"
440
+                      id="landline"
441
+                      placeholder="Landline Number"
442
+                      data-msg="Please enter your landline number"
443
+                      v-model="week.owner.landlineNumber"
444
+                    />
445
+                  </float-label>
446
+
396 447
                   <div class="validation"></div>
397 448
                 </div>
398 449
               </div>
@@ -403,37 +454,45 @@
403 454
             <div class="form">
404 455
               <div class="row">
405 456
                 <div class="form-group col-md-6">
406
-                  <label class="uniSelectLabel" for="region">STATUS</label>
407
-                  <select
408
-                    class="form-control uniSelect"
409
-                    name="region"
410
-                    id="region"
411
-                    v-model="selectedWeekType"
412
-                  >
413
-                    <option :key="0">For Sale</option>
414
-                    <option :key="1">Sold</option>
415
-                  </select>
457
+                  <label v-if="!selectedWeekType" class="uniSelectLabel" for="region">STATUS</label>
458
+                  <float-label label="STATUS" fixed>
459
+                    <select
460
+                      class="form-control uniSelect"
461
+                      name="region"
462
+                      id="region"
463
+                      v-model="selectedWeekType"
464
+                    >
465
+                      <option :key="0">For Sale</option>
466
+                      <option :key="1">Sold</option>
467
+                    </select>
468
+                  </float-label>
416 469
                 </div>
417 470
                 <div class="form-group col-md-6">
418
-                  <label class="uniSelectLabel" for="region">Publish</label>
419
-                  <select
420
-                    class="form-control uniSelect"
421
-                    name="region"
422
-                    id="region"
423
-                    v-model="selectedWeekType"
471
+                  <label v-if="!selectedWeekType" class="uniSelectLabel" for="region"
472
+                    >Publish</label
424 473
                   >
425
-                    <option :key="0">Yes</option>
426
-                    <option :key="1">No</option>
427
-                  </select>
474
+                  <float-label label="Publish" fixed>
475
+                    <select
476
+                      class="form-control uniSelect"
477
+                      name="region"
478
+                      id="region"
479
+                      v-model="selectedWeekType"
480
+                    >
481
+                      <option :key="0">Yes</option>
482
+                      <option :key="1">No</option>
483
+                    </select>
484
+                  </float-label>
428 485
                 </div>
429
-                <div class="form-group col-md-6">
430
-                  Date Published :
431
-                  <input
432
-                    type="datetime-local"
433
-                    class="form-control"
434
-                    name="occupationDate2"
435
-                    v-model="datetime"
436
-                  />
486
+                <div class="form-group col-md-6 mt-2">
487
+                  <float-label label="DATE PUBLISHED" fixed>
488
+                    <input
489
+                      type="datetime-local"
490
+                      class="form-control"
491
+                      name="occupationDate2"
492
+                      v-model="datetime"
493
+                    />
494
+                  </float-label>
495
+
437 496
                   <div class="validation"></div>
438 497
                 </div>
439 498
               </div>

Loading…
취소
저장