Browse Source

Floating Label Update

master
30117125 4 years ago
parent
commit
e9fe29fb35

+ 5
- 0
package-lock.json View File

12372
         "vue": "^2.5.17"
12372
         "vue": "^2.5.17"
12373
       }
12373
       }
12374
     },
12374
     },
12375
+    "vue-float-label": {
12376
+      "version": "1.6.1",
12377
+      "resolved": "https://registry.npmjs.org/vue-float-label/-/vue-float-label-1.6.1.tgz",
12378
+      "integrity": "sha1-I1HnGyXyGwbUNWOwRveNlRKgjGY="
12379
+    },
12375
     "vue-hot-reload-api": {
12380
     "vue-hot-reload-api": {
12376
       "version": "2.3.4",
12381
       "version": "2.3.4",
12377
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
12382
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",

+ 1
- 0
package.json View File

31
     "vue-currency-input": "^1.22.3",
31
     "vue-currency-input": "^1.22.3",
32
     "vue-disable-autocomplete": "0.0.4",
32
     "vue-disable-autocomplete": "0.0.4",
33
     "vue-eva-icons": "^1.1.1",
33
     "vue-eva-icons": "^1.1.1",
34
+    "vue-float-label": "^1.6.1",
34
     "vue-js-modal": "^1.3.33",
35
     "vue-js-modal": "^1.3.33",
35
     "vue-json-excel": "^0.2.98",
36
     "vue-json-excel": "^0.2.98",
36
     "vue-owl-carousel": "^2.0.3",
37
     "vue-owl-carousel": "^2.0.3",

+ 12
- 0
public/css/newStyle.css View File

20
 
20
 
21
 /* @import url("https://fonts.googleapis.com/css?family=Muli&display=swap"); */
21
 /* @import url("https://fonts.googleapis.com/css?family=Muli&display=swap"); */
22
 
22
 
23
+.vfl-label {
24
+  text-transform: uppercase;
25
+}
26
+
27
+.vfl-label-on-input {
28
+  top: -1.5em !important;
29
+}
30
+
31
+.vfl-label-on-focus {
32
+  color: rgb(27, 117, 187) !important;
33
+}
34
+
23
 .uniSelect {
35
 .uniSelect {
24
   border-color: rgb(27, 117, 187);
36
   border-color: rgb(27, 117, 187);
25
   border-width: 2px;
37
   border-width: 2px;

+ 64
- 50
src/components/property/commercial/createProperty/commercialCreateNew.vue View File

5
         <div class="row">
5
         <div class="row">
6
           <div class="col">
6
           <div class="col">
7
             <label v-if="!salesType" class="uniSelectLabel" for="saleType">Sale Type</label>
7
             <label v-if="!salesType" class="uniSelectLabel" for="saleType">Sale Type</label>
8
-            <select class="form-control uniSelect mb-3" name="saleType" v-model="salesType">
9
-              <option value="Sale">To Sell</option>
10
-              <option value="Rental">To Rent</option>
11
-            </select>
8
+            <float-label label="Sale Type">
9
+              <select class="form-control uniSelect mb-3" name="saleType" v-model="salesType">
10
+                <option value="Sale">To Sell</option>
11
+                <option value="Rental">To Rent</option>
12
+              </select>
13
+            </float-label>
12
           </div>
14
           </div>
13
         </div>
15
         </div>
14
-        <div class="row">
16
+        <div class="row mt-2">
15
           <div class="col-md-6">
17
           <div class="col-md-6">
16
             <div v-if="!property.propertyName">
18
             <div v-if="!property.propertyName">
17
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
19
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
18
             </div>
20
             </div>
19
-            <input
20
-              class="form-control uniInput"
21
-              type="text"
22
-              name="propertyName"
23
-              v-model="property.propertyName"
24
-            />
21
+            <float-label label="PROPERTY NAME">
22
+              <input
23
+                class="form-control uniInput"
24
+                type="text"
25
+                name="propertyName"
26
+                v-model="property.propertyName"
27
+              />
28
+            </float-label>
25
           </div>
29
           </div>
26
           <div class="col-md-6">
30
           <div class="col-md-6">
27
             <div v-if="!property.propertyRef">
31
             <div v-if="!property.propertyRef">
28
               <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
32
               <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
29
             </div>
33
             </div>
30
-            <input
31
-              class="form-control uniInput"
32
-              type="text"
33
-              name="propertyRef"
34
-              v-model="property.propertyRef"
35
-            />
34
+            <float-label label="PROPERTY REFERENCE">
35
+              <input
36
+                class="form-control uniInput"
37
+                type="text"
38
+                name="propertyRef"
39
+                v-model="property.propertyRef"
40
+              />
41
+            </float-label>
36
           </div>
42
           </div>
37
         </div>
43
         </div>
38
         <div class="row my-5">
44
         <div class="row my-5">
54
             <div v-if="!property.unit">
60
             <div v-if="!property.unit">
55
               <label for="unit" class="uniSelectLabel">UNIT</label>
61
               <label for="unit" class="uniSelectLabel">UNIT</label>
56
             </div>
62
             </div>
57
-            <input
58
-              class="form-control uniInput"
59
-              type="text"
60
-              name="unit"
61
-              id="unit"
62
-              v-model="property.unit"
63
-            />
63
+            <float-label label="unit">
64
+              <input
65
+                class="form-control uniInput"
66
+                type="text"
67
+                name="unit"
68
+                id="unit"
69
+                v-model="property.unit"
70
+              />
71
+            </float-label>
64
           </div>
72
           </div>
65
         </div>
73
         </div>
66
         <div class="row my-5">
74
         <div class="row my-5">
84
                     >{{ salesType }} Price</label
92
                     >{{ salesType }} Price</label
85
                   >
93
                   >
86
                 </div>
94
                 </div>
87
-                <currency-input
88
-                  onClick="this.setSelectionRange(0, this.value.length)"
89
-                  name="price"
90
-                  :value="value"
91
-                  @input="value = $event"
92
-                  v-model="property.price"
93
-                  id="price"
94
-                  class="form-control uniInput"
95
-                />
95
+                <float-label label="price">
96
+                  <currency-input
97
+                    onClick="this.setSelectionRange(0, this.value.length)"
98
+                    name="price"
99
+                    :value="value"
100
+                    @input="value = $event"
101
+                    v-model="property.price"
102
+                    id="price"
103
+                    class="form-control uniInput"
104
+                  />
105
+                </float-label>
96
               </div>
106
               </div>
97
               <div v-if="salesType === 'Rental'" class="col-md-6">
107
               <div v-if="salesType === 'Rental'" class="col-md-6">
98
                 <select
108
                 <select
267
         </div>
277
         </div>
268
         <div class="form-group row">
278
         <div class="form-group row">
269
           <div class="col-md-12">
279
           <div class="col-md-12">
270
-            <label class="uniSelectLabel">Virtual Tour (URL)</label>
280
+            <label v-if="!property.virtualTour" class="uniSelectLabel">Virtual Tour (URL)</label>
271
             <div class="input-group-prepend">
281
             <div class="input-group-prepend">
272
-              <input
273
-                class="form-control uniInput"
274
-                type="link"
275
-                name="vtlink"
276
-                id="vtlink"
277
-                v-model="property.virtualTour"
278
-              />
282
+              <float-label label="Virtual Tour (URL)" style="width:100%">
283
+                <input
284
+                  class="form-control uniInput"
285
+                  type="link"
286
+                  name="vtlink"
287
+                  id="vtlink"
288
+                  v-model="property.virtualTour"
289
+                />
290
+              </float-label>
279
             </div>
291
             </div>
280
           </div>
292
           </div>
281
         </div>
293
         </div>
282
         <div class="row">
294
         <div class="row">
283
-          <div class="col-md-12">
284
-            <label class="uniSelectLabel">Video (URL)</label>
295
+          <div class="col-md-12 mt-2">
296
+            <label v-if="!property.video" class="uniSelectLabel">Video (URL)</label>
285
             <div class="input-group-prepend">
297
             <div class="input-group-prepend">
286
-              <input
287
-                class="form-control uniInput"
288
-                type="link"
289
-                name="vlink"
290
-                id="vlink"
291
-                v-model="property.video"
292
-              />
298
+              <float-label label="video " style="width:100%">
299
+                <input
300
+                  class="form-control uniInput"
301
+                  type="link"
302
+                  name="vlink"
303
+                  id="vlink"
304
+                  v-model="property.video"
305
+                />
306
+              </float-label>
293
             </div>
307
             </div>
294
           </div>
308
           </div>
295
         </div>
309
         </div>

+ 22
- 20
src/components/property/propertyUserField.vue View File

1
 <template>
1
 <template>
2
   <div class="row">
2
   <div class="row">
3
-    <div class="col-md-4 mb-2" v-for="(currentField, i) in fields" :key="i">
3
+    <div class="col-md-4 mb-3 mt-2" v-for="(currentField, i) in fields" :key="i">
4
       <div class="input-group-prepend">
4
       <div class="input-group-prepend">
5
         <!-- <span class="input-group-text" style="color: #60CBEB">
5
         <!-- <span class="input-group-text" style="color: #60CBEB">
6
           <b>{{ GetFirstLetter(currentField.name) }}</b>
6
           <b>{{ GetFirstLetter(currentField.name) }}</b>
7
         </span> -->
7
         </span> -->
8
         <div v-if="!setFields[i] && currentField.type !== 'yesno'">
8
         <div v-if="!setFields[i] && currentField.type !== 'yesno'">
9
-          <label class="uniSelectLabel">{{ currentField.name }}</label>
9
+          <label class="uniSelectLabel" style="margin-top:-10px">{{ currentField.name }}</label>
10
         </div>
10
         </div>
11
-        <input
12
-          v-if="currentField.type === 'number'"
13
-          class="form-control uniInput"
14
-          type="number"
15
-          name="currentField.name"
16
-          id="currentField.id"
17
-          v-model="setFields[i]"
18
-          @change="UpdateSetFields(currentField, i)"
19
-        />
11
+        <float-label :label="currentField.name" style="width:100%;top:-1em !important;">
12
+          <input
13
+            v-if="currentField.type === 'number'"
14
+            class="form-control uniInput"
15
+            type="number"
16
+            name="currentField.name"
17
+            id="currentField.id"
18
+            v-model="setFields[i]"
19
+            @change="UpdateSetFields(currentField, i)"
20
+          />
20
 
21
 
21
-        <input
22
-          v-if="currentField.type === 'text'"
23
-          class="form-control uniInput"
24
-          type="text"
25
-          name="currentField.name"
26
-          id="currentField.id"
27
-          v-model="setFields[i]"
28
-          @change="UpdateSetFields(currentField, i)"
29
-        />
22
+          <input
23
+            v-if="currentField.type === 'text'"
24
+            class="form-control uniInput"
25
+            type="text"
26
+            name="currentField.name"
27
+            id="currentField.id"
28
+            v-model="setFields[i]"
29
+            @change="UpdateSetFields(currentField, i)"
30
+          />
31
+        </float-label>
30
       </div>
32
       </div>
31
     </div>
33
     </div>
32
 
34
 

+ 56
- 56
src/components/property/residential/createProperty/residentialCreateNew.vue View File

5
         <div class="row">
5
         <div class="row">
6
           <div class="col">
6
           <div class="col">
7
             <label v-if="!salesType" class="uniSelectLabel" for="saleType">Sale Type</label>
7
             <label v-if="!salesType" class="uniSelectLabel" for="saleType">Sale Type</label>
8
-            <select class="form-control uniSelect mb-3" name="saleType" v-model="salesType">
9
-              <option value="Sale">To Sell</option>
10
-              <option value="Rental">To Rent</option>
11
-            </select>
8
+            <float-label label="Sale Type">
9
+              <select class="form-control uniSelect mb-3" name="saleType" v-model="salesType">
10
+                <option value="Sale">To Sell</option>
11
+                <option value="Rental">To Rent</option>
12
+              </select>
13
+            </float-label>
12
           </div>
14
           </div>
13
         </div>
15
         </div>
14
-        <div class="row">
16
+        <div class="row mt-2">
15
           <div class="col-md-6">
17
           <div class="col-md-6">
16
             <div v-if="!property.propertyName">
18
             <div v-if="!property.propertyName">
17
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
19
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
18
             </div>
20
             </div>
19
-            <input
20
-              class="form-control uniInput"
21
-              type="text"
22
-              name="propertyName"
23
-              v-model="property.propertyName"
24
-            />
21
+            <float-label label="PROPERTY NAME">
22
+              <input
23
+                class="form-control uniInput"
24
+                type="text"
25
+                name="propertyName"
26
+                v-model="property.propertyName"
27
+              />
28
+            </float-label>
25
           </div>
29
           </div>
26
           <div class="col-md-6">
30
           <div class="col-md-6">
27
             <div v-if="!property.propertyRef">
31
             <div v-if="!property.propertyRef">
28
               <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
32
               <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
29
             </div>
33
             </div>
30
-            <input
31
-              class="form-control uniInput"
32
-              type="text"
33
-              name="propertyRef"
34
-              v-model="property.propertyRef"
35
-            />
34
+            <float-label label="PROPERTY REFERENCE">
35
+              <input
36
+                class="form-control uniInput"
37
+                type="text"
38
+                name="propertyRef"
39
+                v-model="property.propertyRef"
40
+              />
41
+            </float-label>
36
           </div>
42
           </div>
37
         </div>
43
         </div>
38
         <div class="row my-5">
44
         <div class="row my-5">
50
               }}</option>
56
               }}</option>
51
             </select>
57
             </select>
52
           </div>
58
           </div>
53
-          <div v-if="propertyType === 'Commercial'" class="col-md-2">
54
-            <div v-if="!property.unit">
55
-              <label for="unit" class="uniSelectLabel">UNIT</label>
56
-            </div>
57
-            <input
58
-              class="form-control uniInput"
59
-              type="text"
60
-              name="unit"
61
-              id="unit"
62
-              v-model="property.unit"
63
-            />
64
-          </div>
65
         </div>
59
         </div>
66
         <div class="row my-5">
60
         <div class="row my-5">
67
           <div class="col-md-6">
61
           <div class="col-md-6">
84
                     >{{ salesType }} Price</label
78
                     >{{ salesType }} Price</label
85
                   >
79
                   >
86
                 </div>
80
                 </div>
87
-                <currency-input
88
-                  onClick="this.setSelectionRange(0, this.value.length)"
89
-                  name="price"
90
-                  :value="value"
91
-                  @input="value = $event"
92
-                  v-model="property.price"
93
-                  id="price"
94
-                  class="form-control uniInput"
95
-                />
81
+                <float-label label="Price">
82
+                  <currency-input
83
+                    onClick="this.setSelectionRange(0, this.value.length)"
84
+                    name="price"
85
+                    :value="value"
86
+                    @input="value = $event"
87
+                    v-model="property.price"
88
+                    id="price"
89
+                    class="form-control uniInput"
90
+                  />
91
+                </float-label>
96
               </div>
92
               </div>
97
               <div v-if="salesType === 'Rental'" class="col-md-6">
93
               <div v-if="salesType === 'Rental'" class="col-md-6">
98
                 <select
94
                 <select
293
           </div>
289
           </div>
294
         </div>
290
         </div>
295
         <div class="form-group row">
291
         <div class="form-group row">
296
-          <div class="col-md-12">
297
-            <label class="uniSelectLabel">Virtual Tour (URL)</label>
292
+          <div class="col-md-12 mt-2">
293
+            <label v-if="!property.virtualTour" class="uniSelectLabel">Virtual Tour (URL)</label>
298
             <div class="input-group-prepend">
294
             <div class="input-group-prepend">
299
-              <input
300
-                class="form-control uniInput"
301
-                type="link"
302
-                name="vtlink"
303
-                id="vtlink"
304
-                v-model="property.virtualTour"
305
-              />
295
+              <float-label label="Virtual Tour (URL)" style="width:100%">
296
+                <input
297
+                  class="form-control uniInput"
298
+                  type="link"
299
+                  name="vtlink"
300
+                  id="vtlink"
301
+                  v-model="property.virtualTour"
302
+                />
303
+              </float-label>
306
             </div>
304
             </div>
307
           </div>
305
           </div>
308
         </div>
306
         </div>
309
         <div class="row">
307
         <div class="row">
310
-          <div class="col-md-12">
311
-            <label class="uniSelectLabel">Video (URL)</label>
308
+          <div class="col-md-12 mt-2">
309
+            <label v-if="!property.video" class="uniSelectLabel">Video (URL)</label>
312
             <div class="input-group-prepend">
310
             <div class="input-group-prepend">
313
-              <input
314
-                class="form-control uniInput"
315
-                type="link"
316
-                name="vlink"
317
-                id="vlink"
318
-                v-model="property.video"
319
-              />
311
+              <float-label label="Video (URL)" style="width:100%">
312
+                <input
313
+                  class="form-control uniInput"
314
+                  type="link"
315
+                  name="vlink"
316
+                  id="vlink"
317
+                  v-model="property.video"
318
+                />
319
+              </float-label>
320
             </div>
320
             </div>
321
           </div>
321
           </div>
322
         </div>
322
         </div>

+ 291
- 229
src/components/timeshare/sell/contentSection.vue View File

62
             <div id="sendmessage">Your details has been sent. Thank you!</div>
62
             <div id="sendmessage">Your details has been sent. Thank you!</div>
63
             <div id="errormessage"></div>
63
             <div id="errormessage"></div>
64
             <div class="form-row">
64
             <div class="form-row">
65
-              <div class="form-group col-md-6">
65
+              <div class="form-group col-md-6 mt-2">
66
                 <div class="input-group">
66
                 <div class="input-group">
67
                   <label v-if="!sellItem.region" class="uniSelectLabel" for="weekInfoRegionSelect"
67
                   <label v-if="!sellItem.region" class="uniSelectLabel" for="weekInfoRegionSelect"
68
                     >REGION</label
68
                     >REGION</label
69
                   >
69
                   >
70
-
71
-                  <select
72
-                    id="weekInfoRegionSelect"
73
-                    class="form-control uniSelect"
74
-                    v-model="sellItem.region"
75
-                    @change="regionChange()"
76
-                    style="font-size: 15px"
77
-                  >
78
-                    <option v-for="(region, r) in regions" :key="r" :value="region">{{
79
-                      region.regionName
80
-                    }}</option>
81
-                  </select>
70
+                  <float-label label="REGION" style="width:100%">
71
+                    <select
72
+                      id="weekInfoRegionSelect"
73
+                      class="form-control uniSelect"
74
+                      v-model="sellItem.region"
75
+                      @change="regionChange()"
76
+                      style="font-size: 15px"
77
+                    >
78
+                      <option v-for="(region, r) in regions" :key="r" :value="region">{{
79
+                        region.regionName
80
+                      }}</option>
81
+                    </select>
82
+                  </float-label>
82
                 </div>
83
                 </div>
83
 
84
 
84
                 <!-- <input
85
                 <!-- <input
92
                 />-->
93
                 />-->
93
                 <div class="validation"></div>
94
                 <div class="validation"></div>
94
               </div>
95
               </div>
95
-              <div class="form-group col-md-6">
96
+              <div class="form-group col-md-6 mt-2">
96
                 <div class="input-group">
97
                 <div class="input-group">
97
                   <label v-if="!sellItem.resort" class="uniSelectLabel" for="weekInfoResortSelect"
98
                   <label v-if="!sellItem.resort" class="uniSelectLabel" for="weekInfoResortSelect"
98
                     >RESORT NAME</label
99
                     >RESORT NAME</label
99
                   >
100
                   >
100
-
101
-                  <select
102
-                    id="weekInfoResortSelect"
103
-                    class="form-control uniSelect"
104
-                    v-model="sellItem.resort"
105
-                    @change="resortChange()"
106
-                  >
107
-                    <option value="Other">Other</option>
108
-                    <option v-for="(resort, r) in filteredResort" :key="r" :value="resort">{{
109
-                      resort.resortName
110
-                    }}</option>
111
-                  </select>
101
+                  <float-label label="RESORT NAME" style="width:100%">
102
+                    <select
103
+                      id="weekInfoResortSelect"
104
+                      class="form-control uniSelect"
105
+                      v-model="sellItem.resort"
106
+                      @change="resortChange()"
107
+                    >
108
+                      <option value="Other">Other</option>
109
+                      <option v-for="(resort, r) in filteredResort" :key="r" :value="resort">{{
110
+                        resort.resortName
111
+                      }}</option>
112
+                    </select>
113
+                  </float-label>
112
                 </div>
114
                 </div>
113
                 <!-- <input
115
                 <!-- <input
114
                     type="text"
116
                     type="text"
131
                   v-model="sellItem.otherResortName"
133
                   v-model="sellItem.otherResortName"
132
                 />
134
                 />
133
               </div>
135
               </div>
134
-              <div class="form-group col-md-6">
136
+              <div class="form-group col-md-6 mt-2">
135
                 <div v-if="sellItem.otherResort">
137
                 <div v-if="sellItem.otherResort">
136
                   <label v-if="!sellItem.region" class="uniSelectLabel" for="region">REGION</label>
138
                   <label v-if="!sellItem.region" class="uniSelectLabel" for="region">REGION</label>
137
                 </div>
139
                 </div>
146
                   <option v-for="(region, r) in regions" :key="r">{{ region.regionName }}</option>
148
                   <option v-for="(region, r) in regions" :key="r">{{ region.regionName }}</option>
147
                 </select>
149
                 </select>
148
               </div>
150
               </div>
149
-              <div class="form-group col-md-6">
150
-                <input
151
-                  type="number"
152
-                  class="form-control"
153
-                  name="unitNumber"
154
-                  id="unitNumber"
155
-                  placeholder="UNIT NUMBER"
156
-                  v-model="sellItem.unitNumber"
157
-                  data-msg="Please enter unit number"
158
-                />
151
+              <div class="form-group col-md-6 mt-2">
152
+                <float-label>
153
+                  <input
154
+                    type="number"
155
+                    class="form-control"
156
+                    name="unitNumber"
157
+                    id="unitNumber"
158
+                    placeholder="UNIT NUMBER"
159
+                    v-model="sellItem.unitNumber"
160
+                    data-msg="Please enter unit number"
161
+                  />
162
+                </float-label>
163
+
159
                 <div class="validation"></div>
164
                 <div class="validation"></div>
160
               </div>
165
               </div>
161
-              <div class="form-group col-md-6">
162
-                <input
163
-                  type="number"
164
-                  class="form-control"
165
-                  name="week"
166
-                  id="week"
167
-                  placeholder="UNIT / WEEK NUMBER"
168
-                  v-model="sellItem.module"
169
-                  data-msg="Please enter week number"
170
-                />
166
+              <div class="form-group col-md-6 mt-2">
167
+                <float-label>
168
+                  <input
169
+                    type="number"
170
+                    class="form-control"
171
+                    name="week"
172
+                    id="week"
173
+                    placeholder="UNIT / WEEK NUMBER"
174
+                    v-model="sellItem.module"
175
+                    data-msg="Please enter week number"
176
+                  />
177
+                </float-label>
178
+
171
                 <div class="validation"></div>
179
                 <div class="validation"></div>
172
               </div>
180
               </div>
173
-              <div class="form-group col-md-6">
181
+              <div class="form-group col-md-6 mt-2">
174
                 <label v-if="!sellItem.season" class="uniSelectLabel" for="region">SEASON</label>
182
                 <label v-if="!sellItem.season" class="uniSelectLabel" for="region">SEASON</label>
183
+                <float-label label="SEASON">
184
+                  <select
185
+                    class="form-control uniSelect"
186
+                    name="region"
187
+                    id="region"
188
+                    v-model="sellItem.season"
189
+                  >
190
+                    <option v-for="(season, r) in seasons" :key="r">{{ season.name }}</option>
191
+                  </select>
192
+                </float-label>
175
 
193
 
176
-                <select
177
-                  class="form-control uniSelect"
178
-                  name="region"
179
-                  id="region"
180
-                  v-model="sellItem.season"
181
-                >
182
-                  <option v-for="(season, r) in seasons" :key="r">{{ season.name }}</option>
183
-                </select>
184
                 <div class="validation"></div>
194
                 <div class="validation"></div>
185
               </div>
195
               </div>
186
-              <div class="form-group col-md-6">
196
+              <div class="form-group col-md-6 mt-2">
187
                 <label v-if="!sellItem.bedrooms" class="uniSelectLabel" for="region"
197
                 <label v-if="!sellItem.bedrooms" class="uniSelectLabel" for="region"
188
                   >BEDROOM/S</label
198
                   >BEDROOM/S</label
189
                 >
199
                 >
200
+                <float-label label="BEDROOM/S">
201
+                  <select
202
+                    class="form-control uniSelect"
203
+                    name="region"
204
+                    id="region"
205
+                    v-model="sellItem.bedrooms"
206
+                  >
207
+                    <option v-for="(item, i) in resortBedrooms" :key="i">{{ item }}</option>
208
+                  </select>
209
+                </float-label>
190
 
210
 
191
-                <select
192
-                  class="form-control uniSelect"
193
-                  name="region"
194
-                  id="region"
195
-                  v-model="sellItem.bedrooms"
196
-                >
197
-                  <option v-for="(item, i) in resortBedrooms" :key="i">{{ item }}</option>
198
-                </select>
199
                 <div class="validation"></div>
211
                 <div class="validation"></div>
200
               </div>
212
               </div>
201
-              <div class="form-group col-md-6">
213
+              <div class="form-group col-md-6 mt-2">
202
                 <label v-if="!sellItem.maxSleep" class="uniSelectLabel" for="region"
214
                 <label v-if="!sellItem.maxSleep" class="uniSelectLabel" for="region"
203
                   >SLEEP MAX</label
215
                   >SLEEP MAX</label
204
                 >
216
                 >
217
+                <float-label label="SLEEP MAX">
218
+                  <select
219
+                    class="form-control uniSelect"
220
+                    name="region"
221
+                    id="region"
222
+                    v-model="sellItem.maxSleep"
223
+                  >
224
+                    <option v-for="(item, i) in maxSleep" :key="i">{{ item }}</option>
225
+                  </select>
226
+                </float-label>
205
 
227
 
206
-                <select
207
-                  class="form-control uniSelect"
208
-                  name="region"
209
-                  id="region"
210
-                  v-model="sellItem.maxSleep"
211
-                >
212
-                  <option v-for="(item, i) in maxSleep" :key="i">{{ item }}</option>
213
-                </select>
214
                 <div class="validation"></div>
228
                 <div class="validation"></div>
215
               </div>
229
               </div>
216
-              <div class="form-group col-md-6">
217
-                <input
218
-                  type="number"
219
-                  class="form-control"
220
-                  name="levy"
221
-                  id="levy"
222
-                  placeholder="Levy Amount"
223
-                  v-model="sellItem.levyAmount"
224
-                  data-msg="Please enter levy amount"
225
-                />
230
+              <div class="form-group col-md-6 mt-2">
231
+                <float-label>
232
+                  <input
233
+                    type="number"
234
+                    class="form-control"
235
+                    name="levy"
236
+                    id="levy"
237
+                    placeholder="Levy Amount"
238
+                    v-model="sellItem.levyAmount"
239
+                    data-msg="Please enter levy amount"
240
+                  />
241
+                </float-label>
242
+
226
                 <div class="validation"></div>
243
                 <div class="validation"></div>
227
               </div>
244
               </div>
228
-              <div class="form-group col-md-6">
245
+              <div class="form-group col-md-6 mt-2">
229
                 <label v-if="!sellItem.weekType" class="uniSelectLabel" for="region"
246
                 <label v-if="!sellItem.weekType" class="uniSelectLabel" for="region"
230
                   >WEEK TYPE</label
247
                   >WEEK TYPE</label
231
                 >
248
                 >
232
-                <select
233
-                  class="form-control uniSelect"
234
-                  name="region"
235
-                  id="region"
236
-                  v-model="sellItem.weekType"
237
-                >
238
-                  <option :key="0">Flexi</option>
239
-                  <option :key="1">Fixed</option>
240
-                  <option :key="2">Module</option>
241
-                  <option :key="3">Syndicate</option>
242
-                </select>
249
+                <float-label label="WEEK TYPE">
250
+                  <select
251
+                    class="form-control uniSelect"
252
+                    name="region"
253
+                    id="region"
254
+                    v-model="sellItem.weekType"
255
+                  >
256
+                    <option :key="0">Flexi</option>
257
+                    <option :key="1">Fixed</option>
258
+                    <option :key="2">Module</option>
259
+                    <option :key="3">Syndicate</option>
260
+                  </select>
261
+                </float-label>
243
               </div>
262
               </div>
244
             </div>
263
             </div>
245
           </div>
264
           </div>
283
             <h2>Detailed Individual Information</h2>
302
             <h2>Detailed Individual Information</h2>
284
           </div>
303
           </div>
285
           <div class="form">
304
           <div class="form">
286
-            <div class="row">
305
+            <div class="row mb-2">
287
               <div class="form-group col-md-6">
306
               <div class="form-group col-md-6">
288
-                <input
289
-                  type="text"
290
-                  name="name"
291
-                  class="form-control"
292
-                  id="name"
293
-                  placeholder="Name"
294
-                  data-rule="minlen:4"
295
-                  data-msg="Please enter your name"
296
-                  v-model="indiv.name"
297
-                />
307
+                <float-label>
308
+                  <input
309
+                    type="text"
310
+                    name="name"
311
+                    class="form-control"
312
+                    id="name"
313
+                    placeholder="Name"
314
+                    data-rule="minlen:4"
315
+                    data-msg="Please enter your name"
316
+                    v-model="indiv.name"
317
+                  />
318
+                </float-label>
319
+
298
                 <div class="validation"></div>
320
                 <div class="validation"></div>
299
               </div>
321
               </div>
300
               <div class="form-group col-md-6">
322
               <div class="form-group col-md-6">
301
-                <input
302
-                  type="text"
303
-                  class="form-control"
304
-                  name="surname"
305
-                  id="surname"
306
-                  placeholder="Surname"
307
-                  data-msg="Please enter your surname"
308
-                  v-model="indiv.surname"
309
-                />
323
+                <float-label>
324
+                  <input
325
+                    type="text"
326
+                    class="form-control"
327
+                    name="surname"
328
+                    id="surname"
329
+                    placeholder="Surname"
330
+                    data-msg="Please enter your surname"
331
+                    v-model="indiv.surname"
332
+                  />
333
+                </float-label>
334
+
310
                 <div class="validation"></div>
335
                 <div class="validation"></div>
311
               </div>
336
               </div>
312
             </div>
337
             </div>
313
-            <div class="row">
338
+            <div class="row mb-2">
314
               <div class="form-group col-md-6">
339
               <div class="form-group col-md-6">
315
-                <input
316
-                  type="text"
317
-                  name="idnum"
318
-                  class="form-control"
319
-                  id="idnum"
320
-                  placeholder="ID Number"
321
-                  data-rule="minlen:4"
322
-                  data-msg="Please enter your ID number"
323
-                  v-model="indiv.idNumber"
324
-                />
340
+                <float-label>
341
+                  <input
342
+                    type="text"
343
+                    name="idnum"
344
+                    class="form-control"
345
+                    id="idnum"
346
+                    placeholder="ID Number"
347
+                    data-rule="minlen:4"
348
+                    data-msg="Please enter your ID number"
349
+                    v-model="indiv.idNumber"
350
+                  />
351
+                </float-label>
352
+
325
                 <div class="validation"></div>
353
                 <div class="validation"></div>
326
               </div>
354
               </div>
327
               <div class="form-group col-md-6">
355
               <div class="form-group col-md-6">
328
-                <input
329
-                  type="text"
330
-                  class="form-control"
331
-                  name="company"
332
-                  id="company"
333
-                  placeholder="Company Reg Number"
334
-                  data-rule="minlen:4"
335
-                  data-msg="Please enter your company reg number"
336
-                  v-model="indiv.companyRegNumber"
337
-                />
356
+                <float-label>
357
+                  <input
358
+                    type="text"
359
+                    class="form-control"
360
+                    name="company"
361
+                    id="company"
362
+                    placeholder="Company Reg Number"
363
+                    data-rule="minlen:4"
364
+                    data-msg="Please enter your company reg number"
365
+                    v-model="indiv.companyRegNumber"
366
+                  />
367
+                </float-label>
368
+
338
                 <div class="validation"></div>
369
                 <div class="validation"></div>
339
               </div>
370
               </div>
340
             </div>
371
             </div>
341
-            <div class="row">
372
+            <div class="row mb-2">
342
               <div class="form-group col-md-6">
373
               <div class="form-group col-md-6">
343
                 <div class="input-group">
374
                 <div class="input-group">
344
-                  <label
345
-                    v-if="!indiv.howMarried || indiv.howMarried === 'N/A'"
346
-                    for="howMarried"
347
-                    class="uniSelectLabel"
348
-                    >Marital Status</label
349
-                  >
350
-                  <select class="form-control uniSelect" id="howMarried" v-model="indiv.howMarried">
351
-                    <option value="N/A">N/A</option>
352
-                    <option value="In Community Of Property">In Community Of Property</option>
353
-                    <option value="Out of Community Of Property"
354
-                      >Out of Community Of Property</option
375
+                  <span v-if="!indiv.howMarried">
376
+                    <label v-if="indiv.howMarried === 'N/A'" for="howMarried" class="uniSelectLabel"
377
+                      >Marital Status</label
355
                     >
378
                     >
356
-                    <option value="Other">Other</option>
357
-                    <option value="Traditional Wedding">Traditional Wedding</option>
358
-                    <option value="Single">Single</option>
359
-                    <option value="Divorced">Divorced</option>
360
-                    <option value="Widow">Widow</option>
361
-                    <option value="Committed Relationship">Committed Relationship</option>
362
-                    <option value="Partner">Partner</option>
363
-                  </select>
379
+                  </span>
380
+
381
+                  <float-label label="Marital Status" style="width:100%">
382
+                    <select
383
+                      class="form-control uniSelect"
384
+                      id="howMarried"
385
+                      v-model="indiv.howMarried"
386
+                    >
387
+                      <option value="N/A">N/A</option>
388
+                      <option value="In Community Of Property">In Community Of Property</option>
389
+                      <option value="Out of Community Of Property"
390
+                        >Out of Community Of Property</option
391
+                      >
392
+                      <option value="Other">Other</option>
393
+                      <option value="Traditional Wedding">Traditional Wedding</option>
394
+                      <option value="Single">Single</option>
395
+                      <option value="Divorced">Divorced</option>
396
+                      <option value="Widow">Widow</option>
397
+                      <option value="Committed Relationship">Committed Relationship</option>
398
+                      <option value="Partner">Partner</option>
399
+                    </select>
400
+                  </float-label>
364
                 </div>
401
                 </div>
365
                 <div class="validation"></div>
402
                 <div class="validation"></div>
366
               </div>
403
               </div>
367
               <div class="form-group col-md-6">
404
               <div class="form-group col-md-6">
368
-                <input
369
-                  type="text"
370
-                  class="form-control"
371
-                  name="email"
372
-                  id="email"
373
-                  placeholder="Email Address"
374
-                  data-msg="Please enter your email address"
375
-                  v-model="indiv.emailAddress"
376
-                />
405
+                <float-label>
406
+                  <input
407
+                    type="text"
408
+                    class="form-control"
409
+                    name="email"
410
+                    id="email"
411
+                    placeholder="Email Address"
412
+                    data-msg="Please enter your email address"
413
+                    v-model="indiv.emailAddress"
414
+                  />
415
+                </float-label>
416
+
377
                 <div class="validation"></div>
417
                 <div class="validation"></div>
378
               </div>
418
               </div>
379
             </div>
419
             </div>
380
             <div class="row">
420
             <div class="row">
381
               <div class="form-group col-md-6">
421
               <div class="form-group col-md-6">
382
-                <input
383
-                  type="text"
384
-                  name="cell"
385
-                  class="form-control"
386
-                  id="cell"
387
-                  placeholder="Cell Number"
388
-                  data-rule="minlen:4"
389
-                  data-msg="Please enter your cell number"
390
-                  v-model="indiv.cellNumner"
391
-                />
422
+                <float-label>
423
+                  <input
424
+                    type="text"
425
+                    name="cell"
426
+                    class="form-control"
427
+                    id="cell"
428
+                    placeholder="Cell Number"
429
+                    data-rule="minlen:4"
430
+                    data-msg="Please enter your cell number"
431
+                    v-model="indiv.cellNumner"
432
+                  />
433
+                </float-label>
434
+
392
                 <div class="validation"></div>
435
                 <div class="validation"></div>
393
               </div>
436
               </div>
394
               <div class="form-group col-md-6">
437
               <div class="form-group col-md-6">
395
-                <input
396
-                  type="text"
397
-                  class="form-control"
398
-                  name="landline"
399
-                  id="landline"
400
-                  placeholder="Landline Number"
401
-                  data-msg="Please enter your landline number"
402
-                  v-model="indiv.landlineNumber"
403
-                />
438
+                <float-label>
439
+                  <input
440
+                    type="text"
441
+                    class="form-control"
442
+                    name="landline"
443
+                    id="landline"
444
+                    placeholder="Landline Number"
445
+                    data-msg="Please enter your landline number"
446
+                    v-model="indiv.landlineNumber"
447
+                  />
448
+                </float-label>
449
+
404
                 <div class="validation"></div>
450
                 <div class="validation"></div>
405
               </div>
451
               </div>
406
             </div>
452
             </div>
409
             <h2>Spouse Details</h2>
455
             <h2>Spouse Details</h2>
410
           </div>
456
           </div>
411
           <div v-if="indiv.howMarried === 'In Community Of Property'" class="form">
457
           <div v-if="indiv.howMarried === 'In Community Of Property'" class="form">
412
-            <div class="form-row">
413
-              <div class="form-group col-md-6">
414
-                <input
415
-                  type="text"
416
-                  class="form-control"
417
-                  placeholder="SPOUSE NAME"
418
-                  data-msg="Please enter your spouse's name"
419
-                  v-model="indiv.spouseName"
420
-                />
458
+            <div class="form-row mb-2">
459
+              <div class="form-group col-md-6 mt-2">
460
+                <float-label>
461
+                  <input
462
+                    type="text"
463
+                    class="form-control"
464
+                    placeholder="SPOUSE NAME"
465
+                    data-msg="Please enter your spouse's name"
466
+                    v-model="indiv.spouseName"
467
+                  />
468
+                </float-label>
469
+
421
                 <div class="validation"></div>
470
                 <div class="validation"></div>
422
               </div>
471
               </div>
423
-              <div class="form-group col-md-6">
424
-                <input
425
-                  type="text"
426
-                  class="form-control"
427
-                  placeholder="SPOUSE SURNAME"
428
-                  data-msg="Please enter your spouse's surname"
429
-                  v-model="indiv.spouseSurname"
430
-                />
472
+              <div class="form-group col-md-6 mt-2">
473
+                <float-label>
474
+                  <input
475
+                    type="text"
476
+                    class="form-control"
477
+                    placeholder="SPOUSE SURNAME"
478
+                    data-msg="Please enter your spouse's surname"
479
+                    v-model="indiv.spouseSurname"
480
+                  />
481
+                </float-label>
482
+
431
                 <div class="validation"></div>
483
                 <div class="validation"></div>
432
               </div>
484
               </div>
433
-              <div class="form-group col-md-6">
434
-                <input
435
-                  type="text"
436
-                  class="form-control"
437
-                  placeholder="SPOUSE EMAIL"
438
-                  data-rule="minlen:4"
439
-                  data-msg="Please enter your spouse's email"
440
-                  v-model="indiv.spouseEmail"
441
-                />
485
+              <div class="form-group col-md-6 mt-2">
486
+                <float-label>
487
+                  <input
488
+                    type="text"
489
+                    class="form-control"
490
+                    placeholder="SPOUSE EMAIL"
491
+                    data-rule="minlen:4"
492
+                    data-msg="Please enter your spouse's email"
493
+                    v-model="indiv.spouseEmail"
494
+                  />
495
+                </float-label>
496
+
442
                 <div class="validation"></div>
497
                 <div class="validation"></div>
443
               </div>
498
               </div>
444
-              <div class="form-group col-md-6">
445
-                <input
446
-                  type="text"
447
-                  class="form-control"
448
-                  placeholder="SPOUSE TELEPHONE"
449
-                  data-rule="minlen:4"
450
-                  data-msg="Please enter your spouse's telephone number"
451
-                  v-model="indiv.spouseTelephone"
452
-                />
499
+              <div class="form-group col-md-6 mt-2">
500
+                <float-label>
501
+                  <input
502
+                    type="text"
503
+                    class="form-control"
504
+                    placeholder="SPOUSE TELEPHONE"
505
+                    data-rule="minlen:4"
506
+                    data-msg="Please enter your spouse's telephone number"
507
+                    v-model="indiv.spouseTelephone"
508
+                  />
509
+                </float-label>
510
+
453
                 <div class="validation"></div>
511
                 <div class="validation"></div>
454
               </div>
512
               </div>
455
-              <div class="form-group col-md-6">
456
-                <input
457
-                  type="text"
458
-                  class="form-control"
459
-                  placeholder="SPOUSE CELL NUMBER"
460
-                  data-rule="minlen:4"
461
-                  data-msg="Please enter your spouse's cellphone number"
462
-                  v-model="indiv.spouseCellnumber"
463
-                />
513
+              <div class="form-group col-md-6 mt-2">
514
+                <float-label>
515
+                  <input
516
+                    type="text"
517
+                    class="form-control"
518
+                    placeholder="SPOUSE CELL NUMBER"
519
+                    data-rule="minlen:4"
520
+                    data-msg="Please enter your spouse's cellphone number"
521
+                    v-model="indiv.spouseCellnumber"
522
+                  />
523
+                </float-label>
524
+
464
                 <div class="validation"></div>
525
                 <div class="validation"></div>
465
               </div>
526
               </div>
466
             </div>
527
             </div>
488
                   v-model="indiv.address.streetNumber"
549
                   v-model="indiv.address.streetNumber"
489
                   disabled
550
                   disabled
490
                 />
551
                 />
552
+
491
                 <div class="validation"></div>
553
                 <div class="validation"></div>
492
               </div>
554
               </div>
493
               <div class="form-group col-md-6">
555
               <div class="form-group col-md-6">

+ 2
- 0
src/main.js View File

10
 import Vuetify from "vuetify";
10
 import Vuetify from "vuetify";
11
 import VueShareSocial from "vue-share-social";
11
 import VueShareSocial from "vue-share-social";
12
 import VueCurrencyInput from "vue-currency-input";
12
 import VueCurrencyInput from "vue-currency-input";
13
+import VueFloatLabel from "vue-float-label";
13
 
14
 
14
 Vue.use(VueShareSocial);
15
 Vue.use(VueShareSocial);
15
 Vue.use(EvaIcons);
16
 Vue.use(EvaIcons);
16
 Vue.use(Vuetify);
17
 Vue.use(Vuetify);
18
+Vue.use(VueFloatLabel);
17
 
19
 
18
 Vue.use(VueGoogleMaps, {
20
 Vue.use(VueGoogleMaps, {
19
   load: {
21
   load: {

Loading…
Cancel
Save