diff options
author | Mateja <mail@matejamaric.com> | 2021-03-17 12:59:27 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-03-17 12:59:27 +0100 |
commit | 294146dd14c412e0cd6c715685bcbce0ff92b865 (patch) | |
tree | b6a8425c84df58393807b262168c1bf82ae73fea /resources/js/components/reservation.vue | |
parent | 4e6fa681c3f8f01a44a3446f80524842a4f42274 (diff) | |
download | yota-laravel-294146dd14c412e0cd6c715685bcbce0ff92b865.tar.gz yota-laravel-294146dd14c412e0cd6c715685bcbce0ff92b865.zip |
Started work on reservation components.
Diffstat (limited to 'resources/js/components/reservation.vue')
-rw-r--r-- | resources/js/components/reservation.vue | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/resources/js/components/reservation.vue b/resources/js/components/reservation.vue index 48e54f5..1e04c89 100644 --- a/resources/js/components/reservation.vue +++ b/resources/js/components/reservation.vue @@ -1,9 +1,34 @@ <template> - + <tr> + <td>{{ reservation.id }}</td> + <td> + <input type="checkbox" :checked="reservation.approved"/> + </td> + <td contenteditable="true">{{ reservation.operatorCall }}</td> + <td contenteditable="true">{{ reservation.qso }}</td> + <td contenteditable="true">{{ reservation.fromTime }}</td> + <td contenteditable="true">{{ reservation.toTime }}</td> + <td contenteditable="true">{{ reservation.specialCall }}</td> + <td contenteditable="true">{{ reservation.frequencies }}</td> + <td contenteditable="true">{{ reservation.modes }}</td> + <td contenteditable="true">{{ reservation.operatorName }}</td> + <td contenteditable="true">{{ reservation.operatorEmail }}</td> + <td contenteditable="true">{{ reservation.operatorCall }}</td> + <td> + <button class="btn btn-primary mr-2">Update</button>; + <button class="btn btn-warning mr-2">Restore</button>; + <button class="btn btn-danger">Delete</button>; + </td> + </tr> </template> <script> export default { - + props: ['reservationIndex'], + computed: { + reservation() { + return this.$store.getters.getData[reservationIndex]; + } + } } </script> |