Prepracovana prace s datem, lepsi input na datetime
This commit is contained in:
@@ -8,7 +8,7 @@ import {isRequired} from "src/composables/form/rules";
|
||||
|
||||
const formData = reactive({
|
||||
id: null,
|
||||
name: "",
|
||||
callSign: "",
|
||||
model: "",
|
||||
manufacturer: "",
|
||||
description: "",
|
||||
@@ -22,7 +22,7 @@ const props = defineProps({
|
||||
});
|
||||
|
||||
const rules = {
|
||||
name: [
|
||||
callSign: [
|
||||
v => isRequired(v)
|
||||
],
|
||||
};
|
||||
@@ -35,11 +35,10 @@ onMounted(() => {
|
||||
|
||||
<template>
|
||||
<FormWrapper v-model="formData">
|
||||
<q-input type="text" :rules="rules.name" v-model="formData.name" label="Volací značka"/>
|
||||
<q-input type="text" :rules="rules.callSign" v-model="formData.callSign" label="Volací značka"/>
|
||||
<q-input type="text" v-model="formData.model" label="Model"/>
|
||||
<q-input type="text" v-model="formData.manufacturer" label="Výrobce"/>
|
||||
<q-input type="textarea" v-model="formData.description" label="Popis" />
|
||||
<q-file v-model="formData.photo" label="Avatar" />
|
||||
|
||||
</FormWrapper>
|
||||
</template>
|
||||
|
||||
@@ -24,7 +24,7 @@ const props = defineProps({
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label label>
|
||||
{{ aircraft.name }}
|
||||
{{ aircraft.callSign }}
|
||||
</q-item-label>
|
||||
<q-item-label caption>
|
||||
{{ aircraft.model }}
|
||||
|
||||
Reference in New Issue
Block a user