Spaces:
Sleeping
Sleeping
File size: 4,392 Bytes
5e16fc6 | 1 2 3 4 | {% extends 'base.html' %}{% block content %}<div class="page-heading"><span class="eyebrow">FIRST-RUN SETUP</span><h1>Start with your previous MOM.</h1><p>Import the old Excel report so each person can review their unfinished actions.</p></div><section class="card"><h2>1. Upload the previous report</h2><p class="muted">Use the first sheet’s Actions, Due Date and Owner columns, as in your sample reports. You’ll review the names and actions before importing.</p><form method="post" enctype="multipart/form-data"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="operation" value="upload"><label for="report">Previous MOM workbook (.xlsx, up to 10 MB)</label><input type="file" id="report" name="report" accept=".xlsx" required><button class="button">Read report & preview →</button></form></section>
{% if preview %}<section class="card spaced"><div class="section-heading"><h2>2. Review your import</h2><span class="pill">{{ preview.actions|length }} actions · {{ preview.updates|length }} updates</span></div><p class="muted">{{ preview.filename }}. Text deadlines are kept as notes. Actions already marked completed in an app export are excluded from the new checklist.</p><form method="post"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="operation" value="confirm"><div class="form-grid"><div><label for="report_date">Actual date of the old meeting</label><input type="date" id="report_date" name="report_date" value="{{ request.form.get('report_date','2026-09-21') }}" required><p class="field-hint">Use the actual Monday, even if the filename has an older date.</p></div><div><label for="meeting_date">Upcoming meeting (Monday)</label><input type="date" id="meeting_date" name="meeting_date" value="{{ request.form.get('meeting_date',meeting.meeting_date) }}" required></div><div><label for="coordinator">Upcoming report coordinator</label><select id="coordinator" name="coordinator_id">{% for user in users if user.active and user.rotation_order %}<option value="{{ user.id }}" {{ 'selected' if user.id==meeting.coordinator_id }}>{{ user.name }}</option>{% endfor %}</select></div></div><h3 class="spaced">Match the names in the report</h3><div class="form-grid">{% for name in preview.owners %}<div><label for="owner-{{ loop.index0 }}">{{ name }}</label><select id="owner-{{ loop.index0 }}" name="owner_{{ loop.index0 }}" required><option value="">Choose a person</option>{% for user in users %}<option value="{{ user.id }}" {{ 'selected' if mapping[name]==user.id }}>{{ user.name }}</option>{% endfor %}<option value="new" {{ 'selected' if not mapping[name] }}>New participant — handled by coordinator</option></select></div>{% endfor %}</div><div class="table-scroll spaced"><table><thead><tr><th>Action</th><th>Owner in report</th><th>Due date / note</th><th>Status</th></tr></thead><tbody>{% for a in preview.actions %}<tr><td class="wide-cell">{{ a.body }}</td><td>{{ a.owner }}</td><td>{{ a.due_date|datefmt if a.due_date else a.due_note }}</td><td>{{ 'Completed' if a.completed else 'To review' }}</td></tr>{% endfor %}</tbody></table></div><p class="field-hint">This becomes the starting checklist. Supplied sample history for the same date is replaced. The original uploaded file is kept locally.</p><button class="button">Confirm import & open workspace →</button></form></section>{% endif %}
<section class="card spaced"><h2>Or use the report you already supplied</h2><p class="muted">Start with 40 actions from your 21 September report (the file is named 15-09-2026). August stays available as history.</p><form method="post"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="operation" value="sample"><div class="form-grid"><div><label for="sample_date">Upcoming meeting (Monday)</label><input type="date" id="sample_date" name="meeting_date" value="{{ meeting.meeting_date }}" required></div><div><label for="sample_coordinator">Report coordinator</label><select id="sample_coordinator" name="coordinator_id">{% for user in users if user.active and user.rotation_order %}<option value="{{ user.id }}" {{ 'selected' if user.id==meeting.coordinator_id }}>{{ user.name }}</option>{% endfor %}</select></div></div><button class="button secondary">Use supplied report & open workspace →</button></form></section>{% endblock %}
|