Snapshot: full project state

This commit is contained in:
2026-10-06 23:43:48 -07:00
commit 4f56907c45
20 changed files with 1207 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
{% extends "base.html" %}
{% block content %}
<div class="app-head">
<div>
<h1>{{ a['institution'] }}</h1>
<div class="muted">{{ a['account_type'] | replace('_', ' ') | title }} · started {{ a['created_at'] }}</div>
</div>
<form method="post" action="{{ url_for('set_status', app_id=a['id']) }}" class="inline">
<select name="status" onchange="this.form.submit()">
{% for s in ['researching', 'in_progress', 'submitted', 'approved', 'denied'] %}
<option value="{{ s }}" {% if a['status'] == s %}selected{% endif %}>{{ s }}</option>
{% endfor %}
</select>
</form>
</div>
<h2>Requirements</h2>
<ul class="checklist">
{% for item in items %}
<li>
<form method="post" action="{{ url_for('toggle_item', app_id=a['id'], item_id=item['id']) }}">
<button type="submit" class="checkbox {{ 'checked' if item['done'] else '' }}">
{{ '✓' if item['done'] else '' }}
</button>
<span class="{{ 'done' if item['done'] else '' }}">{{ item['label'] }}</span>
</form>
</li>
{% endfor %}
</ul>
<h2>Your info (for pre-filling this application)</h2>
{% if profile %}
<div class="profile-panel">
{% for key, label in [('full_name','Name'),('date_of_birth','DOB'),('ssn','SSN/TIN'),('address_line1','Address'),('city','City'),('state','State'),('zip','ZIP'),('phone','Phone'),('email','Email')] %}
{% if profile.get(key) %}
<div><span class="plabel">{{ label }}</span><span class="pvalue">{{ profile[key] }}</span></div>
{% endif %}
{% endfor %}
</div>
<p class="muted">Edit in <a href="{{ url_for('profile') }}">Profile</a>.</p>
{% else %}
<p class="muted">No profile yet. <a href="{{ url_for('profile') }}">Add your info</a> to pre-fill.</p>
{% endif %}
<h2>Notes</h2>
<form method="post" action="{{ url_for('set_notes', app_id=a['id']) }}" class="form">
<textarea name="notes" rows="3">{{ a['notes'] }}</textarea>
<button type="submit" class="btn">Save notes</button>
</form>
<form method="post" action="{{ url_for('delete_application', app_id=a['id']) }}"
onsubmit="return confirm('Delete this application?');">
<button type="submit" class="btn danger">Delete application</button>
</form>
{% endblock %}