aboutsummaryrefslogtreecommitdiff
path: root/resources/js/components/reservation.vue
blob: 1e04c89f700f5fd39771c6e0a3ec03be49547b52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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>