2022-10-20 02:15:28 +02:00
|
|
|
<template>
|
2023-06-01 15:02:35 +02:00
|
|
|
<page-layout>
|
2023-07-06 13:56:19 +02:00
|
|
|
<template #right>
|
|
|
|
<f-save-button form="billsettingform"></f-save-button>
|
|
|
|
</template>
|
2023-06-01 15:02:35 +02:00
|
|
|
<setting-layout>
|
|
|
|
<form id="billsettingform" class="grow p-6 grid grid-cols-2 gap-3 items-start content-start" @submit.prevent="submit">
|
2024-06-28 12:43:05 +02:00
|
|
|
<f-text id="from" v-model="inner.from" label="Absender" hint="Absender-Name in Kurzform, i.d.R. der kurze Stammesname"></f-text>
|
|
|
|
<f-text id="from_long" v-model="inner.from_long" label="Absender (lang)" hint="Absender-Name in Langform, i.d.R. der Stammesname"></f-text>
|
2023-06-01 15:02:35 +02:00
|
|
|
<h2 class="text-lg font-semibold text-gray-300 col-span-2 mt-5">Kontaktdaten</h2>
|
|
|
|
<div class="col-span-2 text-gray-300 text-sm">Diese Kontaktdaten stehen im Absender-Bereich auf der Rechnung.</div>
|
2024-06-28 12:43:05 +02:00
|
|
|
<f-text id="address" v-model="inner.address" label="Straße"></f-text>
|
|
|
|
<f-text id="zip" v-model="inner.zip" label="PLZ"></f-text>
|
|
|
|
<f-text id="place" v-model="inner.place" label="Ort"></f-text>
|
|
|
|
<f-text id="email" v-model="inner.email" label="E-Mail-Adresse"></f-text>
|
|
|
|
<f-text id="mobile" v-model="inner.mobile" label="Telefonnummer"></f-text>
|
|
|
|
<f-text id="website" v-model="inner.website" label="Webseite"></f-text>
|
|
|
|
<f-text id="iban" v-model="inner.iban" label="IBAN"></f-text>
|
|
|
|
<f-text id="bic" v-model="inner.bic" label="BIC"></f-text>
|
2023-06-01 15:02:35 +02:00
|
|
|
</form>
|
|
|
|
</setting-layout>
|
|
|
|
</page-layout>
|
2022-10-20 02:15:28 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import SettingLayout from './Layout.vue';
|
|
|
|
|
|
|
|
export default {
|
2024-06-28 12:43:05 +02:00
|
|
|
components: {
|
|
|
|
SettingLayout,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
data: {},
|
|
|
|
},
|
2022-10-20 02:15:28 +02:00
|
|
|
data: function () {
|
|
|
|
return {
|
2023-06-01 15:02:35 +02:00
|
|
|
inner: {...this.data},
|
2022-10-20 02:15:28 +02:00
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
submit() {
|
2023-07-06 13:56:19 +02:00
|
|
|
this.$inertia.post('/setting/bill', this.inner, {
|
2024-06-28 12:43:05 +02:00
|
|
|
onSuccess: () => this.$success('Einstellungen gespeichert.'),
|
2023-07-06 13:56:19 +02:00
|
|
|
});
|
2022-10-20 02:15:28 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|