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 - s a v e - b u t t o n >
< / 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" >
< f -text label = "Absender" hint = "Absender-Name in Kurzform, i.d.R. der kurze Stammesname" name = "from" id = "from" v-model ="inner.from" > < / f -text >
< f -text label = "Absender (lang)" v-model ="inner.from_long" name="from_long" id="from_long" hint="Absender-Name in Langform, i.d.R. der Stammesname" > < / f -text >
< 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 >
< f -text label = "Straße" v-model ="inner.address" name="address" id="address" > < / f -text >
< f -text label = "PLZ" v-model ="inner.zip" name="zip" id="zip" > < / f -text >
< f -text label = "Ort" v-model ="inner.place" name="place" id="place" > < / f -text >
< f -text label = "E-Mail-Adresse" v-model ="inner.email" name="email" id="email" > < / f -text >
< f -text label = "Telefonnummer" v-model ="inner.mobile" name="mobile" id="mobile" > < / f -text >
< f -text label = "Webseite" v-model ="inner.website" name="website" id="website" > < / f -text >
< f -text label = "IBAN" v-model ="inner.iban" name="iban" id="iban" > < / f -text >
< f -text label = "BIC" v-model ="inner.bic" name="bic" id="bic" > < / f -text >
< / form >
< / s e t t i n g - l a y o u t >
< / p a g e - l a y o u t >
2022-10-20 02:15:28 +02:00
< / template >
< script >
import SettingLayout from './Layout.vue' ;
export default {
data : function ( ) {
return {
2023-06-01 15:02:35 +02:00
inner : { ... this . data } ,
2022-10-20 02:15:28 +02:00
} ;
} ,
props : {
data : { } ,
} ,
methods : {
submit ( ) {
2023-07-06 13:56:19 +02:00
this . $inertia . post ( '/setting/bill' , this . inner , {
onSuccess : ( ) => this . $success ( 'Einstellungen gespeichert.' )
} ) ;
2022-10-20 02:15:28 +02:00
} ,
} ,
2023-06-01 15:02:35 +02:00
components : {
SettingLayout ,
2022-10-20 02:15:28 +02:00
} ,
} ;
< / script >