adrema/resources/js/views/allpayment/VForm.vue

30 lines
677 B
Vue
Raw Normal View History

2021-07-04 22:32:40 +02:00
<template>
<form class="p-6 grid gap-4 justify-start" @submit.prevent="submit">
<f-text id="year" v-model="inner.year" label="Jahr" required></f-text>
2022-12-14 23:20:05 +01:00
<f-switch id="for_promise" label="Versprechen einbeziehen" v-model="inner.for_promise" size="sm"></f-switch>
2021-07-04 22:32:40 +02:00
<button type="submit" class="btn btn-primary">Absenden</button>
</form>
</template>
<script>
export default {
2022-12-14 23:20:05 +01:00
data: function () {
2021-07-04 22:32:40 +02:00
return {
2022-12-14 23:20:05 +01:00
inner: {
for_promise: false,
},
2021-07-04 22:32:40 +02:00
};
},
2022-12-14 23:20:05 +01:00
props: {},
2021-07-04 22:32:40 +02:00
methods: {
submit() {
2022-12-14 23:20:05 +01:00
this.$inertia.post(`/allpayment`, this.inner);
},
},
2021-07-04 22:32:40 +02:00
};
</script>