Lepsi verejna cast, ssr, lepsi prace s fotkamaa
This commit is contained in:
@@ -12,6 +12,12 @@ const props = defineProps({
|
||||
},
|
||||
locations: {
|
||||
type: Array
|
||||
},
|
||||
aircraft: {
|
||||
type: Object
|
||||
},
|
||||
copilots: {
|
||||
type: Array
|
||||
}
|
||||
});
|
||||
|
||||
@@ -20,7 +26,8 @@ const formData = ref({
|
||||
name: "",
|
||||
description: "",
|
||||
pointOfInterest: null,
|
||||
isFlightCover: false
|
||||
copilots: [],
|
||||
isAircraft: false,
|
||||
});
|
||||
|
||||
const setup = (() => {
|
||||
@@ -33,17 +40,27 @@ const setup = (() => {
|
||||
<q-img :src="photo.thumbnailUrl"/>
|
||||
<q-card-section>
|
||||
<FormWrapper :save-button="false">
|
||||
<q-input v-model="formData.name" label="Název" v-bind="commonProps"/>
|
||||
<q-input type="textarea" v-model="formData.description" label="Popis" v-bind="commonProps"/>
|
||||
|
||||
<ComboboxInput
|
||||
:options="locations"
|
||||
v-bind="commonProps"
|
||||
v-model="formData.pointOfInterest"
|
||||
label="POI"
|
||||
label="Místo"
|
||||
/>
|
||||
|
||||
<q-checkbox v-model="formData.isFlightCover" label="Úvodní fotografie k letu?"/>
|
||||
<q-select
|
||||
v-if="copilots.length > 0"
|
||||
:options="copilots"
|
||||
v-model="formData.copilots"
|
||||
v-bind="commonProps"
|
||||
label="Kopiloti"
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
multiple
|
||||
/>
|
||||
|
||||
<q-checkbox v-model="formData.isAircraft" :label="`Letadlo (${aircraft.callSign})`"/>
|
||||
<q-input v-model="formData.name" label="Název" v-bind="commonProps"/>
|
||||
<q-input type="textarea" v-model="formData.description" label="Popis" v-bind="commonProps"/>
|
||||
</FormWrapper>
|
||||
</q-card-section>
|
||||
</DialogWrapper>
|
||||
|
||||
Reference in New Issue
Block a user