Bläddra i källkod

merge conflict

master
Kobus 5 år sedan
förälder
incheckning
753dc90a40

+ 35
- 0
public/css/style.css Visa fil

@@ -1574,6 +1574,41 @@ footer .credits {
1574 1574
 /*======================================
1575 1575
 //--//-->   FORM INPUT
1576 1576
 ======================================*/
1577
+.login-page {
1578
+    width: 360px;
1579
+    padding: 8% 0 0;
1580
+    margin: auto;
1581
+}
1582
+
1583
+.reg-page {
1584
+    width: 800px;
1585
+    padding: 8% 0 0;
1586
+    margin: auto;
1587
+}
1588
+
1589
+.form {
1590
+    position: relative;
1591
+    z-index: 1;
1592
+    background: rgb(236, 233, 233);
1593
+    max-width: 360px;
1594
+    margin: 0 auto 100px;
1595
+    padding: 45px;
1596
+    text-align: center;
1597
+    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
1598
+}
1599
+
1600
+.regform {
1601
+    position: relative;
1602
+    z-index: 1;
1603
+    background: rgb(236, 233, 233);
1604
+    max-width: 600px;
1605
+    margin: 0 auto 100px;
1606
+    padding: 45px;
1607
+    text-align: center;
1608
+    font-size: 10pt;
1609
+    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
1610
+}
1611
+
1577 1612
 
1578 1613
 .form-a #sendmessage {
1579 1614
     color: #60CBEB;

+ 7
- 7
src/components/property/propertyImage.vue Visa fil

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <div>
4
-      <label class="btn btn-a" style="width: 137px; height:58px;">
4
+      <label class="btn btn-b-n" style="width: 85px; height:40px;">
5 5
         Upload
6 6
         <input
7 7
           type="file"
@@ -30,7 +30,7 @@ export default {
30 30
   data() {
31 31
     return {
32 32
       images: {},
33
-      image: [],
33
+      image: []
34 34
     };
35 35
   },
36 36
 
@@ -50,7 +50,7 @@ export default {
50 50
         const reader = new FileReader();
51 51
         var vm = this;
52 52
 
53
-        reader.onload = (e) => {
53
+        reader.onload = e => {
54 54
           vm.image.push(e.target.result);
55 55
           console.log(vm.image);
56 56
         };
@@ -63,9 +63,9 @@ export default {
63 63
       this.images.splice(key, 1);
64 64
 
65 65
       if (!this.image.length) {
66
-        this.$refs.im.value = '';
66
+        this.$refs.im.value = "";
67 67
       }
68
-    },
69
-  },
68
+    }
69
+  }
70 70
 };
71
-</script>
71
+</script>

+ 71
- 65
src/components/property/propertyeditPage.vue Visa fil

@@ -30,44 +30,47 @@
30 30
           >
31 31
             <div class="form-group row">
32 32
               <div class="col-md-4">
33
-                <label>Property Type</label>
33
+                <label for="Property Type"></label>
34 34
                 <select
35
-                  class="form-control form-control-lg form-control-a"
35
+                  class="form-control"
36 36
                   name="propertyType"
37 37
                   id="propertyType"
38 38
                   v-model="property.propertyTypeId"
39 39
                 >
40
-                  <option value="0">Please Select</option>
40
+                  <option value="0">Please select Property Type</option>
41 41
                   <option v-for="item in propertyTypes" :value="item.id">{{ item.description }}</option>
42 42
                 </select>
43 43
               </div>
44 44
             </div>
45 45
             <div class="form-group row">
46 46
               <div class="col-md-4">
47
-                <label>Address Line 1</label>
47
+                <label for="Address Line 1"></label>
48 48
                 <input
49
-                  class="form-control form-control-lg form-control-a"
49
+                  class="form-control"
50 50
                   type="text"
51
+                  placeholder="Address Line 1"
51 52
                   name="address1"
52 53
                   id="address1"
53 54
                   v-model="property.addressLine1"
54 55
                 />
55 56
               </div>
56 57
               <div class="col-md-4">
57
-                <label>Address Line 2</label>
58
+                <label for="Address Line 2"></label>
58 59
                 <input
59
-                  class="form-control form-control-lg form-control-a"
60
+                  class="form-control"
60 61
                   type="text"
62
+                  placeholder="Address Line 2"
61 63
                   name="address2"
62 64
                   id="address2"
63 65
                   v-model="property.addressLine2"
64 66
                 />
65 67
               </div>
66 68
               <div class="col-md-4">
67
-                <label>Address Line 3</label>
69
+                <label for="Address Line 3"></label>
68 70
                 <input
69
-                  class="form-control form-control-lg form-control-a"
71
+                  class="form-control"
70 72
                   type="text"
73
+                  placeholder="Address Line 3"
71 74
                   name="address3"
72 75
                   id="address3"
73 76
                   v-model="property.addressLine3"
@@ -76,15 +79,15 @@
76 79
             </div>
77 80
             <div class="form-group row">
78 81
               <div class="col-md-4">
79
-                <label>Province</label>
82
+                <label for="Province"></label>
80 83
                 <select
81
-                  class="form-control form-control-lg form-control-a"
84
+                  class="form-control"
82 85
                   name="propertyType"
83 86
                   id="propertyType"
84 87
                   @change="ProvinceSelected"
85 88
                   v-model="property.provinceId"
86 89
                 >
87
-                  <option value="0">Please Select</option>
90
+                  <option value="0">Please select Province</option>
88 91
                   <option
89 92
                     v-for="province in provinces"
90 93
                     :value="province.id"
@@ -92,52 +95,53 @@
92 95
                 </select>
93 96
               </div>
94 97
               <div class="col-md-4">
95
-                <label>City</label>
98
+                <label for="City"></label>
96 99
                 <select
97
-                  class="form-control form-control-lg form-control-a"
100
+                  class="form-control"
98 101
                   name="propertyType"
99 102
                   id="propertyType"
100 103
                   @change="CitySelected"
101 104
                   v-model="property.cityId"
102 105
                 >
103
-                  <option value="0">Please Select</option>
106
+                  <option value="0">Please select City</option>
104 107
                   <option v-for="city in cities" :value="city.id">{{ city.description }}</option>
105 108
                 </select>
106 109
               </div>
107 110
               <div class="col-md-4">
108
-                <label>Suburb</label>
111
+                <label for="Suburb"></label>
109 112
                 <select
110
-                  class="form-control form-control-lg form-control-a"
113
+                  class="form-control"
111 114
                   name="propertyType"
112 115
                   id="suburbselector"
113 116
                   v-model="property.suburbId"
114 117
                 >
115
-                  <option value="0">Please Select</option>
118
+                  <option value="0">Please select Suburb</option>
116 119
                   <option v-for="suburb in suburbs" :value="suburb.id">{{ suburb.description }}</option>
117 120
                 </select>
118 121
               </div>
119 122
             </div>
120 123
             <div class="form-group row">
121 124
               <div class="col-md-4">
122
-                <label v-if="salesType === 'Rental'">Rental</label>
123
-                <label v-if="salesType !== 'Rental'">Sale Price</label>
125
+                <label v-if="salesType === 'Rental'">Rental Price</label>
126
+                <label v-if="salesType !== 'Rental'">Sales Price</label>
124 127
                 <input
125
-                  class="form-control form-control-lg form-control-a"
128
+                  class="form-control"
126 129
                   type="number"
127 130
                   name="price"
128 131
                   id="price"
132
+                  placeholder="R"
129 133
                   v-model="property.price"
130 134
                 />
131 135
               </div>
132 136
               <div class="col-md-4" v-if="salesType === 'Rental'">
133 137
                 <label>Per</label>
134 138
                 <select
135
-                  class="form-control form-control-lg form-control-a"
139
+                  class="form-control"
136 140
                   name="propertyType"
137 141
                   id="propertyType"
138 142
                   v-model="property.per"
139 143
                 >
140
-                  <option value>Please Select</option>
144
+                  <option value>Please select</option>
141 145
                   <option value="month">Month</option>
142 146
                   <option value="day">Day</option>
143 147
                 </select>
@@ -145,12 +149,14 @@
145 149
             </div>
146 150
             <div class="form-group row">
147 151
               <div class="col-md-12">
148
-                <label>Property Description</label>
152
+                <label for="Property Description"></label>
149 153
                 <textarea
150
-                  class="form-control editor form-control-lg form-control-a"
154
+                  class="form-control editor"
155
+                  placeholder="Property Description"
151 156
                   name="description"
152 157
                   v-model="property.description"
153 158
                 ></textarea>
159
+                <br />
154 160
                 <p>* A listing fee of R380 including VAT is payable to list your Property on the Uni-Vate website</p>
155 161
               </div>
156 162
             </div>
@@ -176,7 +182,7 @@
176 182
               </div>
177 183
             </div>
178 184
             <ImageLoad />
179
-            <button type="submit" class="btn btn-a">Save</button>
185
+            <button type="submit" class="btn btn-b-n" style="width: 85px; height:40px;">Save</button>
180 186
           </form>
181 187
         </div>
182 188
       </div>
@@ -185,55 +191,55 @@
185 191
 </template>
186 192
 
187 193
 <script>
188
-import UserField from './propertyUserField.vue';
189
-import ImageLoad from './propertyImage.vue';
194
+import UserField from "./propertyUserField.vue";
195
+import ImageLoad from "./propertyImage.vue";
190 196
 
191 197
 export default {
192
-  name: 'PropertyEdit',
198
+  name: "PropertyEdit",
193 199
   components: {
194 200
     UserField,
195
-    ImageLoad,
201
+    ImageLoad
196 202
   },
197 203
   data() {
198 204
     return {
199 205
       ApiRunning: false,
200
-      propertyType: 'Residential',
201
-      salesType: 'Rental',
202
-      imageFile: '',
206
+      propertyType: "Residential",
207
+      salesType: "Rental",
208
+      imageFile: "",
203 209
       provinces: [],
204 210
       cities: [],
205 211
       suburbs: [],
206 212
       propertyValues: [],
207 213
       propValuesProp: [],
208 214
       propertyTypes: [],
209
-      selectedProvince: '',
210
-      selectedCity: '',
215
+      selectedProvince: "",
216
+      selectedCity: "",
211 217
       property: {
212 218
         propertyTypeId: 0,
213
-        addressLine1: '',
214
-        addressLine2: '',
215
-        addressLine3: '',
219
+        addressLine1: "",
220
+        addressLine2: "",
221
+        addressLine3: "",
216 222
         suburbId: 0,
217 223
         cityId: 0,
218 224
         provinceId: 0,
219
-        price: '',
220
-        per: '',
221
-        description: '',
222
-        isSale: false,
223
-      },
225
+        price: "",
226
+        per: "",
227
+        description: "",
228
+        isSale: false
229
+      }
224 230
     };
225 231
   },
226 232
   methods: {
227 233
     SubmitData() {
228
-      const axios = require('axios');
234
+      const axios = require("axios");
229 235
       axios
230
-        .post('http://localhost:57260/Property/Property', this.property, {
236
+        .post("http://localhost:57260/Property/Property", this.property, {
231 237
           headers: {
232
-            'Content-type': 'application/json',
233
-          },
238
+            "Content-type": "application/json"
239
+          }
234 240
         })
235
-        .then((response) => {})
236
-        .catch((e) => {
241
+        .then(response => {})
242
+        .catch(e => {
237 243
           alert(e);
238 244
         });
239 245
 
@@ -244,10 +250,10 @@ export default {
244 250
         this.selectedProvince = this.provinces[
245 251
           item.target.options.selectedIndex - 1
246 252
         ].description;
247
-        const axios = require('axios');
253
+        const axios = require("axios");
248 254
         axios
249 255
           .get(
250
-            `http://localhost:57260/region/city/getby/${this.selectedProvince}`,
256
+            `http://localhost:57260/region/city/getby/${this.selectedProvince}`
251 257
           )
252 258
           .then(response => (this.cities = response.data));
253 259
       }
@@ -257,36 +263,36 @@ export default {
257 263
         this.selectedCity = this.cities[
258 264
           item.target.options.selectedIndex - 1
259 265
         ].description;
260
-        const axios = require('axios');
266
+        const axios = require("axios");
261 267
         axios
262 268
           .get(
263
-            `http://localhost:57260/region/Suburb/${this.selectedProvince}/${this.selectedCity}`,
269
+            `http://localhost:57260/region/Suburb/${this.selectedProvince}/${this.selectedCity}`
264 270
           )
265 271
           .then(response => (this.suburbs = response.data));
266 272
       }
267
-    },
273
+    }
268 274
   },
269 275
   mounted() {
270 276
     this.propertyType = this.$route.params.propType;
271 277
     this.salesType = this.$route.params.saleType;
272 278
 
273
-    const axios = require('axios');
279
+    const axios = require("axios");
274 280
     axios
275
-      .get('http://localhost:57260/Property/PropertyFields/Property Overview')
281
+      .get("http://localhost:57260/Property/PropertyFields/Property Overview")
276 282
       .then(response => (this.propValuesProp = response.data));
277 283
 
278 284
     axios
279
-      .get('http://localhost:57260/Property/PropertyFields')
285
+      .get("http://localhost:57260/Property/PropertyFields")
280 286
       .then(response => (this.propertyValues = response.data));
281 287
 
282 288
     axios
283 289
       .get(
284
-        `http://localhost:57260/Property/PropertyType/type/${this.propertyType}`,
290
+        `http://localhost:57260/Property/PropertyType/type/${this.propertyType}`
285 291
       )
286 292
       .then(response => (this.propertyTypes = response.data));
287 293
 
288 294
     axios
289
-      .get('http://localhost:57260/region/province')
295
+      .get("http://localhost:57260/region/province")
290 296
       .then(response => (this.provinces = response.data));
291 297
   },
292 298
   computed: {
@@ -294,18 +300,18 @@ export default {
294 300
       this.propertyType = this.$route.params.propType;
295 301
       this.salesType = this.$route.params.saleType;
296 302
 
297
-      const axios = require('axios');
303
+      const axios = require("axios");
298 304
       axios
299 305
         .get(
300
-          `http://localhost:57260/Property/PropertyType/type/${this.propertyType}`,
306
+          `http://localhost:57260/Property/PropertyType/type/${this.propertyType}`
301 307
         )
302 308
         .then(response => (this.propertyTypes = response.data));
303
-    },
309
+    }
304 310
   },
305 311
   watch: {
306 312
     SalesTypeChanged() {
307 313
       console.log(this.salesType);
308
-    },
309
-  },
314
+    }
315
+  }
310 316
 };
311
-</script>
317
+</script>

+ 6
- 4
src/components/shared/footerSection.vue Visa fil

@@ -22,10 +22,12 @@
22 22
               <div class="w-footer-a">
23 23
                 <ul class="list-unstyled">
24 24
                   <li class="color-a">
25
-                    <span class="color-text-a">Phone .</span> +27 (0)12 492 1238
25
+                    <eva-icon name="phone-call-outline" fill="#60CBEB"></eva-icon>
26
+                    <span class="color-text-a"></span> +27 (0)12 492 1238
26 27
                   </li>
27 28
                   <li class="color-a">
28
-                    <span class="color-text-a">Email .</span> info@univateproperties.co.za
29
+                    <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
30
+                    <span class="color-text-a"></span> info@univateproperties.co.za
29 31
                   </li>
30 32
                 </ul>
31 33
               </div>
@@ -56,8 +58,8 @@
56 58
                     </li>
57 59
                     <br />
58 60
                     <li class="list-inline-item">
59
-                      <a href="www.https://www.facebook.com/univateproperties/">
60
-                        <i class="fa fa-facebook color-b font-weight-bold" aria-hidden="true"></i>
61
+                      <a href="https://www.facebook.com/univateproperties/">
62
+                        <eva-icon name="facebook-outline" fill="#60CBEB"></eva-icon>
61 63
                       </a>
62 64
                     </li>
63 65
                   </ul>

+ 41
- 17
src/components/shared/navBar.vue Visa fil

@@ -64,6 +64,10 @@
64 64
             <div class="dropdown-menu" aria-labelledby="navbarDropdown">
65 65
               <a class="dropdown-item cursor-pointer" @click="routerGoTo('/timeshare/buy')">To Buy</a>
66 66
               <a class="dropdown-item cursor-pointer" @click="routerGoTo('/timeshare/sell')">To Sell</a>
67
+              <a
68
+                class="dropdown-item cursor-pointer"
69
+                @click="routerGoTo('/timeshare/sell')"
70
+              >My Timeshare Weeks</a>
67 71
               <a class="dropdown-item cursor-pointer" @click="routerGoTo('/timeshare/faq')">FAQ</a>
68 72
             </div>
69 73
           </li>
@@ -90,6 +94,14 @@
90 94
                 class="dropdown-item cursor-pointer"
91 95
                 @click="routerGoTo('/property/Residential/Sale')"
92 96
               >To Sell</div>
97
+              <div
98
+                class="dropdown-item cursor-pointer"
99
+                @click="routerGoTo('/property/Residential/Sale')"
100
+              >My Residential Properties</div>
101
+              <div
102
+                class="dropdown-item cursor-pointer"
103
+                @click="routerGoTo('/property/Residential/Sale')"
104
+              >Admin Residential Properties</div>
93 105
             </div>
94 106
           </li>
95 107
           <li class="nav-item dropdown">
@@ -115,6 +127,14 @@
115 127
                 class="dropdown-item cursor-pointer"
116 128
                 @click="routerGoTo('/property/Commercial/Sale')"
117 129
               >To Sell</a>
130
+              <a
131
+                class="dropdown-item cursor-pointer"
132
+                @click="routerGoTo('/property/Commercial/Sale')"
133
+              >My Commercial Properties</a>
134
+              <a
135
+                class="dropdown-item cursor-pointer"
136
+                @click="routerGoTo('/property/Commercial/Sale')"
137
+              >Admin Commercial Properties</a>
118 138
             </div>
119 139
           </li>
120 140
           <li class="nav-item dropdown">
@@ -129,6 +149,26 @@
129 149
             >Admin</a>
130 150
             <div class="dropdown-menu" aria-labelledby="navbarDropdown">
131 151
               <a class="dropdown-item cursor-pointer" @click="routerGoTo('/status/list')">Status</a>
152
+              <a
153
+                class="dropdown-item cursor-pointer"
154
+                @click="routerGoTo('/status/list')"
155
+              >Timeshare Week Admin</a>
156
+              <a
157
+                class="dropdown-item cursor-pointer"
158
+                @click="routerGoTo('/status/list')"
159
+              >Changes Logs</a>
160
+              <a
161
+                class="dropdown-item cursor-pointer"
162
+                @click="routerGoTo('/status/list')"
163
+              >User Management & Access</a>
164
+              <a
165
+                class="dropdown-item cursor-pointer"
166
+                @click="routerGoTo('/status/list')"
167
+              >Tender Week Management</a>
168
+              <a
169
+                class="dropdown-item cursor-pointer"
170
+                @click="routerGoTo('/status/list')"
171
+              >Timeshare Week Approval</a>
132 172
               <a
133 173
                 class="dropdown-item cursor-pointer"
134 174
                 @click="routerGoTo('/unitConfiguration/list')"
@@ -151,23 +191,7 @@
151 191
             <div class="dropdown-menu" aria-labelledby="navbarDropdown">
152 192
               <a class="dropdown-item cursor-pointer" @click="routerGoTo('/user/login')">Login</a>
153 193
               <a class="dropdown-item cursor-pointer">Logout</a>
154
-            </div>
155
-          </li>
156
-          <li class="nav-item dropdown">
157
-            <a
158
-              class="nav-link dropdown-toggle"
159
-              href="#"
160
-              id="navbarDropdown"
161
-              role="button"
162
-              data-toggle="dropdown"
163
-              aria-haspopup="true"
164
-              aria-expanded="false"
165
-            >Register</a>
166
-            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
167
-              <a
168
-                class="dropdown-item cursor-pointer"
169
-                @click="routerGoTo('/user/register')"
170
-              >Private Individual</a>
194
+              <a class="dropdown-item cursor-pointer" @click="routerGoTo('/user/register')">Register</a>
171 195
               <a
172 196
                 class="dropdown-item cursor-pointer"
173 197
                 @click="routerGoTo('/user/registeragency')"

+ 3
- 3
src/components/timeshare/buy/buyPage.vue Visa fil

@@ -40,15 +40,15 @@
40 40
               <div class="accordion" id="accordionExample">
41 41
                 <div class="card" v-for="(region, r) in detailedRegion" :key="r">
42 42
                   <a
43
-                    class="btn-link"
43
+                    class="btn btn-b-n"
44 44
                     type="button"
45 45
                     data-toggle="collapse"
46 46
                     :data-target="'#collapse' + region.id"
47 47
                     aria-expanded="false"
48 48
                     :aria-controls="'collapse' + region.id"
49 49
                   >
50
-                    <div class="card-header" :id="'header' + region.id">
51
-                      <h4 class="mb-0">{{ region.regionName }}</h4>
50
+                    <div :id="'header' + region.id">
51
+                      <h5 class="mb-0">{{ region.regionName }}</h5>
52 52
                     </div>
53 53
                   </a>
54 54
                   <div

+ 2
- 6
src/components/timeshare/faqPage.vue Visa fil

@@ -3,12 +3,8 @@
3 3
   <section class="collapse-items">
4 4
     <section class="intro-single">
5 5
       <div class="container">
6
-        <div class="row">
7
-          <div class="col-md-12 col-lg-8">
8
-            <div class="title-single-box">
9
-              <h1 class="title-single" style="text-align:left;">Frequently Asked Questions</h1>
10
-            </div>
11
-          </div>
6
+        <div class="title-single-box">
7
+          <h3 class="title-single" style="text-align:left;">Frequently Asked Questions</h3>
12 8
         </div>
13 9
       </div>
14 10
     </section>

+ 53
- 53
src/components/user/loginPage.vue Visa fil

@@ -1,66 +1,64 @@
1 1
 <template>
2 2
   <!-- eslint-disable max-len -->
3
-  <div class="container">
4
-    <div class="goDown"></div>
5
-    <form id="mainForm">
6
-      <div class="form-group row"></div>
7
-      <h4>Login</h4>
8
-      <div class="form-group row"></div>
9
-      <div class="form-group row">
10
-        <div class="offset-md-1 col-md-5">
11
-          <div class="row">
12
-            <div class="col-md-1">
13
-              <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
14
-            </div>
15
-            <div class="col-md-11">
16
-              <input
17
-                class="form-control"
18
-                v-model="username"
19
-                placeholder="Username"
20
-                type="text"
21
-                name="username"
22
-                value
23
-              />
24
-            </div>
25
-          </div>
3
+  <div class="login-page">
4
+    <form id="signIn">
5
+      <div class="form">
6
+        <div>
7
+          <h4>Login</h4>
26 8
         </div>
27
-        <div class="col-md-5">
28
-          <div class="row">
29
-            <div class="col-md-11">
30
-              <input
31
-                class="form-control"
32
-                :type="isPasswordShown"
33
-                v-model="password"
34
-                id="password"
35
-                placeholder="Password"
36
-                name="password"
37
-                value
38
-              />
39
-            </div>
9
+        <div class="row">
10
+          <div>
11
+            <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
12
+          </div>
13
+          <div class="col-md-11">
14
+            <input
15
+              class="form-control"
16
+              v-model="username"
17
+              placeholder="Username"
18
+              type="text"
19
+              name="username"
20
+              value
21
+            />
22
+          </div>
23
+          <div>
40 24
             <eva-icon v-if="!showPassword" name="eye-off" fill="#60CBEB" @click="togglePassword()"></eva-icon>
41 25
             <eva-icon v-else name="eye" fill="#60CBEB" @click="passwordToggled()"></eva-icon>
42 26
           </div>
27
+          <div class="col-md-11">
28
+            <input
29
+              class="form-control"
30
+              :type="isPasswordShown"
31
+              v-model="password"
32
+              id="password"
33
+              placeholder="Password"
34
+              name="password"
35
+              value
36
+            />
37
+          </div>
43 38
         </div>
39
+        <div class="form-group row"></div>
40
+        <button @click="Login" class="btn btn-b-n" type="submit">Sign In</button>
41
+        <p v-if="user !== null">{{ user }}</p>
44 42
       </div>
45
-      <div class="form-group row"></div>
46
-      <eva-icon name="log-in-outline" fill="#60CBEB"></eva-icon>
47
-      <button @click="Login" class="btn btn-b-n">Sign In</button>
48
-      <p v-if="user !== null">{{ user }}</p>
49 43
     </form>
50
-    <br />
51
-    <br />
52
-    <br />
53
-    <form>
54
-      <h5>Trouble signing in?</h5>
55
-      <div class="form-group row"></div>
56
-      <div class="from-group row">
57
-        <div class="col-md-12">
58
-          <input class="form-control" placeholder="Your Email" type="text" name="email" value />
44
+
45
+    <form id="forgot">
46
+      <div class="form">
47
+        <h5>Trouble signing in?</h5>
48
+        <div>
49
+          <div class="row">
50
+            <eva-icon name="email" fill="#60CBEB"></eva-icon>
51
+
52
+            <div class="col-md-11">
53
+              <input class="form-control" placeholder="Your Email" type="text" name="email" value />
54
+            </div>
55
+          </div>
56
+        </div>
57
+        <div class="form-group row"></div>
58
+        <div class="offset-md-3 col-md-5">
59
+          <button class="btn btn-b-n" type="submit">Get Help</button>
59 60
         </div>
60 61
       </div>
61
-      <div class="form-group row"></div>
62
-      <eva-icon name="question-mark-circle-outline" fill="#60CBEB"></eva-icon>
63
-      <button class="btn btn-b-n">Get Help</button>
64 62
     </form>
65 63
   </div>
66 64
 </template>
@@ -81,17 +79,19 @@ export default {
81 79
       textErrors: 'Some error with the field',
82 80
       text: '',
83 81
       showPassword: false,
82
+      password: '',
84 83
     };
85 84
   },
86 85
   methods: {
87 86
     Login() {
88 87
       console.log(this.username + this.password);
89 88
       axios
90
-        .post('http://localhost:57260/api/user', {
89
+        .post('http://localhost:57260/api/register/authenticate', {
91 90
           username: this.username,
92 91
           password: this.password,
93 92
         })
94 93
         .then(response => console.log(response.data));
94
+      this.$router.push('/about/us');
95 95
     },
96 96
     togglePassword() {
97 97
       this.showPassword = true;

+ 86
- 25
src/components/user/registerAgencySection.vue Visa fil

@@ -1,36 +1,97 @@
1 1
 <template>
2 2
   <!-- eslint-disable max-len -->
3
-  <div class="container">
4
-    <div class="goDown"></div>
5
-    <form>
6
-      <div class="from-group row">
7
-        <div class="col-md-12">
8
-          <div class="form-group row"></div>
9
-          <div class="form-group row"></div>
10
-          <h3>Agency Details</h3>
11
-          <div class="form-group row"></div>
12
-          <div class="form-group row">
13
-            <div class="col-md-4">
14
-              <label>Agency Name</label>
15
-              <eva-icon name="people" fill="lightgrey"></eva-icon>
16
-              <input class="form-control" type="text" name="agencyname" value />
3
+  <form method="POST">
4
+    <div class="container" style="text-align:left">
5
+      <div class="reg-page">
6
+        <div class="regform" style="text-align:left">
7
+          <h4>Agency Details</h4>
8
+          <div class="col-md-8" style="margin-bottom: 1em">
9
+            <eva-icon name="people" fill="#60CBEB"></eva-icon>
10
+            <input class="form-control" type="text" name="agencyname" placeholder="Agency Name" />
11
+          </div>
12
+          <div class="col-md-8" style="margin-bottom: 1em">
13
+            <eva-icon name="book" fill="lightgrey"></eva-icon>
14
+            <input
15
+              class="form-control"
16
+              type="text"
17
+              name="eaabffcnumber"
18
+              placeholder="EAAB FFC Number"
19
+            />
20
+          </div>
21
+          <div class="col-md-8">
22
+            <eva-icon name="clipboard" fill="lightgrey"></eva-icon>
23
+            <input
24
+              class="form-control"
25
+              type="text"
26
+              name="companyregnumber"
27
+              placeholder="Company Registration Number"
28
+            />
29
+          </div>
30
+          <hr />
31
+          <div class="col-md-10" style="text-align:left">
32
+            <h5 style="margin-bottom: 1em">Agency Administrator</h5>
33
+            <div class="row" style="text-align:left">
34
+              <div class="col-md-6" style="margin-bottom: 1em">
35
+                <eva-icon name="person" fill="#60CBEB"></eva-icon>
36
+                <input class="form-control" type="text" name="name" placeholder="Name" />
37
+              </div>
38
+              <div class="col-md-6" style="margin-bottom: 1em">
39
+                <eva-icon name="person" fill="#60CBEB"></eva-icon>
40
+                <input class="form-control" type="text" name="surname" placeholder="Surname" />
41
+              </div>
17 42
             </div>
18
-            <div class="col-md-4">
19
-              <label>EAAB FFC Number</label>
20
-              <eva-icon name="book" fill="lightgrey"></eva-icon>
21
-              <input class="form-control" type="text" name="eaabffcnumber" value />
43
+
44
+            <div class="row" style="text-align:left">
45
+              <div class="col-md-8">
46
+                <eva-icon name="email" fill="lightgrey"></eva-icon>
47
+                <input class="form-control" type="text" name="email" placeholder="Email Address" />
48
+                <div class="form-group row"></div>
49
+              </div>
50
+
51
+              <div class="col-md-6" style="text-align:left">
52
+                <eva-icon name="smartphone" fill="lightgrey"></eva-icon>
53
+                <input
54
+                  class="form-control"
55
+                  type="text"
56
+                  name="cellnumber"
57
+                  placeholder="Contact Number"
58
+                />
59
+              </div>
60
+            </div>
61
+            <hr />
62
+            <div class="row">
63
+              <div class="col-md-7" style="margin-bottom: 1em">
64
+                <eva-icon name="person" fill="#60CBEB"></eva-icon>
65
+                <input class="form-control" type="text" name="username" placeholder="Username" />
66
+              </div>
67
+              <div class="col-md-7" style="margin-bottom: 1em">
68
+                <eva-icon name="lock" fill="#60CBEB"></eva-icon>
69
+                <input class="form-control" type="text" name="password" placeholder="Password" />
70
+              </div>
71
+              <div class="col-md-7" style="margin-bottom: 1em">
72
+                <eva-icon name="lock" fill="#60CBEB"></eva-icon>
73
+                <input
74
+                  class="form-control"
75
+                  type="text"
76
+                  name="confirmpassword"
77
+                  placeholder="Confirm Password"
78
+                />
79
+              </div>
80
+            </div>
81
+          </div>
82
+          <div class="form-group row"></div>
83
+          <div class="row offset-md-1">
84
+            <div class="col-md-2">
85
+              <button class="btn btn-b-n" type="submit">Submit</button>
22 86
             </div>
23
-            <div class="col-md-4">
24
-              <label>Company Registration Number</label>
25
-              <eva-icon name="clipboard" fill="lightgrey"></eva-icon>
26
-              <input class="form-control" type="text" name="companyregnumber" value />
87
+            <div class="col-md-2 offset-md-1">
88
+              <button class="btn btn-b-n" type="submit">Cancel</button>
27 89
             </div>
28
-            <RegisterPage :RegisterHeader="111" />
29 90
           </div>
30 91
         </div>
31 92
       </div>
32
-    </form>
33
-  </div>
93
+    </div>
94
+  </form>
34 95
 </template>
35 96
 
36 97
 <script>

+ 59
- 58
src/components/user/registerPage.vue Visa fil

@@ -1,70 +1,71 @@
1 1
 <template>
2
-  <!-- eslint-disable max-len -->
3
-  <div class="container">
4
-    <div class="goDown"></div>
5
-    <form>
6
-      <div class="col-md-12">
7
-        <h3>{{ Header }}</h3>
8
-        <div class="form-group row"></div>
9
-        <div class="form-group row">
10
-          <div class="col-md-6">
11
-            <label>Name</label>
12
-            <eva-icon name="person" fill="#60CBEB"></eva-icon>
13
-            <input class="form-control" type="text" name="name" value />
14
-            <div class="form-group row"></div>
15
-          </div>
16
-          <div class="col-md-6">
17
-            <label>Surname</label>
18
-            <eva-icon name="person" fill="#60CBEB"></eva-icon>
19
-            <input class="form-control" type="text" name="surname" value />
20
-          </div>
21
-        </div>
22
-        <div class="form-group row">
23
-          <div class="col-md-4">
24
-            <label>Email</label>
25
-            <eva-icon name="email" fill="lightgrey"></eva-icon>
26
-            <input class="form-control" type="text" name="email" value />
27
-            <div class="form-group row"></div>
2
+  <form method="POST">
3
+    <!-- eslint-disable max-len -->
4
+    <div class="reg-page">
5
+      <div class="regform">
6
+        <div class="col-md-10" style="text-align:left">
7
+          <h5 style="margin-bottom: 1em">{{ Header }}</h5>
8
+          <div class="row" style="text-align:left">
9
+            <div class="col-md-6" style="margin-bottom: 1em">
10
+              <eva-icon name="person" fill="#60CBEB"></eva-icon>
11
+              <input class="form-control" type="text" name="name" placeholder="Name" />
12
+            </div>
13
+            <div class="col-md-6" style="margin-bottom: 1em">
14
+              <eva-icon name="person" fill="#60CBEB"></eva-icon>
15
+              <input class="form-control" type="text" name="surname" placeholder="Surname" />
16
+            </div>
28 17
           </div>
29
-          <div class="col-md-4">
30
-            <label>Telephone Number</label>
31
-            <eva-icon name="phone" fill="lightgrey"></eva-icon>
32
-            <input class="form-control" type="text" name="telephonenumber" value />
18
+
19
+          <div class="row" style="text-align:left">
20
+            <div class="col-md-8">
21
+              <eva-icon name="email" fill="lightgrey"></eva-icon>
22
+              <input class="form-control" type="text" name="email" placeholder="Email Address" />
23
+              <div class="form-group row"></div>
24
+            </div>
25
+
26
+            <div class="col-md-6" style="text-align:left">
27
+              <eva-icon name="smartphone" fill="lightgrey"></eva-icon>
28
+              <input
29
+                class="form-control"
30
+                type="text"
31
+                name="cellnumber"
32
+                placeholder="Contact Number"
33
+              />
34
+            </div>
33 35
           </div>
34
-          <div class="col-md-4">
35
-            <label>Cell Number</label>
36
-            <eva-icon name="smartphone" fill="lightgrey"></eva-icon>
37
-            <input class="form-control" type="text" name="cellnumber" value />
36
+          <hr />
37
+          <div class="row">
38
+            <div class="col-md-7" style="margin-bottom: 1em">
39
+              <eva-icon name="person" fill="#60CBEB"></eva-icon>
40
+              <input class="form-control" type="text" name="username" placeholder="Username" />
41
+            </div>
42
+            <div class="col-md-7" style="margin-bottom: 1em">
43
+              <eva-icon name="lock" fill="#60CBEB"></eva-icon>
44
+              <input class="form-control" type="text" name="password" placeholder="Password" />
45
+            </div>
46
+            <div class="col-md-7" style="margin-bottom: 1em">
47
+              <eva-icon name="lock" fill="#60CBEB"></eva-icon>
48
+              <input
49
+                class="form-control"
50
+                type="text"
51
+                name="confirmpassword"
52
+                placeholder="Confirm Password"
53
+              />
54
+            </div>
38 55
           </div>
39 56
         </div>
40
-        <div class="form-group row">
41
-          <div class="col-md-4">
42
-            <label>Username</label>
43
-            <eva-icon name="person" fill="#60CBEB"></eva-icon>
44
-            <input class="form-control" type="text" name="username" value />
45
-          </div>
46
-          <div class="col-md-4">
47
-            <label>Password</label>
48
-            <eva-icon name="lock" fill="#60CBEB"></eva-icon>
49
-            <input class="form-control" type="text" name="password" value />
57
+        <div class="form-group row"></div>
58
+        <div class="row offset-md-1">
59
+          <div class="col-md-2">
60
+            <button class="btn btn-b-n" type="submit">Submit</button>
50 61
           </div>
51
-          <div class="col-md-4">
52
-            <label>Confirm Password</label>
53
-            <eva-icon name="lock" fill="#60CBEB"></eva-icon>
54
-            <input class="form-control" type="text" name="confirmpassword" value />
62
+          <div class="col-md-2 offset-md-1">
63
+            <button class="btn btn-b-n" type="submit">Cancel</button>
55 64
           </div>
56 65
         </div>
57 66
       </div>
58
-      <div class="form-group row">
59
-        <div class="col-md-4">
60
-          <button class="btn btn-b-n">Cancel</button>
61
-        </div>
62
-        <div class="col-md-4">
63
-          <button class="btn btn-b-n">Submit</button>
64
-        </div>
65
-      </div>
66
-    </form>
67
-  </div>
67
+    </div>
68
+  </form>
68 69
 </template>
69 70
 
70 71
 <script>

Laddar…
Avbryt
Spara