|
Last change
on this file since 17db9d2 was ff641e1, checked in by Ljubomir Ilievski <ilievski.ljubomir@…>, 9 months ago |
|
Sredeno so inicijalnite fechovi
|
-
Property mode
set to
100644
|
|
File size:
1.7 KB
|
| Line | |
|---|
| 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 |
|
|---|
| 26 |
|
|---|
| 27 | </script>
|
|---|
| 28 |
|
|---|
| 29 | <template>
|
|---|
| 30 | <div class="container-xxl">
|
|---|
| 31 | <div class="row justify-content-center">
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | <div class="col-3">
|
|---|
| 35 | <form v-bind:action="url+path" method="POST">
|
|---|
| 36 | <label for="name" class="form-label" >Name</label>
|
|---|
| 37 | <input type="text" id="name" name="firstName" class="form-control" placeholder="Name" required>
|
|---|
| 38 |
|
|---|
| 39 | <label for="surname" class="form-label">Surname</label>
|
|---|
| 40 | <input type="text" id="surname" name="lastName" class="form-control" placeholder="Surname" required>
|
|---|
| 41 |
|
|---|
| 42 | <label for="phone_number" class="form-label">Phone Number</label>
|
|---|
| 43 | <input type="text" id="phone_number" name="phoneNumber" class="form-control" required>
|
|---|
| 44 |
|
|---|
| 45 | <label for="email" class="form-label">Email Address</label>
|
|---|
| 46 | <input type="email" id="email" name="email" class="form-control" placeholder="someone@example.com" required>
|
|---|
| 47 |
|
|---|
| 48 | <label for="password" class="form-label">Password</label>
|
|---|
| 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>
|
|---|
| 61 |
|
|---|
| 62 | <button type="submit" class="btn btn-dark">Register</button>
|
|---|
| 63 | </form>
|
|---|
| 64 | </div>
|
|---|
| 65 |
|
|---|
| 66 | </div>
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | </div>
|
|---|
| 70 |
|
|---|
| 71 | </template>
|
|---|
| 72 |
|
|---|
| 73 | <style scoped>
|
|---|
| 74 |
|
|---|
| 75 | </style>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.