Bladeren bron

Registration, Residential & UnitPage Style

master
30117125 4 jaren geleden
bovenliggende
commit
153068cf6b

+ 1
- 0
public/img/icon-email.svg Bestand weergeven

@@ -0,0 +1 @@
1
+<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.cls-1{fill:#fff;}</style></defs><path class="cls-1" d="M51.64,1.42A47.1,47.1,0,1,1,4.46,48.35,46.95,46.95,0,0,1,51.64,1.42ZM51.5,68c6.77,0,13.54,0,20.32,0,3.38,0,4.86-1.48,4.86-4.9q0-14.48,0-29c0-3.38-1.52-4.85-4.9-4.85H31.36c-3.49,0-5,1.47-5,5q0,14.38,0,28.76c0,3.53,1.47,5,5,5Z"/><path class="cls-1" d="M31.2,32.38H71.78c-.78.91-1.33,1.6-1.94,2.25-4,4.28-8,8.53-11.91,12.81s-8.74,4.4-12.84,0c-4-4.28-8-8.53-11.92-12.8C32.6,34,32.05,33.33,31.2,32.38Z"/><path class="cls-1" d="M60.52,49.09l11,15.72H31.35L42.68,49.38c2.53,2.64,5.43,4.4,9.08,4.29A11.61,11.61,0,0,0,60.52,49.09Z"/><path class="cls-1" d="M29.54,35.12,40.66,47,29.54,62.18Z"/><path class="cls-1" d="M73.46,62.29,62.6,46.81,73.46,35.17Z"/></svg>

+ 1
- 0
public/img/icon-facebook.svg Bestand weergeven

@@ -0,0 +1 @@
1
+<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.cls-1{fill:#fff;}</style></defs><path class="cls-1" d="M98,50A47.08,47.08,0,1,1,51,2.94,47,47,0,0,1,98,50ZM65.23,28q.8-5,1.6-10.15l-.69-.15a65.29,65.29,0,0,0-11-.67,15.89,15.89,0,0,0-8.34,2.41A10.22,10.22,0,0,0,42,25.51a14.59,14.59,0,0,0-.4,3.37c0,3,0,5.94,0,8.91,0,1,.08.89-.87.9-1.73,0-3.46,0-5.19,0-.41,0-.59.1-.59.56q0,4.31,0,8.61c0,.42.14.53.54.52h5.43l.7,0V83h12c.82,0,.82,0,.82-.83V48.37h.76c2.74,0,5.47,0,8.2,0,.51,0,.67-.15.73-.65.24-2.16.52-4.33.78-6.49.1-.83.18-1.65.28-2.56H54.36c.09-2.74.07-5.41.32-8.06A3.65,3.65,0,0,1,58,27.31a7,7,0,0,1,2-.1C61.68,27.41,63.4,27.7,65.23,28Z"/></svg>

+ 1
- 0
public/img/icon-whatsapp.svg Bestand weergeven

@@ -0,0 +1 @@
1
+<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.cls-1{fill:#fff;}</style></defs><path class="cls-1" d="M50.93,3.6A47.07,47.07,0,1,1,3.83,50.41,47,47,0,0,1,50.93,3.6ZM20.81,81l.83-.24q7.42-2.39,14.87-4.74a1.77,1.77,0,0,1,1.22.09,29.18,29.18,0,0,0,16.48,3.2,30,30,0,0,0,10.54-3,29.54,29.54,0,0,0,12.31-11.7,26.9,26.9,0,0,0,4-14.41,43.35,43.35,0,0,0-.36-4.69,27.8,27.8,0,0,0-3.77-10.89,29.63,29.63,0,0,0-30-14,28.35,28.35,0,0,0-15.08,7.11A29.07,29.07,0,0,0,22,52.43a28.67,28.67,0,0,0,3.83,12.28,1.36,1.36,0,0,1,.1,1C24.28,70.53,22.64,75.36,21,80.2,20.94,80.43,20.9,80.68,20.81,81Z"/><path class="cls-1" d="M28.61,73.28c.43-1.32.82-2.51,1.22-3.69.5-1.49,1-3,1.53-4.46a1.51,1.51,0,0,0-.2-1.53,23.43,23.43,0,0,1-3.83-9.3A23.8,23.8,0,0,1,29,40.12a23.83,23.83,0,0,1,16.6-14A24.5,24.5,0,1,1,56.26,73.92,24,24,0,0,1,38.6,70.75a1.61,1.61,0,0,0-1.49-.17c-2.59.85-5.2,1.67-7.8,2.5Zm30.75-8.49a13.51,13.51,0,0,0,2-.33c3.74-1.16,5.06-2.61,5.43-5.77.08-.68.09-1.3-.63-1.67-2-1-4-2.1-6-3.12-.84-.43-1.15-.32-1.79.41S57,56,56.24,56.76s-.93.85-1.93.4a20.36,20.36,0,0,1-9.62-9c-.45-.8-.39-1.08.22-1.78s1.27-1.5,1.86-2.28a1.51,1.51,0,0,0,.16-1.47c-.74-2-1.47-3.93-2.21-5.9a1.66,1.66,0,0,0-1.9-1.3,1.9,1.9,0,0,1-.53,0,3.12,3.12,0,0,0-2.81.85,8.75,8.75,0,0,0-2.22,9.94,30.84,30.84,0,0,0,2.83,5.28,31.41,31.41,0,0,0,8.53,9,31.64,31.64,0,0,0,6.82,3.19A10.72,10.72,0,0,0,59.36,64.79Z"/></svg>

+ 269
- 0
src/components/communication/templateDetailNew.vue Bestand weergeven

@@ -0,0 +1,269 @@
1
+<template>
2
+  <!-- eslint-disable max-len -->
3
+  <div style="padding:10px;">
4
+    <div
5
+      class="container"
6
+      style="border:silver solid thin;border-radius:10px;background-color:rgba(235,235,235,0.75);padding:20px;"
7
+    >
8
+      <div class="row">
9
+        <div class="col-md-12">
10
+          <div class="d-flex">
11
+            <div class="p-2 mr-auto">
12
+              <h2>Template - Detail</h2>
13
+            </div>
14
+            <div class="p-2">
15
+              <div class="btn btn-primary myBackground" v-if="!editable" @click="onEdit()">
16
+                Edit
17
+              </div>
18
+            </div>
19
+            <div class="p-2">
20
+              <div class="btn btn-primary myBackground" @click="onClose()">Save/Close</div>
21
+            </div>
22
+          </div>
23
+        </div>
24
+        <div class="col-md-12">
25
+          <hr />
26
+        </div>
27
+        <div class="col-md-12 text-left">
28
+          <div class="input-group mb-3">
29
+            <label v-if="!item.name" for="name" class="uniSelectLabel">
30
+              Name
31
+            </label>
32
+            <input
33
+              class="form-control uniInput"
34
+              type="text"
35
+              step="any"
36
+              name="name"
37
+              v-model="item.name"
38
+              :disabled="!CanEdit"
39
+            />
40
+          </div>
41
+        </div>
42
+        <div class="col-md-12">
43
+          <hr />
44
+        </div>
45
+        <div class="col-md-12 text-left">
46
+          <div class="input-group mb-3">
47
+            <label for="subject" class="uniSelectLabel">Subject</label>
48
+            <input
49
+              class="form-control uniInput"
50
+              type="text"
51
+              step="any"
52
+              name="subject"
53
+              v-model="item.subject"
54
+              :disabled="!CanEdit"
55
+            />
56
+          </div>
57
+        </div>
58
+        <div class="col-md-12">
59
+          <ul class="nav nav-tabs" id="myTab" role="tablist">
60
+            <li class="nav-item">
61
+              <a
62
+                class="nav-link active"
63
+                id="directions-tab"
64
+                data-toggle="tab"
65
+                href="#directions"
66
+                role="tab"
67
+                aria-controls="directions"
68
+                aria-selected="false"
69
+                >Html</a
70
+              >
71
+            </li>
72
+            <li class="nav-item">
73
+              <a
74
+                class="nav-link"
75
+                id="resort-layout-tab"
76
+                data-toggle="tab"
77
+                href="#resort-layout"
78
+                role="tab"
79
+                aria-controls="resort-layout"
80
+                aria-selected="true"
81
+                >Preview</a
82
+              >
83
+            </li>
84
+          </ul>
85
+          <div
86
+            class="tab-content"
87
+            id="myTabContent"
88
+            style="background-color:rgba(255,255,255,0.75);padding:10px;border:silver solid thin;border-radius:10px;"
89
+          >
90
+            <div
91
+              class="tab-pane fade show active"
92
+              style="background-color:rgba(255,255,255,0.75);padding:10px;"
93
+              id="directions"
94
+              role="tabpanel"
95
+              aria-labelledby="directions-tab"
96
+            >
97
+              <div class="text-left">
98
+                <label for="Sleeps maximum">Body</label>
99
+                <div class="input-group mb-3">
100
+                  <textarea
101
+                    class="form-control uniInput"
102
+                    id="bodyInput"
103
+                    ref="bodyInput"
104
+                    type="text"
105
+                    rows="10"
106
+                    step="any"
107
+                    name="body"
108
+                    v-model="item.body"
109
+                    :disabled="!CanEdit"
110
+                  />
111
+                </div>
112
+              </div>
113
+            </div>
114
+            <div
115
+              class="tab-pane fade"
116
+              id="resort-layout"
117
+              role="tabpanel"
118
+              aria-labelledby="resort-layout-tab"
119
+            >
120
+              <div class="no-style" v-html="item.body"></div>
121
+            </div>
122
+          </div>
123
+        </div>
124
+        <div class="col-md-12">
125
+          <hr />
126
+        </div>
127
+        <div class="col-md-12">
128
+          <div class="d-flex">
129
+            <div class="p-2 mr-auto">
130
+              <h2>Coded Fields</h2>
131
+            </div>
132
+            <!-- <div class="p-2">
133
+              <div class="btn btn-primary myBackground" @click="addClose()" v-if="CanEdit">
134
+                {{ btnCaption }}
135
+              </div>
136
+            </div> -->
137
+          </div>
138
+        </div>
139
+        <div class="col-md-12">
140
+          <TemplateInnerItem @onItemAdd="onItemAdd" />
141
+        </div>
142
+        <!-- <div class="col-md-12">
143
+          <hr />
144
+        </div>
145
+        <div class="col-md-12">
146
+          <ListView
147
+            :items="PlaceHolders"
148
+            :hideSearch="true"
149
+            :showNew="false"
150
+            :deleteable="CanEdit"
151
+            :allowMultipleSelect="true"
152
+            @onDelete="onItemDelete"
153
+          />
154
+        </div> -->
155
+      </div>
156
+    </div>
157
+  </div>
158
+</template>
159
+<script>
160
+import { mapActions } from "vuex";
161
+import ListView from "../shared/listView.vue";
162
+import TemplateInnerItem from "./templateInnerItem.vue";
163
+
164
+export default {
165
+  data() {
166
+    return {
167
+      showNew: false,
168
+      openFields: false
169
+    };
170
+  },
171
+  created() {
172
+    this.item.body =
173
+      '<HTML> <BODY style="font-family: Poppins, sans-serif; color: #555555;"> <div> [Name] </div> <br/> <div> Please note that a timeshare week has been loaded for sale. </div> <br /> <div> <table class="table table-striped"> <thead> <tr> <th scope="col">Resort</th> <th scope="col">Unit</th> <th scope="col">Module</th> </tr> </thead> <tbody> <tr> <td>[Resort]</td> <td>[UnitNumber]</td> <td>[Module]</td> </tr> </tbody> </table> <div> <br /> <div> Regards, <br/> <img src="http://training.provision-sa.com:89/images/test/uvprop.png" /> </div> </BODY> </HTML>';
174
+  },
175
+  components: {
176
+    ListView,
177
+    TemplateInnerItem
178
+  },
179
+  props: {
180
+    item: {},
181
+    placeHolders: [],
182
+    editable: {
183
+      default: false
184
+    }
185
+  },
186
+  computed: {
187
+    CanEdit() {
188
+      return this.editable || this.item.id === 0 || this.openFields;
189
+    },
190
+    btnCaption() {
191
+      return this.showNew ? "Close" : "New";
192
+    },
193
+    ItemList() {
194
+      return this.item.placeHolders;
195
+    },
196
+    PlaceHolders() {
197
+      return this.placeHolders;
198
+    }
199
+  },
200
+  methods: {
201
+    ...mapActions("template", ["addItem", "editItem"]),
202
+    addClose() {
203
+      if (this.showNew) {
204
+        this.showNew = false;
205
+      } else this.showNew = true;
206
+    },
207
+    onClose() {
208
+      if (this.item.id > 0) {
209
+        // edit
210
+        this.editItem(this.item);
211
+      } else {
212
+        // add.
213
+        this.addItem(this.item);
214
+      }
215
+      this.$emit("onClose");
216
+    },
217
+    onItemDelete(item) {
218
+      this.item.placeHolders = _.remove(this.item.placeHolders, x => x !== item);
219
+    },
220
+    onEdit() {
221
+      this.openFields = true;
222
+    },
223
+    onItemAdd(item) {
224
+      //   const myList = this.item.placeHolders ? this.item.placeHolders : [];
225
+      //   myList.push({
226
+      //     name: item.name,
227
+      //     boundTo: item.property,
228
+      //     boundToClassDisplay: item.class.name,
229
+      //     boundToClass: item.class.fullName
230
+      //   });
231
+      //   this.placeHolders = myList;
232
+      //   this.item.placeHolders = this.placeHolders;
233
+      var placeHolder = "[" + item.property + "]";
234
+      console.log(placeHolder);
235
+      // will give the current postion of the cursor
236
+      var curPos = document.getElementById("bodyInput").selectionStart;
237
+
238
+      // will get the value of the text area
239
+      let x = $("#bodyInput").val();
240
+
241
+      // will get the value of the input box
242
+      let text_to_insert = placeHolder;
243
+
244
+      // setting the updated value in the text area
245
+      $("#bodyInput").val(x.slice(0, curPos) + text_to_insert + x.slice(curPos));
246
+    }
247
+  }
248
+};
249
+</script>
250
+<style>
251
+.no-style {
252
+  background: #fff;
253
+  border: none;
254
+  color: #000;
255
+  display: block;
256
+  font: initial;
257
+  height: auto;
258
+  letter-spacing: normal;
259
+  line-height: normal;
260
+  margin: 0;
261
+  padding: 0;
262
+  text-transform: none;
263
+  visibility: visible;
264
+  width: auto;
265
+  word-spacing: normal;
266
+  z-index: auto;
267
+  text-align: left;
268
+}
269
+</style>

+ 25
- 25
src/components/communication/templateInnerItem.vue Bestand weergeven

@@ -3,7 +3,7 @@
3 3
     <div class="col-md-12" v-if="message !== undefined">
4 4
       <Alert :text="message" :type="'ERROR'" />
5 5
     </div>
6
-    <div class="col-md-3">
6
+    <!-- <div class="col-md-3">
7 7
       <input
8 8
         class="form-control"
9 9
         type="text"
@@ -12,29 +12,29 @@
12 12
         placeholder="Name"
13 13
         v-model="item.name"
14 14
       />
15
-    </div>
16
-    <div class="col-md-3">
15
+    </div> -->
16
+    <div class="col-md-4">
17 17
       <select class="form-control" v-model="item.class" @change="onClassChanged()">
18
-        <option v-for="(item, i) in classes" :key="i" :value="item">{{item.name}}</option>
18
+        <option v-for="(item, i) in classes" :key="i" :value="item">{{ item.name }}</option>
19 19
       </select>
20 20
     </div>
21
-    <div class="col-md-3">
22
-      <select class="form-control" v-model="item.property">
23
-        <option v-for="(item, i) in properties" :key="i">{{item}}</option>
21
+    <div class="col-md-4">
22
+      <select class="form-control" v-model="item.property" :disabled="!item.class">
23
+        <option v-for="(item, i) in properties" :key="i">{{ item }}</option>
24 24
       </select>
25 25
     </div>
26
-    <div class="col-md-3">
27
-      <div class="btn btn-primary myBackground w-100" @click="onItemAdd()">Add</div>
26
+    <div class="col-md-4">
27
+      <div class="btn-solid-blue" style="margin-top:-5px" @click="onItemAdd()">Insert</div>
28 28
     </div>
29 29
   </div>
30 30
 </template>
31 31
 <script>
32
-import { mapState, mapActions } from 'vuex';
33
-import Alert from '../shared/alert.vue';
32
+import { mapState, mapActions } from "vuex";
33
+import Alert from "../shared/alert.vue";
34 34
 
35 35
 export default {
36 36
   components: {
37
-    Alert,
37
+    Alert
38 38
   },
39 39
   mounted() {
40 40
     this.init();
@@ -45,36 +45,36 @@ export default {
45 45
       item: {
46 46
         name: undefined,
47 47
         class: undefined,
48
-        property: undefined,
49
-      },
48
+        property: undefined
49
+      }
50 50
     };
51 51
   },
52 52
   computed: {
53
-    ...mapState('info', ['classes', 'properties']),
53
+    ...mapState("info", ["classes", "properties"])
54 54
   },
55 55
   methods: {
56
-    ...mapActions('info', ['init', 'getClasses', 'getProperties']),
56
+    ...mapActions("info", ["init", "getClasses", "getProperties"]),
57 57
     onClassChanged() {
58 58
       this.getProperties(this.item.class);
59 59
     },
60 60
     onItemAdd() {
61 61
       this.message = undefined;
62
-      let msg = '';
63
-      if (this.item.name === undefined) {
64
-        msg += 'Please give a name...';
65
-      }
62
+      let msg = "";
63
+      // if (this.item.name === undefined) {
64
+      //   msg += "Please give a name...";
65
+      // }
66 66
       if (this.item.class === undefined) {
67
-        msg += 'Please choose a class...';
67
+        msg += "Please choose a class...";
68 68
       }
69 69
       if (this.item.property === undefined) {
70
-        msg += 'Please choose a property...';
70
+        msg += "Please choose a property...";
71 71
       }
72 72
       if (msg.length > 0) {
73 73
         this.message = msg;
74 74
       } else {
75
-        this.$emit('onItemAdd', this.item);
75
+        this.$emit("onItemAdd", this.item);
76 76
       }
77
-    },
78
-  },
77
+    }
78
+  }
79 79
 };
80 80
 </script>

+ 1
- 1
src/components/communication/templatePage.vue Bestand weergeven

@@ -35,7 +35,7 @@
35 35
 <script>
36 36
 import { mapState, mapActions } from "vuex";
37 37
 import ListView from "../shared/listView.vue";
38
-import DetailView from "./templateDetail.vue";
38
+import DetailView from "./templateDetailNew.vue";
39 39
 
40 40
 export default {
41 41
   data() {

+ 46
- 24
src/components/property/residential/singleView/contentSection.vue Bestand weergeven

@@ -22,20 +22,46 @@
22 22
           </div>
23 23
           <div class="panel-left p-5" style="margin-top:130px">
24 24
             <h2>Property Detial</h2>
25
+            <h4 style="color:white">{{ property.price | toCurrency }}</h4>
26
+            <p>#{{ property.propertyRef }}</p>
25 27
             <p v-if="property.showAddress">{{ property.addressOther }}</p>
26 28
             <p v-if="property.showAddress">{{ property.streetNumber }} {{ property.streetName }}</p>
27
-            <p>{{ property.suburb }}, {{ property.city }}</p>
28
-            <p>{{ property.shortDescription }}</p>
29
-            <p>{{ property.price | toCurrency }}</p>
30
-            <div class="btn-white-border">
31
-              <i class="fa fa-search"></i>BOOK A VIEWING
32
-            </div>
29
+            <p>{{ property.city }}, {{ property.suburb }}</p>
30
+            <p>
31
+              Bedrooms {{ property.displayData[1].values[0].value }}, Bathrooms
32
+              {{ property.displayData[1].values[1].value }}
33
+            </p>
34
+            <p>
35
+              Yard Size {{ property.displayData[0].values[1].value }}M<sup>2</sup>, Floor Size
36
+              {{ property.displayData[0].values[2].value }}M<sup>2</sup>
37
+            </p>
38
+
39
+            <div class="btn-white-border"><i class="fa fa-search"></i>BOOK A VIEWING</div>
40
+          </div>
41
+          <div class="panel-left px-5 pb-5 text-center">
42
+            <h4 class="text-white">Share this Property</h4>
43
+            <a
44
+              href="http://www.facebook.com/sharer.php?u=https://www.univateproperties.co.za/"
45
+              target="_blank"
46
+              ><img src="img/icon-facebook.svg" alt="Share on Facebook" class="col-3 p-1 mx-1"
47
+            /></a>
48
+            <a
49
+              href="mailto:?Subject=Simple Share Buttons&amp;Body=I%20saw%20this%20and%20thought%20of%20you!%20 https://www.univateproperties.co.za/"
50
+              ><img src="/img/icon-email.svg" alt="Share on email" class="col-3 p-1 mx-1"
51
+            /></a>
52
+            <a
53
+              href="whatsapp://send?text=Have a look at this property: https://www.univateproperties.co.za"
54
+              data-action="share/whatsapp/share"
55
+              target="_blank"
56
+            >
57
+              <img src="img/icon-whatsapp.svg" alt="Share on whatsapp" class="col-3 p-1 mx-1"
58
+            /></a>
33 59
           </div>
34 60
         </div>
35 61
         <div class="col-md-8 p-5 resort-profile">
36
-          <h2
37
-            v-if="property.showAddress"
38
-          >{{ property.propertyName }} / {{ property.streetNumber }} {{ property.streetName }}</h2>
62
+          <h2 v-if="property.showAddress">
63
+            {{ property.propertyName }} / {{ property.streetNumber }} {{ property.streetName }}
64
+          </h2>
39 65
           <h2 v-else>{{ property.propertyName }}</h2>
40 66
           <div class="container">
41 67
             <div class="row">
@@ -75,20 +101,16 @@
75 101
               <table class="table table-striped">
76 102
                 <thead>
77 103
                   <tr>
78
-                    <th
79
-                      v-for="(tableHead, j) in data.values"
80
-                      :key="j"
81
-                      scope="col"
82
-                    >{{ tableHead.name }}</th>
104
+                    <th v-for="(tableHead, j) in data.values" :key="j" scope="col">
105
+                      {{ tableHead.name }}
106
+                    </th>
83 107
                   </tr>
84 108
                 </thead>
85 109
                 <tbody>
86 110
                   <tr>
87
-                    <td
88
-                      v-for="(tableVal, k) in data.values"
89
-                      :key="k"
90
-                      scope="col"
91
-                    >{{ tableVal.value }}</td>
111
+                    <td v-for="(tableVal, k) in data.values" :key="k" scope="col">
112
+                      {{ tableVal.value }}
113
+                    </td>
92 114
                   </tr>
93 115
                 </tbody>
94 116
               </table>
@@ -119,11 +141,11 @@ import { mapState, mapActions } from "vuex";
119 141
 import gallery from "../../../shared/gallerySlideShow";
120 142
 export default {
121 143
   components: {
122
-    gallery,
144
+    gallery
123 145
   },
124 146
   props: {
125 147
     property: {},
126
-    propertyImages: {},
148
+    propertyImages: {}
127 149
   },
128 150
   created() {
129 151
     //this.getListsForPropertyEdit(this.property.id);
@@ -132,7 +154,7 @@ export default {
132 154
   data() {
133 155
     return {
134 156
       index: null,
135
-      date: new Date(),
157
+      date: new Date()
136 158
     };
137 159
   },
138 160
   methods: {
@@ -154,8 +176,8 @@ export default {
154 176
         return url;
155 177
       }
156 178
       return "";
157
-    },
158
-  },
179
+    }
180
+  }
159 181
 };
160 182
 </script>
161 183
 

+ 1
- 1
src/components/property/residential/singleView/singleResidentialPage.vue Bestand weergeven

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <carouselSection v-if="propertyImages.length > 0" :propertyImages="propertyImages" />
4
-    <main id="main">
4
+    <main id="main" style="margin-top:-20px">
5 5
       <contentSection
6 6
         v-if="propertyImages.length > 0"
7 7
         :property="property"

+ 7
- 2
src/components/shared/navBar.vue Bestand weergeven

@@ -253,7 +253,12 @@
253 253
                     >
254 254
                   </li>
255 255
 
256
-                  <li v-if="!isLoggedIn" class="menu-has-children">
256
+                  <li v-if="!isLoggedIn">
257
+                    <router-link class=" btn-solid-blue pt-2 pb-2" to="/user/register"
258
+                      >Register</router-link
259
+                    >
260
+                  </li>
261
+                  <!-- <li v-if="!isLoggedIn" class="menu-has-children">
257 262
                     <div
258 263
                       @mouseover="registerClass = 'ts-display'"
259 264
                       @mouseleave="registerClass = 'no-display'"
@@ -269,7 +274,7 @@
269 274
                         <router-link to="/user/registeragency">Agency Registration</router-link>
270 275
                       </li>
271 276
                     </ul>
272
-                  </li>
277
+                  </li> -->
273 278
                 </ul>
274 279
               </nav>
275 280
             </div>

+ 48
- 0
src/components/timeshare/resort/unit/carouselSection.vue Bestand weergeven

@@ -0,0 +1,48 @@
1
+<template>
2
+  <section id="intro">
3
+    <div v-if="loaded">
4
+      <carousel
5
+        :nav="false"
6
+        :dots="false"
7
+        :items="10"
8
+        :autoplay="true"
9
+        :loop="true"
10
+        :autoHeight="true"
11
+        id="intro-carousel"
12
+        style="margin-top:-50px;"
13
+        :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
14
+      >
15
+        <div v-for="(image, i) in resortImages" :key="i">
16
+          <img class="item" style="object-fit:cover" :src="image" :key="i" />
17
+        </div>
18
+      </carousel>
19
+    </div>
20
+  </section>
21
+</template>
22
+
23
+<script>
24
+/* eslint-disable */
25
+import carousel from "vue-owl-carousel";
26
+export default {
27
+  components: {
28
+    carousel
29
+  },
30
+  props: {
31
+    resortImages: {}
32
+  },
33
+  data() {
34
+    return {
35
+      images: [],
36
+      loaded: false
37
+    };
38
+  },
39
+  async created() {
40
+    this.images = await this.resortImages;
41
+    setTimeout(() => {
42
+      this.loaded = true;
43
+    }, 500);
44
+  }
45
+};
46
+</script>
47
+
48
+<style lang="scss" scoped></style>

+ 31
- 24
src/components/timeshare/resort/unit/summarySection.vue Bestand weergeven

@@ -12,31 +12,38 @@
12 12
         <gallerySection :images="images" />
13 13
       </div>
14 14
       <div class="col-md-12 col-lg-8 summarySection">
15
-        <h3>Summary</h3>
16
-        <div class="row">
17
-          <div align="center" class="col-md-12">#{{ week.id }}</div>
18
-        </div>
19
-        <div class="row mb-3">
20
-          <div align="center" class="col">
21
-            <label for="unit">Unit: </label>
22
-            <h5>{{ week ? week.unitNumber : "" }}</h5>
23
-          </div>
24
-          <div align="center" class="col">
25
-            <label for="week">Module/Week: </label>
26
-            <h5>{{ week ? week.weekNumber : "" }}</h5>
27
-          </div>
28
-        </div>
15
+        <h4>
16
+          Unit {{ week ? week.unitNumber : "" }} | {{ week ? week.bedrooms : "" }} Bedroom/{{
17
+            week ? week.maxSleep : ""
18
+          }}
19
+          Sleeper
20
+        </h4>
21
+        <p style="text-align:left">Reference: #{{ week.id }}</p>
22
+        <table class="table table-striped">
23
+          <thead>
24
+            <tr>
25
+              <th scope="col">Unit</th>
26
+              <th scope="col">Week / Module</th>
27
+              <th scope="col">2020 Arrival Date</th>
28
+              <th scope="col">Bedrooms</th>
29
+              <th scope="col">Season</th>
30
+              <th scope="col">Current Year Levy</th>
31
+              <th scope="col">Price Incl VAT</th>
32
+            </tr>
33
+          </thead>
34
+          <tbody>
35
+            <tr>
36
+              <td>{{ week ? week.unitNumber : "" }}</td>
37
+              <td>{{ week ? week.weekNumber : "" }}</td>
38
+              <td>{{ week ? week.arrivalDate : "" }}</td>
39
+              <td>{{ week ? week.bedrooms : "" }}</td>
40
+              <td>{{ week ? week.season : "" }}</td>
41
+              <td>R{{ week ? week.levyAmount : "" }}</td>
42
+              <td>R{{ week ? week.sellPrice : "" }}</td>
43
+            </tr>
44
+          </tbody>
45
+        </table>
29 46
 
30
-        <div class="row mt-5">
31
-          <div align="center" class="col">
32
-            <label for="levy">Current Year Levy: </label>
33
-            <h5>R{{ formatPrice(week ? week.levyAmount : 0) }}</h5>
34
-          </div>
35
-          <div align="center" class="col">
36
-            <label for="price">Module/Week: </label>
37
-            <h5>R {{ formatPrice(week ? week.sellPrice : 0) }}</h5>
38
-          </div>
39
-        </div>
40 47
         <div class="row mt-5">
41 48
           <div align="center" class="col-md-6">
42 49
             <a href="javascript:history.back()" class="btn-white-border">Back</a>

+ 4
- 1
src/components/timeshare/resort/unit/unitPage.vue Bestand weergeven

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <main id="main" style="padding-bottom:50px">
3
+    <carouselSection :resortImages="images" />
3 4
     <summarySection :resortCode="resortCode" :unitNumber="unitNumber" />
4 5
     <div class="container">
5 6
       <div class="row mt-5">
@@ -23,13 +24,15 @@ import { mapState, mapActions, mapGetters } from "vuex";
23 24
 import gallerySection from "../gallerySection";
24 25
 import tabSection from "./tabSection";
25 26
 import summarySection from "./summarySection";
27
+import carouselSection from "./carouselSection";
26 28
 
27 29
 export default {
28 30
   name: "unit",
29 31
   components: {
30 32
     gallerySection,
31 33
     tabSection,
32
-    summarySection
34
+    summarySection,
35
+    carouselSection
33 36
   },
34 37
   props: {
35 38
     resortCode: {},

+ 134
- 196
src/components/user/registerAgencySection.vue Bestand weergeven

@@ -1,205 +1,143 @@
1 1
 <template>
2
-  <main id="main">
3
-    <section id="intro">
4
-      <div class="container">
5
-        <div class="row justify-content-center">
6
-          <div class="col-md-8">
7
-            <div class="intro-content" style="margin-top:-25px">
8
-              <div class="col-10 mx-auto">
9
-                <div class="card card-signin my-5">
10
-                  <div class="card-body">
11
-                    <h3 class="card-title text-center">Agency Details</h3>
12
-                    <form class="form-signin">
13
-                      <div class="row">
14
-                        <div class="col-sm-12 col-md-6">
15
-                          <div class="form-label-group">
16
-                            <input
17
-                              type="text"
18
-                              id="inputName"
19
-                              v-model="registerAgency.name"
20
-                              class="form-control"
21
-                              placeholder="Agency Name"
22
-                              required
23
-                              autofocus
24
-                            />
25
-                          </div>
26
-                        </div>
27
-                        <div class="col-sm-12 col-md-6">
28
-                          <div class="form-label-group">
29
-                            <input
30
-                              type="text"
31
-                              id="inputName"
32
-                              v-model="registerAgency.eaabeffcNumber"
33
-                              class="form-control"
34
-                              placeholder="EAAB FFC Number"
35
-                              required
36
-                              autofocus
37
-                            />
38
-                          </div>
39
-                        </div>
40
-                      </div>
41
-                      <div class="row">
42
-                        <div class="col-sm-12">
43
-                          <div class="form-label-group">
44
-                            <input
45
-                              type="text"
46
-                              id="inputName"
47
-                              v-model="registerAgency.companyRegNumber"
48
-                              class="form-control"
49
-                              placeholder="Company Registration Number"
50
-                              required
51
-                              autofocus
52
-                            />
53
-                          </div>
54
-                        </div>
55
-                      </div>
56
-                      <h3 class="card-title text-center">Agency Administrator</h3>
57
-                      <hr />
58
-                      <div class="row">
59
-                        <div class="col-sm-12 col-md-6">
60
-                          <div class="form-label-group">
61
-                            <input
62
-                              type="text"
63
-                              id="inputName"
64
-                              v-model="registerAgency.user.name"
65
-                              class="form-control"
66
-                              placeholder="Name"
67
-                              required
68
-                              autofocus
69
-                            />
70
-                          </div>
2
+  <div class="col-10 mx-auto">
3
+    <h3 class="card-title text-center">Agency Details</h3>
4
+    <div class="row my-3">
5
+      <div class="col-sm-12 col-md-6">
6
+        <input
7
+          type="text"
8
+          id="inputName"
9
+          v-model="registerAgency.name"
10
+          class="form-control uniInput"
11
+          placeholder="Agency Name"
12
+          required
13
+          autofocus
14
+        />
15
+      </div>
16
+      <div class="col-sm-12 col-md-6">
17
+        <input
18
+          type="text"
19
+          id="inputName"
20
+          v-model="registerAgency.eaabeffcNumber"
21
+          class="form-control uniInput"
22
+          placeholder="EAAB FFC Number"
23
+          required
24
+          autofocus
25
+        />
26
+      </div>
27
+    </div>
28
+    <div class="row my-3">
29
+      <div class="col-sm-12">
30
+        <input
31
+          type="text"
32
+          id="inputName"
33
+          v-model="registerAgency.companyRegNumber"
34
+          class="form-control uniInput"
35
+          placeholder="Company Registration Number"
36
+          required
37
+          autofocus
38
+        />
39
+      </div>
40
+    </div>
41
+    <h3 class="card-title text-center">Agency Administrator</h3>
42
+    <hr />
43
+    <div class="row my-3">
44
+      <div class="col-sm-12 col-md-6">
45
+        <input
46
+          type="text"
47
+          id="inputName"
48
+          v-model="registerAgency.user.name"
49
+          class="form-control uniInput my-3"
50
+          placeholder="Name"
51
+          required
52
+          autofocus
53
+        />
71 54
 
72
-                          <div class="form-label-group">
73
-                            <input
74
-                              type="text"
75
-                              id="inputSurname"
76
-                              v-model="registerAgency.user.surname"
77
-                              class="form-control"
78
-                              placeholder="Surname"
79
-                              required
80
-                              autofocus
81
-                            />
82
-                          </div>
55
+        <input
56
+          type="text"
57
+          id="inputSurname"
58
+          v-model="registerAgency.user.surname"
59
+          class="form-control uniInput my-3"
60
+          placeholder="Surname"
61
+          required
62
+          autofocus
63
+        />
83 64
 
84
-                          <div class="form-label-group">
85
-                            <input
86
-                              type="email"
87
-                              id="inputEmail"
88
-                              v-model="registerAgency.user.email"
89
-                              class="form-control"
90
-                              placeholder="Email"
91
-                              required
92
-                              autofocus
93
-                            />
94
-                          </div>
95
-                        </div>
96
-                        <div class="col-sm-12 col-md-6">
97
-                          <div class="form-label-group">
98
-                            <input
99
-                              type="text"
100
-                              id="inputCellphone"
101
-                              v-model="registerAgency.user.cellNumber"
102
-                              class="form-control"
103
-                              placeholder="Cellphone Number"
104
-                              required
105
-                              autofocus
106
-                            />
107
-                          </div>
108
-                          <div class="form-label-group">
109
-                            <input
110
-                              type="text"
111
-                              id="inputLandLine"
112
-                              v-model="registerAgency.user.telephone"
113
-                              class="form-control"
114
-                              placeholder="Landline Number"
115
-                              required
116
-                              autofocus
117
-                            />
118
-                          </div>
119
-                        </div>
120
-                      </div>
121
-                      <hr />
122
-                      <div class="row">
123
-                        <div class="col-sm-12">
124
-                          <div class="form-label-group">
125
-                            <input
126
-                              type="text"
127
-                              id="inputUsername"
128
-                              v-model="registerAgency.user.username"
129
-                              class="form-control"
130
-                              placeholder="Username"
131
-                              required
132
-                              autofocus
133
-                            />
134
-                          </div>
135
-                        </div>
136
-                      </div>
137
-                      <div class="row">
138
-                        <div class="col-sm-12 col-md-6">
139
-                          <div class="form-label-group">
140
-                            <input
141
-                              type="password"
142
-                              placeholder="Password"
143
-                              v-model="registerAgency.user.password"
144
-                              id="inputPassword"
145
-                              class="form-control"
146
-                              required
147
-                            />
148
-                          </div>
149
-                        </div>
150
-                        <div class="col">
151
-                          <div class="form-label-group">
152
-                            <input
153
-                              type="password"
154
-                              placeholder="Confirm Password"
155
-                              v-model="registerAgency.user.password"
156
-                              id="inputPasswordConfirm"
157
-                              class="form-control"
158
-                              required
159
-                            />
160
-                          </div>
161
-                        </div>
162
-                      </div>
65
+        <input
66
+          type="email"
67
+          id="inputEmail"
68
+          v-model="registerAgency.user.email"
69
+          class="form-control uniInput my-3"
70
+          placeholder="Email"
71
+          required
72
+          autofocus
73
+        />
74
+      </div>
75
+      <div class="col-sm-12 col-md-6">
76
+        <input
77
+          type="text"
78
+          id="inputCellphone"
79
+          v-model="registerAgency.user.cellNumber"
80
+          class="form-control uniInput my-3"
81
+          placeholder="Cellphone Number"
82
+          required
83
+          autofocus
84
+        />
163 85
 
164
-                      <button v-on:click="SubmitData()" class="btn-solid-blue" type="submit">
165
-                        SUBMIT
166
-                      </button>
167
-                      <router-link
168
-                        to="/user/login"
169
-                        class="btn-white-border"
170
-                        style="float:right"
171
-                        type="submit"
172
-                      >
173
-                        Cancel
174
-                      </router-link>
175
-                    </form>
176
-                  </div>
177
-                </div>
178
-              </div>
179
-            </div>
180
-          </div>
181
-        </div>
86
+        <input
87
+          type="text"
88
+          id="inputLandLine"
89
+          v-model="registerAgency.user.telephone"
90
+          class="form-control uniInput"
91
+          placeholder="Landline Number"
92
+          required
93
+          autofocus
94
+        />
95
+      </div>
96
+    </div>
97
+    <hr />
98
+    <div class="row my-3">
99
+      <div class="col-sm-12">
100
+        <input
101
+          type="text"
102
+          id="inputUsername"
103
+          v-model="registerAgency.user.username"
104
+          class="form-control uniInput"
105
+          placeholder="Username"
106
+          required
107
+          autofocus
108
+        />
109
+      </div>
110
+    </div>
111
+    <div class="row my-3">
112
+      <div class="col-sm-12 col-md-6">
113
+        <input
114
+          type="password"
115
+          placeholder="Password"
116
+          v-model="registerAgency.user.password"
117
+          id="inputPassword uniInput"
118
+          class="form-control uniInput"
119
+          required
120
+        />
121
+      </div>
122
+      <div class="col">
123
+        <input
124
+          type="password"
125
+          placeholder="Confirm Password"
126
+          v-model="registerAgency.user.password"
127
+          id="inputPasswordConfirm"
128
+          class="form-control uniInput"
129
+          required
130
+        />
182 131
       </div>
132
+    </div>
183 133
 
184
-      <carousel
185
-        :nav="false"
186
-        :dots="false"
187
-        :items="1"
188
-        :autoplay="true"
189
-        :loop="true"
190
-        id="intro-carousel"
191
-        style="margin-top:-50px"
192
-        :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
193
-      >
194
-        <img class="item" src="/img/intro-carousel/home-1.jpg" alt="" />
195
-        <img class="item" src="/img/intro-carousel/home-2.jpg" alt="" />
196
-        <img class="item" src="/img/intro-carousel/home-3.jpg" alt="" />
197
-        <img class="item" src="/img/intro-carousel/home-4.jpg" alt="" />
198
-        <img class="item" src="/img/intro-carousel/home-5.jpg" alt="" />
199
-        <img class="item" src="/img/intro-carousel/home-6.jpg" alt="" />
200
-      </carousel>
201
-    </section>
202
-  </main>
134
+    <button v-on:click="SubmitData()" class="btn-solid-blue" type="submit">
135
+      SUBMIT
136
+    </button>
137
+    <router-link to="/user/login" class="btn-white-border mb-5" style="float:right" type="submit">
138
+      Cancel
139
+    </router-link>
140
+  </div>
203 141
 </template>
204 142
 
205 143
 <script>

+ 163
- 0
src/components/user/registerIndividual.vue Bestand weergeven

@@ -0,0 +1,163 @@
1
+<template>
2
+  <main id="main" style="padding-top:10px; padding-bottom:50px">
3
+    <div class="container">
4
+      <div class="row">
5
+        <div class="col-sm-12 col-md-6 ">
6
+          <input
7
+            type="text"
8
+            id="inputName"
9
+            v-model="registerIndividual.name"
10
+            class="form-control uniInput my-2"
11
+            placeholder="Name"
12
+            required
13
+            autofocus
14
+          />
15
+
16
+          <input
17
+            type="text"
18
+            id="inputSurname"
19
+            v-model="registerIndividual.surname"
20
+            class="form-control uniInput my-2"
21
+            placeholder="Surname"
22
+            required
23
+            autofocus
24
+          />
25
+
26
+          <input
27
+            type="email"
28
+            id="inputEmail"
29
+            v-model="registerIndividual.email"
30
+            class="form-control uniInput my-2"
31
+            placeholder="Email"
32
+            required
33
+            autofocus
34
+          />
35
+        </div>
36
+        <div class="col-sm-12 col-md-6">
37
+          <input
38
+            type="text"
39
+            id="inputCellphone"
40
+            v-model="registerIndividual.cellNumber"
41
+            class="form-control uniInput my-2"
42
+            placeholder="Cellphone Number"
43
+            required
44
+            autofocus
45
+          />
46
+
47
+          <input
48
+            type="text"
49
+            id="inputLandLine"
50
+            v-model="registerIndividual.telephone"
51
+            class="form-control uniInput my-2"
52
+            placeholder="Landline Number"
53
+            required
54
+            autofocus
55
+          />
56
+        </div>
57
+      </div>
58
+      <hr />
59
+      <div class="row">
60
+        <div class="col-sm-12">
61
+          <input
62
+            type="text"
63
+            id="inputUsername"
64
+            v-model="registerIndividual.username"
65
+            class="form-control uniInput my-2"
66
+            placeholder="Username"
67
+            required
68
+            autofocus
69
+          />
70
+        </div>
71
+      </div>
72
+      <div class="row">
73
+        <div class="col-sm-12 col-md-6">
74
+          <input
75
+            type="password"
76
+            placeholder="Password "
77
+            v-model="registerIndividual.password"
78
+            id="inputPassword"
79
+            class="form-control uniInput my-2"
80
+            required
81
+          />
82
+        </div>
83
+        <div class="col">
84
+          <input
85
+            type="password"
86
+            placeholder="Confirm Password"
87
+            v-model="registerIndividual.confirmpassword"
88
+            id="inputPasswordConfirm"
89
+            class="form-control uniInput my-2"
90
+            required
91
+          />
92
+        </div>
93
+      </div>
94
+
95
+      <button v-on:click="SubmitData()" class="btn-solid-blue" type="submit">
96
+        SUBMIT
97
+      </button>
98
+      <router-link to="/user/login" class="btn-white-border" style="float:right" type="submit">
99
+        Cancel
100
+      </router-link>
101
+    </div>
102
+  </main>
103
+</template>
104
+
105
+<script>
106
+/* eslint-disable */
107
+import { mapState, mapActions } from "vuex";
108
+import carousel from "vue-owl-carousel";
109
+export default {
110
+  components: {
111
+    carousel
112
+  },
113
+  props: {
114
+    RegisterHeader: { type: String, default: undefined }
115
+  },
116
+  name: "PrivateIndividual",
117
+  data() {
118
+    return {
119
+      user: undefined,
120
+      isPasswordShown: "password",
121
+      selectItems: [{ text: "password", value: 0 }],
122
+      selectErrors: "Some error with the field",
123
+      select: undefined,
124
+      textErrors: "Some error with the field",
125
+      text: "",
126
+      showPassword: false
127
+    };
128
+  },
129
+  computed: {
130
+    ...mapState("register", ["registerIndividual"]),
131
+
132
+    Header() {
133
+      return this.RegisterHeader ? "Agency Administrator Details" : "Private Individual";
134
+    }
135
+  },
136
+  methods: {
137
+    ...mapActions("register", [
138
+      "getIndividual",
139
+      "saveIndividual",
140
+      "updateIndividual",
141
+      "clearIndividual"
142
+    ]),
143
+    togglePassword() {
144
+      this.showPassword = true;
145
+      this.isPasswordShown = "text";
146
+    },
147
+    passwordToggled() {
148
+      this.showPassword = false;
149
+      this.isPasswordShown = "password";
150
+    },
151
+    SubmitData() {
152
+      this.saveIndividual(this.registerIndividual);
153
+
154
+      this.$router.push("/user/login");
155
+    },
156
+    Close() {
157
+      this.$router.push("/user/login");
158
+    }
159
+  }
160
+};
161
+</script>
162
+
163
+<style lang="scss" scoped></style>

+ 81
- 153
src/components/user/registerPage.vue Bestand weergeven

@@ -1,169 +1,74 @@
1 1
 <template>
2 2
   <main id="main">
3
-    <section id="intro">
4
-      <div class="container">
5
-        <div class="row justify-content-center">
6
-          <div class="col-md-8">
7
-            <div class="intro-content">
8
-              <div class="col-10 mx-auto">
9
-                <div class="card card-signin my-5">
10
-                  <div class="card-body">
11
-                    <h3 class="card-title text-center">Registration</h3>
12
-                    <form class="form-signin">
13
-                      <div class="row">
14
-                        <div class="col-sm-12 col-md-6">
15
-                          <div class="form-label-group">
16
-                            <input
17
-                              type="text"
18
-                              id="inputName"
19
-                              v-model="registerIndividual.name"
20
-                              class="form-control"
21
-                              placeholder="Name"
22
-                              required
23
-                              autofocus
24
-                            />
25
-                          </div>
26
-
27
-                          <div class="form-label-group">
28
-                            <input
29
-                              type="text"
30
-                              id="inputSurname"
31
-                              v-model="registerIndividual.surname"
32
-                              class="form-control"
33
-                              placeholder="Surname"
34
-                              required
35
-                              autofocus
36
-                            />
37
-                          </div>
38
-
39
-                          <div class="form-label-group">
40
-                            <input
41
-                              type="email"
42
-                              id="inputEmail"
43
-                              v-model="registerIndividual.email"
44
-                              class="form-control"
45
-                              placeholder="Email"
46
-                              required
47
-                              autofocus
48
-                            />
49
-                          </div>
50
-                        </div>
51
-                        <div class="col-sm-12 col-md-6">
52
-                          <div class="form-label-group">
53
-                            <input
54
-                              type="text"
55
-                              id="inputCellphone"
56
-                              v-model="registerIndividual.cellNumber"
57
-                              class="form-control"
58
-                              placeholder="Cellphone Number"
59
-                              required
60
-                              autofocus
61
-                            />
62
-                          </div>
63
-                          <div class="form-label-group">
64
-                            <input
65
-                              type="text"
66
-                              id="inputLandLine"
67
-                              v-model="registerIndividual.telephone"
68
-                              class="form-control"
69
-                              placeholder="Landline Number"
70
-                              required
71
-                              autofocus
72
-                            />
73
-                          </div>
74
-                        </div>
75
-                      </div>
76
-                      <hr />
77
-                      <div class="row">
78
-                        <div class="col-sm-12">
79
-                          <div class="form-label-group">
80
-                            <input
81
-                              type="text"
82
-                              id="inputUsername"
83
-                              v-model="registerIndividual.username"
84
-                              class="form-control"
85
-                              placeholder="Username"
86
-                              required
87
-                              autofocus
88
-                            />
89
-                          </div>
90
-                        </div>
91
-                      </div>
92
-                      <div class="row">
93
-                        <div class="col-sm-12 col-md-6">
94
-                          <div class="form-label-group">
95
-                            <input
96
-                              type="password"
97
-                              placeholder="Password"
98
-                              v-model="registerIndividual.password"
99
-                              id="inputPassword"
100
-                              class="form-control"
101
-                              required
102
-                            />
103
-                          </div>
104
-                        </div>
105
-                        <div class="col">
106
-                          <div class="form-label-group">
107
-                            <input
108
-                              type="password"
109
-                              placeholder="Confirm Password"
110
-                              v-model="registerIndividual.confirmpassword"
111
-                              id="inputPasswordConfirm"
112
-                              class="form-control"
113
-                              required
114
-                            />
115
-                          </div>
116
-                        </div>
117
-                      </div>
118
-
119
-                      <button v-on:click="SubmitData()" class="btn-solid-blue" type="submit">
120
-                        SUBMIT
121
-                      </button>
122
-                      <router-link
123
-                        to="/user/login"
124
-                        class="btn-white-border"
125
-                        style="float:right"
126
-                        type="submit"
127
-                      >
128
-                        Cancel
129
-                      </router-link>
130
-                    </form>
131
-                  </div>
132
-                </div>
133
-              </div>
3
+    <div class="container">
4
+      <div class="row">
5
+        <div class="col">
6
+          <div class="section-header">
7
+            <h2>Register</h2>
8
+          </div>
9
+        </div>
10
+      </div>
11
+      <div class="row">
12
+        <div class="col">
13
+          <ul class="nav nav-tabs mb-3 nav-justified" id="pills-tab" role="tablist">
14
+            <li class="nav-item">
15
+              <a
16
+                class="nav-link active"
17
+                id="pills-home-tab"
18
+                data-toggle="pill"
19
+                href="#pills-indiv"
20
+                role="tab"
21
+                aria-controls="pills-indiv"
22
+                aria-selected="true"
23
+                ><h2>Register</h2>
24
+              </a>
25
+            </li>
26
+            <li class="nav-item">
27
+              <a
28
+                class="nav-link"
29
+                id="pills-profile-tab"
30
+                data-toggle="pill"
31
+                href="#pills-agency"
32
+                role="tab"
33
+                aria-controls="pills-agency"
34
+                aria-selected="false"
35
+                ><h2>Agency Registration</h2></a
36
+              >
37
+            </li>
38
+          </ul>
39
+          <div class="tab-content" id="pills-tabContent">
40
+            <div
41
+              class="tab-pane fade show active"
42
+              id="pills-indiv"
43
+              role="tabpanel"
44
+              aria-labelledby="pills-indiv-tab"
45
+            >
46
+              <RegisterIndividual />
47
+            </div>
48
+            <div
49
+              class="tab-pane fade"
50
+              id="pills-agency"
51
+              role="tabpanel"
52
+              aria-labelledby="pills-agency-tab"
53
+            >
54
+              <RegisterAgency />
134 55
             </div>
135 56
           </div>
136 57
         </div>
137 58
       </div>
138
-
139
-      <carousel
140
-        :nav="false"
141
-        :dots="false"
142
-        :items="1"
143
-        :autoplay="true"
144
-        :loop="true"
145
-        id="intro-carousel"
146
-        style="margin-top:-50px"
147
-        :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
148
-      >
149
-        <img class="item" src="/img/intro-carousel/home-1.jpg" alt="" />
150
-        <img class="item" src="/img/intro-carousel/home-2.jpg" alt="" />
151
-        <img class="item" src="/img/intro-carousel/home-3.jpg" alt="" />
152
-        <img class="item" src="/img/intro-carousel/home-4.jpg" alt="" />
153
-        <img class="item" src="/img/intro-carousel/home-5.jpg" alt="" />
154
-        <img class="item" src="/img/intro-carousel/home-6.jpg" alt="" />
155
-      </carousel>
156
-    </section>
59
+    </div>
157 60
   </main>
158 61
 </template>
159 62
 
160 63
 <script>
161 64
 /* eslint-disable */
162 65
 import { mapState, mapActions } from "vuex";
163
-import carousel from "vue-owl-carousel";
66
+import RegisterIndividual from "./registerIndividual";
67
+import RegisterAgency from "./registerAgencySection";
164 68
 export default {
165 69
   components: {
166
-    carousel
70
+    RegisterIndividual,
71
+    RegisterAgency
167 72
   },
168 73
   props: {
169 74
     RegisterHeader: { type: String, default: undefined }
@@ -215,4 +120,27 @@ export default {
215 120
 };
216 121
 </script>
217 122
 
218
-<style lang="scss" scoped></style>
123
+<style lang="scss" scoped>
124
+.nav-tabs li a {
125
+  border-top: none;
126
+  border-left: none;
127
+  border-right: none;
128
+  border-bottom-color: rgb(221, 221, 221);
129
+}
130
+
131
+.nav-tabs li :hover {
132
+  background-color: rgb(27, 117, 187);
133
+}
134
+
135
+.nav-tabs li a.active {
136
+  border-top: none;
137
+  border-left: none;
138
+  border-right: none;
139
+  border-bottom-color: rgb(221, 221, 221);
140
+}
141
+
142
+.nav-tabs li a :hover {
143
+  background-color: transparent;
144
+  color: white;
145
+}
146
+</style>

+ 2
- 2
src/main.js Bestand weergeven

@@ -25,8 +25,8 @@ Vue.use(VueGoogleMaps, {
25 25
 });
26 26
 Vue.config.productionTip = false;
27 27
 //axios.defaults.baseURL = "http://localhost:57260";
28
-axios.defaults.baseURL = "http://training.provision-sa.com:82";
29
-//axios.defaults.baseURL = "http://localhost:8080/";
28
+//axios.defaults.baseURL = "http://training.provision-sa.com:82";
29
+axios.defaults.baseURL = "http://localhost:8080/";
30 30
 
31 31
 Vue.prototype.$axios = axios;
32 32
 

Laden…
Annuleren
Opslaan