web: add initial date picker

This commit is contained in:
Mika Bomm 2024-07-10 12:44:40 +02:00
parent 67ce6b4430
commit 2d0b305b11

View file

@ -36,12 +36,24 @@
></v-text-field>
<div>
<div class="mb-2">
<v-btn prepend-icon stacked variant="outlined">
<CalendarCheck/>
</v-btn>
<v-menu>
<template v-slot:activator="{ props }">
<v-text-field
v-bind="props"
label="Start Date (optional)"
variant="outlined"
v-model="addStartDate"
>
</v-text-field>
</template>
<v-date-picker
v-modle="addStartDate"
></v-date-picker>
</v-menu>
</div>
<div class="mb-5">
<v-btn prepend-icon stacked variant="outlined">
<v-btn stacked variant="outlined">
<CalendarX/>
</v-btn>
</div>
@ -127,6 +139,8 @@ const addLicenseName = ref('');
const addAmount = ref('');
const addNotes = ref('');
// Date Picker
const addStartDate = ref(new Date().toISOString().substr(0, 10));
</script>