aboutsummaryrefslogtreecommitdiff
path: root/resources/js/components/reservation.vue
blob: fbb5fdc433145984ccc732d8ef5ac163f7a122fb (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
35
36
37
38
39
40
41
42
43
<template>
  <tr>
    <td class="align-middle text-center">{{ reservation.id }}</td>
    <td class="align-middle text-center">
      <input type="checkbox" :checked="reservation.approved"/>
    </td>
    <td class="align-middle"><input type="text" v-model="reservation.operatorCall"></td>
    <td class="align-middle"><input type="text" v-model="reservation.qso"></td>
    <td class="align-middle"><input type="text" v-model="reservation.fromTime"></td>
    <td class="align-middle"><input type="text" v-model="reservation.toTime"></td>
    <td class="align-middle"><input type="text" v-model="reservation.specialCall"></td>
    <td class="align-middle"><input type="text" v-model="reservation.frequencies"></td>
    <td class="align-middle"><input type="text" v-model="reservation.modes"></td>
    <td class="align-middle"><input type="text" v-model="reservation.operatorName"></td>
    <td class="align-middle"><input type="text" v-model="reservation.operatorEmail"></td>
    <td class="align-middle"><input type="text" v-model="reservation.operatorCall"></td>
    <td class="align-middle">
      <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[this.reservationIndex];
    }
  }
}
</script>

<style scoped>
input {
  background-color: white;
  border: 1px solid lightgray;
  border-radius: 3px;
  padding: 0.2em;
}
</style>