Przeglądaj źródła

Floating Label Update

master
30117125 4 lat temu
rodzic
commit
e9fe29fb35

+ 5
- 0
package-lock.json Wyświetl plik

@@ -12372,6 +12372,11 @@
12372 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 12380
     "vue-hot-reload-api": {
12376 12381
       "version": "2.3.4",
12377 12382
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",

+ 1
- 0
package.json Wyświetl plik

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

+ 12
- 0
public/css/newStyle.css Wyświetl plik

@@ -20,6 +20,18 @@
20 20
 
21 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 35
 .uniSelect {
24 36
   border-color: rgb(27, 117, 187);
25 37
   border-width: 2px;

+ 64
- 50
src/components/property/commercial/createProperty/commercialCreateNew.vue Wyświetl plik

@@ -5,34 +5,40 @@
5 5
         <div class="row">
6 6
           <div class="col">
7 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 14
           </div>
13 15
         </div>
14
-        <div class="row">
16
+        <div class="row mt-2">
15 17
           <div class="col-md-6">
16 18
             <div v-if="!property.propertyName">
17 19
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
18 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 29
           </div>
26 30
           <div class="col-md-6">
27 31
             <div v-if="!property.propertyRef">
28 32
               <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
29 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 42
           </div>
37 43
         </div>
38 44
         <div class="row my-5">
@@ -54,13 +60,15 @@
54 60
             <div v-if="!property.unit">
55 61
               <label for="unit" class="uniSelectLabel">UNIT</label>
56 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 72
           </div>
65 73
         </div>
66 74
         <div class="row my-5">
@@ -84,15 +92,17 @@
84 92
                     >{{ salesType }} Price</label
85 93
                   >
86 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 106
               </div>
97 107
               <div v-if="salesType === 'Rental'" class="col-md-6">
98 108
                 <select
@@ -267,29 +277,33 @@
267 277
         </div>
268 278
         <div class="form-group row">
269 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 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 291
             </div>
280 292
           </div>
281 293
         </div>
282 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 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 307
             </div>
294 308
           </div>
295 309
         </div>

+ 22
- 20
src/components/property/propertyUserField.vue Wyświetl plik

@@ -1,32 +1,34 @@
1 1
 <template>
2 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 4
       <div class="input-group-prepend">
5 5
         <!-- <span class="input-group-text" style="color: #60CBEB">
6 6
           <b>{{ GetFirstLetter(currentField.name) }}</b>
7 7
         </span> -->
8 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 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 32
       </div>
31 33
     </div>
32 34
 

+ 56
- 56
src/components/property/residential/createProperty/residentialCreateNew.vue Wyświetl plik

@@ -5,34 +5,40 @@
5 5
         <div class="row">
6 6
           <div class="col">
7 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 14
           </div>
13 15
         </div>
14
-        <div class="row">
16
+        <div class="row mt-2">
15 17
           <div class="col-md-6">
16 18
             <div v-if="!property.propertyName">
17 19
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
18 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 29
           </div>
26 30
           <div class="col-md-6">
27 31
             <div v-if="!property.propertyRef">
28 32
               <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
29 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 42
           </div>
37 43
         </div>
38 44
         <div class="row my-5">
@@ -50,18 +56,6 @@
50 56
               }}</option>
51 57
             </select>
52 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 59
         </div>
66 60
         <div class="row my-5">
67 61
           <div class="col-md-6">
@@ -84,15 +78,17 @@
84 78
                     >{{ salesType }} Price</label
85 79
                   >
86 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 92
               </div>
97 93
               <div v-if="salesType === 'Rental'" class="col-md-6">
98 94
                 <select
@@ -293,30 +289,34 @@
293 289
           </div>
294 290
         </div>
295 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 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 304
             </div>
307 305
           </div>
308 306
         </div>
309 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 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 320
             </div>
321 321
           </div>
322 322
         </div>

+ 291
- 229
src/components/timeshare/sell/contentSection.vue Wyświetl plik

@@ -62,23 +62,24 @@
62 62
             <div id="sendmessage">Your details has been sent. Thank you!</div>
63 63
             <div id="errormessage"></div>
64 64
             <div class="form-row">
65
-              <div class="form-group col-md-6">
65
+              <div class="form-group col-md-6 mt-2">
66 66
                 <div class="input-group">
67 67
                   <label v-if="!sellItem.region" class="uniSelectLabel" for="weekInfoRegionSelect"
68 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 83
                 </div>
83 84
 
84 85
                 <!-- <input
@@ -92,23 +93,24 @@
92 93
                 />-->
93 94
                 <div class="validation"></div>
94 95
               </div>
95
-              <div class="form-group col-md-6">
96
+              <div class="form-group col-md-6 mt-2">
96 97
                 <div class="input-group">
97 98
                   <label v-if="!sellItem.resort" class="uniSelectLabel" for="weekInfoResortSelect"
98 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 114
                 </div>
113 115
                 <!-- <input
114 116
                     type="text"
@@ -131,7 +133,7 @@
131 133
                   v-model="sellItem.otherResortName"
132 134
                 />
133 135
               </div>
134
-              <div class="form-group col-md-6">
136
+              <div class="form-group col-md-6 mt-2">
135 137
                 <div v-if="sellItem.otherResort">
136 138
                   <label v-if="!sellItem.region" class="uniSelectLabel" for="region">REGION</label>
137 139
                 </div>
@@ -146,100 +148,117 @@
146 148
                   <option v-for="(region, r) in regions" :key="r">{{ region.regionName }}</option>
147 149
                 </select>
148 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 164
                 <div class="validation"></div>
160 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 179
                 <div class="validation"></div>
172 180
               </div>
173
-              <div class="form-group col-md-6">
181
+              <div class="form-group col-md-6 mt-2">
174 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 194
                 <div class="validation"></div>
185 195
               </div>
186
-              <div class="form-group col-md-6">
196
+              <div class="form-group col-md-6 mt-2">
187 197
                 <label v-if="!sellItem.bedrooms" class="uniSelectLabel" for="region"
188 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 211
                 <div class="validation"></div>
200 212
               </div>
201
-              <div class="form-group col-md-6">
213
+              <div class="form-group col-md-6 mt-2">
202 214
                 <label v-if="!sellItem.maxSleep" class="uniSelectLabel" for="region"
203 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 228
                 <div class="validation"></div>
215 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 243
                 <div class="validation"></div>
227 244
               </div>
228
-              <div class="form-group col-md-6">
245
+              <div class="form-group col-md-6 mt-2">
229 246
                 <label v-if="!sellItem.weekType" class="uniSelectLabel" for="region"
230 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 262
               </div>
244 263
             </div>
245 264
           </div>
@@ -283,124 +302,151 @@
283 302
             <h2>Detailed Individual Information</h2>
284 303
           </div>
285 304
           <div class="form">
286
-            <div class="row">
305
+            <div class="row mb-2">
287 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 320
                 <div class="validation"></div>
299 321
               </div>
300 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 335
                 <div class="validation"></div>
311 336
               </div>
312 337
             </div>
313
-            <div class="row">
338
+            <div class="row mb-2">
314 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 353
                 <div class="validation"></div>
326 354
               </div>
327 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 369
                 <div class="validation"></div>
339 370
               </div>
340 371
             </div>
341
-            <div class="row">
372
+            <div class="row mb-2">
342 373
               <div class="form-group col-md-6">
343 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 401
                 </div>
365 402
                 <div class="validation"></div>
366 403
               </div>
367 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 417
                 <div class="validation"></div>
378 418
               </div>
379 419
             </div>
380 420
             <div class="row">
381 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 435
                 <div class="validation"></div>
393 436
               </div>
394 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 450
                 <div class="validation"></div>
405 451
               </div>
406 452
             </div>
@@ -409,58 +455,73 @@
409 455
             <h2>Spouse Details</h2>
410 456
           </div>
411 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 470
                 <div class="validation"></div>
422 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 483
                 <div class="validation"></div>
432 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 497
                 <div class="validation"></div>
443 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 511
                 <div class="validation"></div>
454 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 525
                 <div class="validation"></div>
465 526
               </div>
466 527
             </div>
@@ -488,6 +549,7 @@
488 549
                   v-model="indiv.address.streetNumber"
489 550
                   disabled
490 551
                 />
552
+
491 553
                 <div class="validation"></div>
492 554
               </div>
493 555
               <div class="form-group col-md-6">

+ 2
- 0
src/main.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz