Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Add custom themed datetime picker modal with calendar and time selection
Murtaza Nasirfc7ae224d281
diff --git a/static/css/styles.css b/static/css/styles.cssindex fa408e1f..c45e4aeb 100644--- a/static/css/styles.css+++ b/static/css/styles.css@@ -3747,8 +3747,8 @@ select {background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M4.5 5.5L8 9l3.5-3.5L10.75 4.75 8 7.5 5.25 4.75z'/%3E%3C/svg%3E");background-repeat: no-repeat;background-position: right 0.5rem center;- background-size: 1.5em 1.5em;- padding-right: 2.5rem;+ background-size: 1em 1em;+ padding-right: 2rem;cursor: pointer;transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;}diff --git a/static/js/app.modular.js b/static/js/app.modular.jsindex 43b62cb1..2302af37 100644--- a/static/js/app.modular.js+++ b/static/js/app.modular.js@@ -270,6 +270,17 @@ document.addEventListener('DOMContentLoaded', async () => {const voiceSuggestions = ref({});const loadingVoiceSuggestions = ref(false);+ // --- DateTime Picker State ---+ const showDateTimePicker = ref(false);+ const pickerMonth = ref(new Date().getMonth());+ const pickerYear = ref(new Date().getFullYear());+ const pickerHour = ref(12);+ const pickerMinute = ref(0);+ const pickerAmPm = ref('PM');+ const pickerSelectedDate = ref(null);+ const dateTimePickerTarget = ref(null);+ const dateTimePickerCallback = ref(null);+// --- Transcript Editing State ---const editingSegmentIndex = ref(null);const editingSpeakerIndex = ref(null);@@ -448,6 +459,10 @@ document.addEventListener('DOMContentLoaded', async () => {speakerMap, modalSpeakers, speakerDisplayMap, regenerateSummaryAfterSpeakerUpdate, speakerSuggestions,loadingSuggestions, activeSpeakerInput, voiceSuggestions, loadingVoiceSuggestions,+ // DateTime Picker+ showDateTimePicker, pickerMonth, pickerYear, pickerHour, pickerMinute,+ pickerAmPm, pickerSelectedDate, dateTimePickerTarget, dateTimePickerCallback,+// Transcript EditingeditingSegmentIndex, editingSpeakerIndex, showEditTextModal, editedText,showAddSpeakerModal, newSpeakerName, newSpeakerIsMe, newSpeakerSuggestions,diff --git a/static/js/modules/composables/modals.js b/static/js/modules/composables/modals.jsindex 555911e0..5dae37d5 100644--- a/static/js/modules/composables/modals.js+++ b/static/js/modules/composables/modals.js@@ -12,10 +12,14 @@ export function useModals(state, utils) {showShareDeleteModal, showUnifiedShareModal, showColorSchemeModal,showSystemAudioHelpModal, editingRecording, recordingToDelete, recordingToReset,selectedRecording, recordings, selectedNewTagId, tagSearchFilter,- availableTags, currentView, totalRecordings, toasts, uploadQueue, allJobs+ availableTags, currentView, totalRecordings, toasts, uploadQueue, allJobs,+ // DateTime picker state+ showDateTimePicker, pickerMonth, pickerYear, pickerHour, pickerMinute,+ pickerAmPm, pickerSelectedDate, dateTimePickerTarget, dateTimePickerCallback} = state;const { showToast, setGlobalError } = utils;+ const { computed } = Vue;// =========================================// Edit Recording Modal@@ -307,6 +311,297 @@ export function useModals(state, utils) {const editRecording = openEditModal;const editRecordingTags = openEditTagsModal;+ // =========================================+ // DateTime Picker+ // =========================================++ const monthNames = ['January', 'February', 'March', 'April', 'May', 'June',+ 'July', 'August', 'September', 'October', 'November', 'December'];+ const dayNames = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];++ // Generate available years (10 years before and after current year)+ const availableYears = computed(() => {+ const currentYear = new Date().getFullYear();+ const years = [];+ for (let y = currentYear - 10; y <= currentYear + 10; y++) {+ years.push(y);+ }+ return years;+ });++ // Generate hours for 12-hour format+ const hours12 = computed(() => {+ const hours = [];+ for (let h = 1; h <= 12; h++) {+ hours.push({ value: h, label: h.toString() });+ }+ return hours;+ });++ // Generate minutes+ const minutes = computed(() => {+ const mins = [];+ for (let m = 0; m < 60; m++) {+ mins.push(m);+ }+ return mins;+ });++ // Generate calendar days for current month view+ const calendarDays = computed(() => {+ const days = [];+ const year = pickerYear.value;+ const month = pickerMonth.value;++ // First day of the month+ const firstDay = new Date(year, month, 1);+ const startingDay = firstDay.getDay();++ // Last day of the month+ const lastDay = new Date(year, month + 1, 0);+ const totalDays = lastDay.getDate();++ // Previous month days to fill the grid+ const prevMonthLastDay = new Date(year, month, 0).getDate();+ for (let i = startingDay - 1; i >= 0; i--) {+ days.push({+ day: prevMonthLastDay - i,+ date: new Date(year, month - 1, prevMonthLastDay - i),+ inMonth: false,+ isToday: false,+ isSelected: false+ });+ }++ // Current month days+ const today = new Date();+ for (let d = 1; d <= totalDays; d++) {+ const date = new Date(year, month, d);+ const isToday = date.toDateString() === today.toDateString();+ const isSelected = pickerSelectedDate.value &&+ date.toDateString() === pickerSelectedDate.value.toDateString();+ days.push({+ day: d,+ date: date,+ inMonth: true,+ isToday: isToday,+ isSelected: isSelected+ });+ }++ // Next month days to fill the grid (6 rows * 7 days = 42 total)+ const remainingDays = 42 - days.length;+ for (let d = 1; d <= remainingDays; d++) {+ days.push({+ day: d,+ date: new Date(year, month + 1, d),+ inMonth: false,+ isToday: false,+ isSelected: false+ });+ }++ return days;+ });++ const openDateTimePicker = (target, currentValue, callback) => {+ dateTimePickerTarget.value = target;+ dateTimePickerCallback.value = callback;++ // Parse current value if exists+ if (currentValue) {+ const date = new Date(currentValue);+ if (!isNaN(date.getTime())) {+ pickerSelectedDate.value = date;+ pickerMonth.value = date.getMonth();+ pickerYear.value = date.getFullYear();++ let hours = date.getHours();+ const ampm = hours >= 12 ? 'PM' : 'AM';+ hours = hours % 12;+ hours = hours === 0 ? 12 : hours;++ pickerHour.value = hours;+ pickerMinute.value = date.getMinutes();+ pickerAmPm.value = ampm;+ } else {+ setPickerToNow();+ }+ } else {+ setPickerToNow();+ }++ showDateTimePicker.value = true;+ };++ const setPickerToNow = () => {+ const now = new Date();+ pickerSelectedDate.value = now;+ pickerMonth.value = now.getMonth();+ pickerYear.value = now.getFullYear();++ let hours = now.getHours();+ const ampm = hours >= 12 ? 'PM' : 'AM';+ hours = hours % 12;+ hours = hours === 0 ? 12 : hours;++ pickerHour.value = hours;+ pickerMinute.value = now.getMinutes();+ pickerAmPm.value = ampm;+ };++ const closeDateTimePicker = () => {+ showDateTimePicker.value = false;+ dateTimePickerTarget.value = null;+ dateTimePickerCallback.value = null;+ };++ const prevMonth = () => {+ if (pickerMonth.value === 0) {+ pickerMonth.value = 11;+ pickerYear.value--;+ } else {+ pickerMonth.value--;+ }+ };++ const nextMonth = () => {+ if (pickerMonth.value === 11) {+ pickerMonth.value = 0;+ pickerYear.value++;+ } else {+ pickerMonth.value++;+ }+ };++ const updatePickerView = () => {+ // Called when month/year dropdowns change+ // The computed calendarDays will automatically update+ };++ const selectDate = (date) => {+ pickerSelectedDate.value = date;+ };++ const setToNow = () => {+ setPickerToNow();+ };++ const setToToday = () => {+ const today = new Date();+ pickerSelectedDate.value = today;+ pickerMonth.value = today.getMonth();+ pickerYear.value = today.getFullYear();+ // Keep the current time+ };++ const clearDateTime = () => {+ pickerSelectedDate.value = null;+ const now = new Date();+ pickerMonth.value = now.getMonth();+ pickerYear.value = now.getFullYear();+ pickerHour.value = 12;+ pickerMinute.value = 0;+ pickerAmPm.value = 'PM';+ };++ const formatPickerPreview = () => {+ if (!pickerSelectedDate.value) return '';++ const date = pickerSelectedDate.value;+ const monthName = monthNames[date.getMonth()];+ const day = date.getDate();+ const year = date.getFullYear();++ const hour = pickerHour.value;+ const minute = pickerMinute.value.toString().padStart(2, '0');+ const ampm = pickerAmPm.value;++ return `${monthName} ${day}, ${year} at ${hour}:${minute} ${ampm}`;+ };++ const applyDateTime = () => {+ if (!pickerSelectedDate.value) {+ // If no date selected, just close+ closeDateTimePicker();+ return;+ }++ // Build the full datetime+ const date = new Date(pickerSelectedDate.value);+ let hours = pickerHour.value;++ // Convert 12-hour to 24-hour+ if (pickerAmPm.value === 'AM') {+ hours = hours === 12 ? 0 : hours;+ } else {+ hours = hours === 12 ? 12 : hours + 12;+ }++ date.setHours(hours);+ date.setMinutes(pickerMinute.value);+ date.setSeconds(0);+ date.setMilliseconds(0);++ // Format as ISO string for storage (YYYY-MM-DDTHH:mm:ss)+ const isoString = date.toISOString().slice(0, 19);++ // Call the callback with the result+ if (dateTimePickerCallback.value) {+ dateTimePickerCallback.value(isoString, date);+ }++ closeDateTimePicker();+ };++ // Helper to open datetime picker for meeting date+ const openMeetingDatePicker = () => {+ if (!selectedRecording.value) return;++ openDateTimePicker(+ 'meeting_date',+ selectedRecording.value.meeting_date,+ (isoString) => {+ selectedRecording.value.meeting_date = isoString;+ // Auto-save the change+ saveInlineMeetingDate();+ }+ );+ };++ // Save meeting date inline (similar to other inline edits)+ const saveInlineMeetingDate = async () => {+ if (!selectedRecording.value) return;++ const fullPayload = {+ id: selectedRecording.value.id,+ title: selectedRecording.value.title,+ participants: selectedRecording.value.participants,+ notes: selectedRecording.value.notes,+ summary: selectedRecording.value.summary,+ meeting_date: selectedRecording.value.meeting_date+ };++ try {+ const csrfTokenValue = document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');+ const response = await fetch('/save', {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ 'X-CSRFToken': csrfTokenValue+ },+ body: JSON.stringify(fullPayload)+ });++ const data = await response.json();+ if (!response.ok) throw new Error(data.error || 'Failed to save meeting date');++ showToast('Meeting date updated!', 'fa-calendar-check');+ } catch (error) {+ showToast(`Failed to save: ${error.message}`, 'fa-exclamation-circle', 3000, 'error');+ }+ };+return {// Edit modalopenEditModal,@@ -339,6 +634,26 @@ export function useModals(state, utils) {closeSystemAudioHelpModal,// Toast- dismissToast+ dismissToast,++ // DateTime picker+ monthNames,+ dayNames,+ availableYears,+ hours12,+ minutes,+ calendarDays,+ openDateTimePicker,+ closeDateTimePicker,+ prevMonth,+ nextMonth,+ updatePickerView,+ selectDate,+ setToNow,+ setToToday,+ clearDateTime,+ formatPickerPreview,+ applyDateTime,+ openMeetingDatePicker};}diff --git a/static/js/modules/state/modals.js b/static/js/modules/state/modals.jsindex c0634b07..cf97ef95 100644--- a/static/js/modules/state/modals.js+++ b/static/js/modules/state/modals.js@@ -20,6 +20,17 @@ export function createModalState(ref, reactive) {const showAddSpeakerModal = ref(false);const showShareDeleteModal = ref(false);const showUnifiedShareModal = ref(false);+ const showDateTimePicker = ref(false);++ // --- DateTime Picker State ---+ const pickerMonth = ref(new Date().getMonth());+ const pickerYear = ref(new Date().getFullYear());+ const pickerHour = ref(12);+ const pickerMinute = ref(0);+ const pickerAmPm = ref('PM');+ const pickerSelectedDate = ref(null);+ const dateTimePickerTarget = ref(null); // 'meeting_date' or other field name+ const dateTimePickerCallback = ref(null); // callback function after applying// --- Modal Data State ---const selectedNewTagId = ref('');@@ -102,6 +113,17 @@ export function createModalState(ref, reactive) {showAddSpeakerModal,showShareDeleteModal,showUnifiedShareModal,+ showDateTimePicker,++ // DateTime picker+ pickerMonth,+ pickerYear,+ pickerHour,+ pickerMinute,+ pickerAmPm,+ pickerSelectedDate,+ dateTimePickerTarget,+ dateTimePickerCallback,// Modal dataselectedNewTagId,diff --git a/templates/components/detail/desktop-header.html b/templates/components/detail/desktop-header.htmlindex d6b00c17..7685578c 100644--- a/templates/components/detail/desktop-header.html+++ b/templates/components/detail/desktop-header.html@@ -155,17 +155,10 @@<!-- Meeting Date --><div class="flex items-center gap-2"><i class="fas fa-calendar text-[var(--text-accent)]"></i>- <span v-if="!editingMeetingDate"- @click="toggleEditMeetingDate"+ <span @click="openMeetingDatePicker"class="cursor-pointer hover:text-[var(--text-accent)] transition-colors">${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'}</span>- <input v-else- v-model="selectedRecording.meeting_date"- @blur="toggleEditMeetingDate"- @keyup.enter="toggleEditMeetingDate"- type="date"- class="bg-transparent border-b border-[var(--border-secondary)] focus:border-[var(--border-focus)] outline-none px-1"></div><!-- Other Metadata -->diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.htmlindex 90670f45..b5cdd477 100644--- a/templates/components/detail/mobile-header.html+++ b/templates/components/detail/mobile-header.html@@ -73,9 +73,9 @@<div v-if="isMetadataExpanded" class="mt-4 space-y-4"><div class="space-y-2 text-sm text-[var(--text-muted)]"><div class="flex flex-wrap items-center gap-x-4 gap-y-2">- <div class="flex items-center gap-2">+ <div class="flex items-center gap-2" @click.stop="openMeetingDatePicker"><i class="fas fa-calendar text-[var(--text-accent)]"></i>- <span>${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'}</span>+ <span class="cursor-pointer hover:text-[var(--text-accent)] transition-colors">${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'}</span></div><div v-if="selectedRecording.is_shared" class="flex items-center gap-2"><i class="fas fa-user text-[var(--text-accent)]"></i>diff --git a/templates/index.html b/templates/index.htmlindex 8b3ded8c..06c62276 100644--- a/templates/index.html+++ b/templates/index.html@@ -82,8 +82,10 @@{% include 'components/progress-popup.html' %}<!-- Modals -->+ {% include 'modals/edit-modal.html' %}{% include 'modals/delete-modal.html' %}{% include 'modals/edit-tags-modal.html' %}+ {% include 'modals/datetime-picker-modal.html' %}{% include 'modals/shares-list-modal.html' %}{% include 'modals/reset-modal.html' %}{% include 'modals/reprocess-modal.html' %}diff --git a/templates/modals/datetime-picker-modal.html b/templates/modals/datetime-picker-modal.htmlnew file mode 100644index 00000000..da79bbfa--- /dev/null+++ b/templates/modals/datetime-picker-modal.html@@ -0,0 +1,132 @@+<!-- DateTime Picker Modal -->+<div v-if="showDateTimePicker" @click.self="closeDateTimePicker" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">+ <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-sm overflow-hidden">+ <!-- Header -->+ <div class="p-4 border-b border-[var(--border-primary)] bg-[var(--bg-tertiary)]">+ <div class="flex items-center justify-between">+ <h3 class="text-lg font-semibold text-[var(--text-primary)]">+ <i class="fas fa-calendar-alt mr-2 text-[var(--text-accent)]"></i>+ Select Date & Time+ </h3>+ <button @click="closeDateTimePicker" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors p-1">+ <i class="fas fa-times text-lg"></i>+ </button>+ </div>+ </div>++ <!-- Calendar Section -->+ <div class="p-4">+ <!-- Month/Year Navigation -->+ <div class="flex items-center justify-between mb-4">+ <button @click="prevMonth" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">+ <i class="fas fa-chevron-left"></i>+ </button>+ <div class="flex items-center gap-2">+ <select v-model="pickerMonth" @change="updatePickerView"+ class="pl-3 pr-8 py-1.5 border border-[var(--border-secondary)] rounded-lg text-sm bg-[var(--bg-input)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">+ <option v-for="(month, index) in monthNames" :key="index" :value="index">${month}</option>+ </select>+ <select v-model="pickerYear" @change="updatePickerView"+ class="pl-3 pr-8 py-1.5 border border-[var(--border-secondary)] rounded-lg text-sm bg-[var(--bg-input)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">+ <option v-for="year in availableYears" :key="year" :value="year">${year}</option>+ </select>+ </div>+ <button @click="nextMonth" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">+ <i class="fas fa-chevron-right"></i>+ </button>+ </div>++ <!-- Day Names Header -->+ <div class="grid grid-cols-7 gap-1 mb-2">+ <div v-for="day in dayNames" :key="day" class="text-center text-xs font-medium text-[var(--text-muted)] py-1">+ ${day}+ </div>+ </div>++ <!-- Calendar Grid -->+ <div class="grid grid-cols-7 gap-1">+ <button v-for="(day, index) in calendarDays" :key="index"+ @click="day.inMonth ? selectDate(day.date) : null"+ :disabled="!day.inMonth"+ :class="[+ 'aspect-square flex items-center justify-center rounded-lg text-sm transition-all',+ day.inMonth ? 'hover:bg-[var(--bg-tertiary)]' : 'opacity-30 cursor-default',+ day.isSelected ? 'bg-[var(--text-accent)] text-white font-bold' : '',+ day.isToday && !day.isSelected ? 'ring-2 ring-[var(--text-accent)] ring-inset' : '',+ day.inMonth && !day.isSelected ? 'text-[var(--text-primary)]' : ''+ ]">+ ${day.day}+ </button>+ </div>++ <!-- Time Selection -->+ <div class="mt-4 pt-4 border-t border-[var(--border-secondary)]">+ <label class="block text-sm font-medium text-[var(--text-muted)] mb-2">+ <i class="fas fa-clock mr-1"></i> Time+ </label>+ <div class="flex items-center justify-center gap-2">+ <select v-model="pickerHour"+ class="pl-3 pr-8 py-2 border border-[var(--border-secondary)] rounded-lg bg-[var(--bg-input)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">+ <option v-for="h in hours12" :key="h.value" :value="h.value">${h.label}</option>+ </select>+ <span class="text-xl font-bold text-[var(--text-muted)]">:</span>+ <select v-model="pickerMinute"+ class="pl-3 pr-8 py-2 border border-[var(--border-secondary)] rounded-lg bg-[var(--bg-input)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">+ <option v-for="m in minutes" :key="m" :value="m">${m.toString().padStart(2, '0')}</option>+ </select>+ <select v-model="pickerAmPm"+ class="pl-3 pr-8 py-2 border border-[var(--border-secondary)] rounded-lg bg-[var(--bg-input)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">+ <option value="AM">AM</option>+ <option value="PM">PM</option>+ </select>+ </div>+ </div>++ <!-- Quick Time Presets -->+ <div class="mt-3 flex flex-wrap gap-1.5 justify-center">+ <button @click="pickerHour = 9; pickerMinute = 0; pickerAmPm = 'AM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">9 AM</button>+ <button @click="pickerHour = 10; pickerMinute = 0; pickerAmPm = 'AM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">10 AM</button>+ <button @click="pickerHour = 11; pickerMinute = 0; pickerAmPm = 'AM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">11 AM</button>+ <button @click="pickerHour = 12; pickerMinute = 0; pickerAmPm = 'PM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">12 PM</button>+ <button @click="pickerHour = 1; pickerMinute = 0; pickerAmPm = 'PM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">1 PM</button>+ <button @click="pickerHour = 2; pickerMinute = 0; pickerAmPm = 'PM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">2 PM</button>+ <button @click="pickerHour = 3; pickerMinute = 0; pickerAmPm = 'PM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">3 PM</button>+ <button @click="pickerHour = 4; pickerMinute = 0; pickerAmPm = 'PM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">4 PM</button>+ <button @click="pickerHour = 5; pickerMinute = 0; pickerAmPm = 'PM'" class="px-2 py-1 text-xs bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded hover:bg-[var(--bg-input)] hover:text-[var(--text-primary)] transition-colors">5 PM</button>+ </div>++ <!-- Quick Actions -->+ <div class="mt-3 flex flex-wrap gap-2 justify-center">+ <button @click="setToNow" class="px-3 py-1.5 text-xs bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-lg hover:bg-[var(--bg-input)] transition-colors">+ <i class="fas fa-bolt mr-1"></i> Now+ </button>+ <button @click="setToToday" class="px-3 py-1.5 text-xs bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-lg hover:bg-[var(--bg-input)] transition-colors">+ <i class="fas fa-calendar-day mr-1"></i> Today+ </button>+ <button @click="clearDateTime" class="px-3 py-1.5 text-xs bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-lg hover:bg-[var(--bg-input)] transition-colors">+ <i class="fas fa-eraser mr-1"></i> Clear+ </button>+ </div>+ </div>++ <!-- Footer -->+ <div class="p-4 border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)]">+ <div class="text-sm text-[var(--text-muted)] mb-3 text-center">+ <span v-if="pickerSelectedDate" class="font-medium text-[var(--text-primary)]">+ ${formatPickerPreview()}+ </span>+ <span v-else class="italic">No date selected</span>+ </div>+ <div class="flex gap-2 justify-end">+ <button @click="closeDateTimePicker"+ class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-secondary)] rounded-lg transition-colors">+ Cancel+ </button>+ <button @click="applyDateTime"+ class="px-4 py-2 bg-[var(--text-accent)] text-white rounded-lg hover:opacity-90 transition-opacity font-medium whitespace-nowrap">+ <i class="fas fa-check mr-1"></i>Apply+ </button>+ </div>+ </div>+ </div>+</div>diff --git a/templates/modals/edit-modal.html b/templates/modals/edit-modal.htmlindex 02601127..e9a53f47 100644--- a/templates/modals/edit-modal.html+++ b/templates/modals/edit-modal.html@@ -20,9 +20,13 @@</div><div><label class="block text-sm font-medium mb-2" v-text="t('form.meetingDate')"></label>- <input v-model="editingRecording.meeting_date"- type="date"- class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">+ <div @click="openDateTimePicker('edit_modal_meeting_date', editingRecording.meeting_date, (isoString) => { editingRecording.meeting_date = isoString; })"+ class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg cursor-pointer hover:border-[var(--border-focus)] transition-colors flex items-center justify-between">+ <span :class="editingRecording.meeting_date ? 'text-[var(--text-primary)]' : 'text-[var(--text-muted)]'">+ ${editingRecording.meeting_date ? formatDisplayDate(editingRecording.meeting_date) : 'Select date and time...'}+ </span>+ <i class="fas fa-calendar-alt text-[var(--text-muted)]"></i>+ </div></div><div><label class="block text-sm font-medium mb-2" v-text="t('form.notes')"></label>