aboutsummaryrefslogblamecommitdiff
path: root/resources/js/components/reservation.vue
blob: fbb5fdc433145984ccc732d8ef5ac163f7a122fb (plain) (tree)
1
2
3
4
5
6
          
      

                                                                  

                                                              










                                                                                         


                                                           

         



                
                                

                   
                                                                

     

         








                              
<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>