%rebase('layout', title='Commitments', back_url=url_for('dashboard')) %_labels = {'open': 'Open', 'overdue': 'Overdue', 'mine': 'Mine', 'done': 'Done', 'all': 'Everything'}
%for f in filters: {{_labels[f]}} %end
Record a promise
%for c in commitments: %shown = insights.commitment_display_status(c) %end %if not commitments: %end
PersonCommitmentDueStatus
{{c.person.name if c.person_id else '—'}} {{c.description}} %if c.customer_id or c.project_id: %if c.customer_id: · {{c.customer.name}} %end %if c.project_id: · {{c.project.name}} %end %end {{insights.due_phrase(c.due_date).replace('due ', '').replace('was ', '')}} {{status_label(shown)}} %# One button for the thing people actually do here: tick it off.
%if c.status == 'done': %else: %end
%if active == 'overdue': Nothing overdue. Everyone is keeping their word. %elif active == 'mine': Nothing is on you right now. %else: No commitments recorded yet. %end