web: add initial date picker
This commit is contained in:
parent
67ce6b4430
commit
2d0b305b11
1 changed files with 18 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue