Initial commit
This commit is contained in:
53
templates/decisions.html
Normal file
53
templates/decisions.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="page-header">
|
||||
<h1 class="page-title">Decisions<span class="page-count">{{ items|length }}</span></h1>
|
||||
<a href="/decisions/create" class="btn btn-primary">+ New Decision</a>
|
||||
</div>
|
||||
|
||||
<form class="filters-bar" method="get" action="/decisions">
|
||||
<select name="status" class="filter-select" onchange="this.form.submit()">
|
||||
<option value="">All Statuses</option>
|
||||
<option value="proposed" {{ 'selected' if current_status == 'proposed' }}>Proposed</option>
|
||||
<option value="accepted" {{ 'selected' if current_status == 'accepted' }}>Accepted</option>
|
||||
<option value="rejected" {{ 'selected' if current_status == 'rejected' }}>Rejected</option>
|
||||
<option value="superseded" {{ 'selected' if current_status == 'superseded' }}>Superseded</option>
|
||||
</select>
|
||||
<select name="impact" class="filter-select" onchange="this.form.submit()">
|
||||
<option value="">All Impact</option>
|
||||
<option value="high" {{ 'selected' if current_impact == 'high' }}>High</option>
|
||||
<option value="medium" {{ 'selected' if current_impact == 'medium' }}>Medium</option>
|
||||
<option value="low" {{ 'selected' if current_impact == 'low' }}>Low</option>
|
||||
</select>
|
||||
</form>
|
||||
|
||||
{% if items %}
|
||||
<div class="card mt-3">
|
||||
{% for item in items %}
|
||||
<div class="list-row">
|
||||
<span class="row-title"><a href="/decisions/{{ item.id }}">{{ item.title }}</a></span>
|
||||
<span class="status-badge status-{{ item.status }}">{{ item.status }}</span>
|
||||
<span class="row-tag impact-{{ item.impact }}">{{ item.impact }}</span>
|
||||
{% if item.decided_at %}
|
||||
<span class="row-meta">{{ item.decided_at }}</span>
|
||||
{% endif %}
|
||||
{% if item.meeting_title %}
|
||||
<span class="row-meta">{{ item.meeting_title }}</span>
|
||||
{% endif %}
|
||||
<div class="row-actions">
|
||||
<a href="/decisions/{{ item.id }}/edit" class="btn btn-ghost btn-xs">Edit</a>
|
||||
<form action="/decisions/{{ item.id }}/delete" method="post" data-confirm="Delete this decision?" style="display:inline">
|
||||
<button type="submit" class="btn btn-ghost btn-xs" style="color: var(--red)">Del</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="empty-state mt-3">
|
||||
<div class="empty-state-icon">⚖</div>
|
||||
<div class="empty-state-text">No decisions recorded yet</div>
|
||||
<a href="/decisions/create" class="btn btn-primary">Record First Decision</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user