- Timestamp:
- 01/24/25 00:22:25 (3 months ago)
- Branches:
- master
- Children:
- 34aa6cc
- Parents:
- d10a9aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/components/Project/register_.vue
rd10a9aa rff641e1 1 <script setup> 1 <script> 2 3 4 export default { 5 data() { 6 return { 7 path: '', 8 url: 'http://localhost:8080/api/auth/register/', 9 10 } 11 }, 12 13 methods: { 14 15 }, 16 /*computed: { 17 somevariabletest(){ 18 return this.url+this.path; 19 } 20 }*/ 21 22 23 } 24 25 2 26 3 27 </script> … … 9 33 10 34 <div class="col-3"> 11 <form action="" method="POST">35 <form v-bind:action="url+path" method="POST"> 12 36 <label for="name" class="form-label" >Name</label> 13 <input type="text" id="name" name=" name" class="form-control" placeholder="Name" required>37 <input type="text" id="name" name="firstName" class="form-control" placeholder="Name" required> 14 38 15 39 <label for="surname" class="form-label">Surname</label> 16 <input type="text" id="surname" name=" surname" class="form-control" placeholder="Surname" required>40 <input type="text" id="surname" name="lastName" class="form-control" placeholder="Surname" required> 17 41 18 42 <label for="phone_number" class="form-label">Phone Number</label> 19 <input type="text" id="phone_number" name="phone -number" class="form-control" required>43 <input type="text" id="phone_number" name="phoneNumber" class="form-control" required> 20 44 21 45 <label for="email" class="form-label">Email Address</label> … … 24 48 <label for="password" class="form-label">Password</label> 25 49 <input type="password" id="password" name="password" class="form-control"> 50 51 <label for="role" class="form-label">Role</label> 52 <select class="form-control" id="role" v-model="path"> 53 54 <option value="customer">Customer</option> 55 56 <option value="local-worker">Local Worker</option> 57 58 <option value="local-manager">Local Manager</option> 59 60 </select> 26 61 27 62 <button type="submit" class="btn btn-dark">Register</button>
Note:
See TracChangeset
for help on using the changeset viewer.