{% extends 'base.html' %}{% block title %}My meeting entry · MOM{% endblock %}{% block content %} {% from 'action_deadline.html' import fields as deadline_fields with context %} {% macro hidden() %}{% endmacro %}
{{ meeting.meeting_date|datefmt }} · ENTRY FOR {{ entry_user.name|upper }}

{{ ['Review previous actions','Share your updates','Plan your next actions','Review & submit'][step-1] }}

{{ ['Tick completed actions. Leave unfinished actions unchecked.','Add one update at a time. There’s no limit to how many you can add.','Give each action a description and either a due date or a schedule / note.','Check your saved items before submitting this meeting entry.'][step-1] }}

Exit to overview ↗
{% if entry_user.id!=g.user.id %}
You’re preparing this entry for {{ entry_user.name }}. It will appear under their name in the report. Back to coordinator desk
{% endif %} {% if step==1 %}
{{ hidden() }}

Actions to follow up

{{ previous|length }}
{% for action in previous %}{% else %}
✓

No previous actions to review

You can move on to your updates.

{% endfor %}
{% elif step in [2,3] %}

{{ 'Add an update' if step==2 else 'Add an action' }}

+
{{ hidden() }}
One clear item per entry.
{% if step==3 %}{{ deadline_fields('new', request.form.get('due_date',''), request.form.get('due_note','')) }}{% endif %}

After saving, this form is ready for your next item.

{{ 'Your updates' if step==2 else 'Your new actions' }}

{{ updates|length if step==2 else actions|length }}
{% for item in (updates if step==2 else actions) %}
{{ '%02d'|format(loop.index) }}

{{ item.body }}

{% if step==3 %}
{{ 'Due ' ~ (item.due_date|datefmt) if item.due_date else item.due_note }}
{% endif %}
Edit item
{{ hidden() }}{% if step==3 %}{{ deadline_fields(item.id, item.due_date, item.due_note) }}{% endif %}
{{ hidden() }}
{% else %}
+

{{ 'Your updates start here' if step==2 else 'Make room for what’s next' }}

Saved {{ 'updates' if step==2 else 'actions' }} will appear in this list.

{% endfor %}
{% else %}
{{ previous|selectattr('checked')|list|length }} / {{ previous|length }} previous actions completed{{ updates|length }} updates{{ actions|length }} new actions

Previous actions

Edit
{% for a in previous %}
{{ 'Completed' if a.checked else 'Open' }}

{{ a.body }}

{% else %}

No previous actions.

{% endfor %}

Updates

Edit
    {% for item in updates %}
  1. {{ item.body }}
  2. {% else %}

    No updates added for this meeting.

    {% endfor %}

New actions

Edit
{% for a in actions %}
{{ a.due_date|datefmt if a.due_date else a.due_note }}

{{ a.body }}

{% else %}

No new actions added for this meeting.

{% endfor %}
{% endif %} {% endblock %}