KOK - MANAGER
Edit File: index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"/> <title>Meeting Summariser</title> <meta name="viewport" content="width=device-width, initial-scale=1"/> <style> body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f9fafb; color: #222; margin: 0; padding: 0; } h1 { text-align: center; margin: 1.5rem 0; font-size: 1.8rem; } .container { max-width: 850px; margin: auto; padding: 1rem; } .card { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05); } label { font-weight: 600; margin-top: 1rem; display: block; } input, select { width: 100%; padding: 0.7rem; margin-top: 0.3rem; border-radius: 8px; border: 1px solid #ccc; font-size: 1rem; transition: all 0.2s; } input:focus, select:focus { border-color: #4f46e5; outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,0.2); } button { margin-top: 1.5rem; width: 100%; padding: 1rem; border-radius: 10px; border: none; background: #4f46e5; color: #fff; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; } button:hover { background: #3730a3; } .flash-msg { background: #fee2e2; color: #b91c1c; padding: 0.8rem; border-radius: 8px; margin-bottom: 1rem; text-align: center; } </style> </head> <body> <h1>🗂️ Meeting Summariser</h1> <div class="container"> {% with msgs=get_flashed_messages() %} {% if msgs %} <div class="flash-msg">{{ msgs[0] }}</div> {% endif %} {% endwith %} <div class="card"> <form method="POST" enctype="multipart/form-data"> <label>🗓️ Meeting Date</label> <input type="date" name="meeting_date" id="meeting_date" required /> <label>🏷️ Client Name</label> <select name="client_name" required> {% for c in clients %} <option value="{{c}}">{{c}}</option> {% endfor %} </select> <label>📌 Meeting Type</label> <select name="meeting_type"> <option>Regular</option> <option>Kickstart</option> </select> <label>👤 Submitted By</label> <select name="submitted_by" id="submitted_by"> {% for n in employee_names %} <option value="{{n}}">{{n}}</option> {% endfor %} </select> <label>✉️ Email (auto)</label> <input type="text" id="email_id" disabled /> <label>🌐 Website Link (optional)</label> <input type="url" name="website_link" placeholder="https://example.com" /> <label>🎙️ Meeting Audio (multi .m4a/.mp3/.wav)</label> <input type="file" name="audio_files" accept=".m4a,.mp3,.wav" multiple required /> <button type="submit">🚀 Submit</button> </form> </div> </div> <script> // Map employee -> email const map = {{ employee_email_map|tojson }}; const sel = document.getElementById('submitted_by'); const email = document.getElementById('email_id'); function upd(){ email.value = map[sel.value] || ''; } sel.addEventListener('change', upd); upd(); // Restrict date picker to today or earlier const dateInput = document.getElementById('meeting_date'); const today = new Date().toISOString().split('T')[0]; dateInput.setAttribute('max', today); </script> </body> </html>