Vision / templates /coordinator.html
kishankrish19's picture
Deploy MoM application
5e16fc6
Raw History Blame Contribute Delete
2.78 kB
{% extends 'base.html' %}{% block content %}<div class="page-heading heading-row"><div><span class="eyebrow">THIS WEEK’S REPORT COORDINATOR</span><h1>Bring the weekly report together.</h1><p>{{ meeting.meeting_date|datefmt }} · {{ meeting.minutes_by }}</p></div><a class="button" href="{{ url_for('report',mid=meeting.id) }}">Review full report →</a></div><section class="card"><div class="section-heading"><h2>Team submission progress</h2><span class="count">{{ users|selectattr('submitted_at')|list|length }} / {{ users|length }}</span></div><div class="table-scroll"><table><thead><tr><th>Team member</th><th>Updates</th><th>New actions</th><th>Entry status</th></tr></thead><tbody>{% for user in users %}<tr><td>{{ user.name }}</td><td>{{ updates|selectattr('user_id','equalto',user.id)|list|length }}</td><td>{{ actions|selectattr('user_id','equalto',user.id)|list|length }}</td><td><span class="pill {{ 'green' if user.submitted_at else 'amber' }}">{{ 'Submitted' if user.submitted_at else ('Draft' if user.reviewed else 'Not started') }}</span></td></tr>{% endfor %}</tbody></table></div></section>{% include 'coordinator_people.html' %}{% include 'preparation_date.html' %}<section class="card spaced"><h2>Meeting details</h2><form method="post"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="meeting_id" value="{{ meeting.id }}"><input type="hidden" name="operation" value="details"><div class="form-grid"><div><label for="title">Subject</label><input id="title" name="title" value="{{ meeting.title }}" required maxlength="150"></div><div><label for="location">Location</label><input id="location" name="location" value="{{ meeting.location }}" required maxlength="150"></div><div><label for="presenter">Presented by</label><input id="presenter" name="presenter" value="{{ meeting.presenter }}" maxlength="100"></div></div><button class="button">Save meeting details</button></form></section><section class="card spaced"><h2>Pass it to the next coordinator</h2><p class="muted">Next meeting: <strong>{{ next_date|datefmt }}</strong><br>Next report coordinator: <strong>{{ next_owner.name }}</strong></p><p class="muted">When this report is ready, close the meeting and open next Monday’s entry. Unfinished actions carry forward. Saved drafts remain in this report with their submission status.</p><form method="post" data-confirm="Close this meeting and pass the report coordinator role to the next member? Check team submissions first."><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="meeting_id" value="{{ meeting.id }}"><input type="hidden" name="operation" value="next"><button class="button">Finish meeting & open next Monday →</button></form></section>{% endblock %}