Spaces:
Sleeping
Sleeping
Download templates/workflow.html from kishankrish19/Vision: direct link, hf CLI and curl.
- Browser
- Download file 7.2 kB
-
https://huggingface.co/spaces/kishankrish19/Vision/resolve/main/templates/workflow.html
- Command line
-
hf download hf://spaces/kishankrish19/Vision/templates/workflow.html
-
curl -L -o workflow.html https://huggingface.co/spaces/kishankrish19/Vision/resolve/main/templates/workflow.html
7.2 kB
| {% 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() %}<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="meeting_id" value="{{ meeting.id }}">{% endmacro %} | |
| <div class="page-heading heading-row"><div><span class="eyebrow">{{ meeting.meeting_date|datefmt }} · ENTRY FOR {{ entry_user.name|upper }}</span><h1>{{ ['Review previous actions','Share your updates','Plan your next actions','Review & submit'][step-1] }}</h1><p>{{ ['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] }}</p></div><a class="text-link" href="{{ url_for('dashboard') }}">Exit to overview ↗</a></div> | |
| {% if entry_user.id!=g.user.id %}<div class="notice">You’re preparing this entry for <strong>{{ entry_user.name }}</strong>. It will appear under their name in the report. <a href="{{ url_for('coordinator') }}">Back to coordinator desk</a></div>{% endif %}<nav class="stepper" aria-label="Meeting entry steps">{% for label in ['Previous actions','Updates','New actions','Review'] %}<a href="{{ flow_url(loop.index) }}" class="{{ 'current' if step==loop.index else ('done' if step>loop.index else '') }}" {% if step==loop.index %}aria-current="step"{% endif %}><span>{{ loop.index }}</span>{{ label }}</a>{% endfor %}</nav> | |
| {% if step==1 %}<form method="post" data-dirty>{{ hidden() }}<section class="card"><div class="section-heading"><h2>Actions to follow up</h2><span class="count">{{ previous|length }}</span></div>{% for action in previous %}<label class="check-row" for="action-{{ action.id }}"><input id="action-{{ action.id }}" type="checkbox" name="completed" value="{{ action.id }}" {{ 'checked' if action.checked }}><span class="check-content"><strong>{{ action.body }}</strong><span class="item-meta">{% if action.due_date %}<span class="{{ 'overdue' if action.due_date<today and not action.checked }}">Due {{ action.due_date|datefmt }}</span>{% else %}{{ action.due_note or 'No date recorded' }}{% endif %}<span>From {{ action.source_date|datefmt }}</span></span></span></label>{% else %}<div class="empty"><span>✓</span><h3>No previous actions to review</h3><p>You can move on to your updates.</p></div>{% endfor %}</section><div class="flow-footer"><span class="muted small">Changes save when you continue.</span><button class="button">Save & continue →</button></div></form> | |
| {% elif step in [2,3] %}<div class="entry-grid"><section class="card entry-compose"><div class="section-heading"><h2>{{ 'Add an update' if step==2 else 'Add an action' }}</h2><span class="count">+</span></div><form method="post" data-dirty>{{ hidden() }}<input type="hidden" name="entry_token" value="{{ token() }}"><input type="hidden" name="operation" value="add"><label for="body">{{ 'What have you worked on?' if step==2 else 'What needs to be done?' }}</label><textarea name="body" id="body" rows="6" maxlength="3000" required placeholder="{{ 'For example: Finished testing the new attendance module.' if step==2 else 'For example: Complete the API integration for leave management.' }}">{{ request.form.get('body','') if request.method=='POST' and request.form.get('operation')=='add' else '' }}</textarea><div class="field-hint char-counter" data-for="body">One clear item per entry.</div>{% if step==3 %}{{ deadline_fields('new', request.form.get('due_date',''), request.form.get('due_note','')) }}{% endif %}<button class="button full">+ Save {{ 'update' if step==2 else 'action' }}</button></form><p class="small muted">After saving, this form is ready for your next item.</p></section><section class="card"><div class="section-heading"><h2>{{ 'Your updates' if step==2 else 'Your new actions' }}</h2><span class="count">{{ updates|length if step==2 else actions|length }}</span></div>{% for item in (updates if step==2 else actions) %}<article class="entry-item"><div class="item-number">{{ '%02d'|format(loop.index) }}</div><div class="entry-text"><p>{{ item.body }}</p>{% if step==3 %}<div class="item-meta">{{ 'Due ' ~ (item.due_date|datefmt) if item.due_date else item.due_note }}</div>{% endif %}<details><summary>Edit item</summary><form method="post" data-dirty>{{ hidden() }}<input type="hidden" name="operation" value="edit"><input type="hidden" name="item_id" value="{{ item.id }}"><label for="edit-{{ item.id }}">Description</label><textarea id="edit-{{ item.id }}" name="body" maxlength="3000" required rows="4">{{ item.body }}</textarea>{% if step==3 %}{{ deadline_fields(item.id, item.due_date, item.due_note) }}{% endif %}<button class="button small-button">Save changes</button></form></details><form method="post" class="delete-form" data-confirm="Remove this saved item?">{{ hidden() }}<input type="hidden" name="operation" value="delete"><input type="hidden" name="item_id" value="{{ item.id }}"><button class="link danger">Remove</button></form></div></article>{% else %}<div class="empty"><span>+</span><h3>{{ 'Your updates start here' if step==2 else 'Make room for what’s next' }}</h3><p>Saved {{ 'updates' if step==2 else 'actions' }} will appear in this list.</p></div>{% endfor %}</section></div><div class="flow-footer"><a class="button secondary" href="{{ flow_url(step-1) }}">← Back</a><form method="post">{{ hidden() }}<input type="hidden" name="operation" value="next"><button class="button">{{ 'Continue to actions' if step==2 else 'Review my entry' }} →</button></form></div> | |
| {% else %}<div class="review-summary"><span>{{ previous|selectattr('checked')|list|length }} / {{ previous|length }} previous actions completed</span><span>{{ updates|length }} updates</span><span>{{ actions|length }} new actions</span></div><section class="card"><div class="section-heading"><h2>Previous actions</h2><a href="{{ flow_url(1) }}">Edit</a></div>{% for a in previous %}<div class="review-row"><span class="pill {{ 'green' if a.checked else 'amber' }}">{{ 'Completed' if a.checked else 'Open' }}</span><p>{{ a.body }}</p></div>{% else %}<p class="muted">No previous actions.</p>{% endfor %}</section><section class="card spaced"><div class="section-heading"><h2>Updates</h2><a href="{{ flow_url(2) }}">Edit</a></div><ol class="report-list">{% for item in updates %}<li>{{ item.body }}</li>{% else %}<p class="muted">No updates added for this meeting.</p>{% endfor %}</ol></section><section class="card spaced"><div class="section-heading"><h2>New actions</h2><a href="{{ flow_url(3) }}">Edit</a></div>{% for a in actions %}<div class="review-row"><span class="pill">{{ a.due_date|datefmt if a.due_date else a.due_note }}</span><p>{{ a.body }}</p></div>{% else %}<p class="muted">No new actions added for this meeting.</p>{% endfor %}</section><div class="flow-footer"><a class="button secondary" href="{{ flow_url(3) }}">← Back</a><form method="post">{{ hidden() }}<button class="button">Submit meeting entry ✓</button></form></div>{% endif %} | |
| {% endblock %} | |