adjusted
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{% extends "core/base.html" %}
|
{% extends "core/base.html" %}
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container my-5">
|
<div class="container my-5">
|
||||||
<!-- Header + Filter -->
|
<!-- Header + Filter -->
|
||||||
<div class="d-flex flex-wrap justify-content-between align-items-center mb-4 gap-3">
|
<div class="d-flex flex-wrap justify-content-between align-items-center mb-4 gap-3">
|
||||||
@@ -8,24 +8,29 @@
|
|||||||
<form method="get" class="d-flex flex-wrap gap-2">
|
<form method="get" class="d-flex flex-wrap gap-2">
|
||||||
<select name="status" class="form-select">
|
<select name="status" class="form-select">
|
||||||
<option value="">All Status</option>
|
<option value="">All Status</option>
|
||||||
<option value="reported" {% if request.GET.status|default:'' == "reported" %}selected{% endif %}>Reported</option>
|
<option value="reported" {% if request.GET.status|default:'' == "reported" %}selected{% endif %}>Reported
|
||||||
<option value="acknowledged" {% if request.GET.status|default:'' == "acknowledged" %}selected{% endif %}>Acknowledged
|
|
||||||
</option>
|
</option>
|
||||||
<option value="in_progress" {% if request.GET.status|default:'' == "in_progress" %}selected{% endif %}>In Progress
|
<option value="acknowledged" {% if request.GET.status|default:'' == "acknowledged" %}selected{% endif %}>
|
||||||
|
Acknowledged
|
||||||
|
</option>
|
||||||
|
<option value="in_progress" {% if request.GET.status|default:'' == "in_progress" %}selected{% endif %}>In
|
||||||
|
Progress
|
||||||
|
</option>
|
||||||
|
<option value="resolved" {% if request.GET.status|default:'' == "resolved" %}selected{% endif %}>Resolved
|
||||||
</option>
|
</option>
|
||||||
<option value="resolved" {% if request.GET.status|default:'' == "resolved" %}selected{% endif %}>Resolved</option>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select name="category" class="form-select">
|
<select name="category" class="form-select">
|
||||||
<option value="">All Categories</option>
|
<option value="">All Categories</option>
|
||||||
{% for cat in categories %}
|
{% for cat in categories %}
|
||||||
<option value="{{ cat.id }}" {% if request.GET.category|default:'' == cat.id|stringformat:"s" %}selected{% endif %}>
|
{% with cat.id|stringformat:"s" as cat_id %}
|
||||||
|
<option value="{{ cat_id }}" {% if request.GET.category|default:'' == cat_id %}selected{% endif %}>
|
||||||
{{ cat.name }}
|
{{ cat.name }}
|
||||||
</option>
|
</option>
|
||||||
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">
|
<button type="submit" class="btn btn-primary">
|
||||||
<i class="fas fa-filter me-1"></i> Filter
|
<i class="fas fa-filter me-1"></i> Filter
|
||||||
</button>
|
</button>
|
||||||
@@ -81,14 +86,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer bg-transparent">
|
|
||||||
|
<div class="card-footer bg-transparent d-flex justify-content-between align-items-center">
|
||||||
<small
|
<small
|
||||||
class="text-{% if issue.status == 'resolved' %}success{% elif issue.status == 'in_progress' %}warning{% else %}info{% endif %}">
|
class="text-{% if issue.status == 'resolved' %}success{% elif issue.status == 'in_progress' %}warning{% else %}info{% endif %}">
|
||||||
<i
|
<i
|
||||||
class="fas fa-{% if issue.status == 'resolved' %}check-circle{% elif issue.status == 'in_progress' %}tasks{% else %}clock{% endif %} me-1"></i>
|
class="fas fa-{% if issue.status == 'resolved' %}check-circle{% elif issue.status == 'in_progress' %}tasks{% else %}clock{% endif %} me-1"></i>
|
||||||
{{ issue.get_status_display }}
|
{{ issue.get_status_display }}
|
||||||
</small>
|
</small>
|
||||||
|
|
||||||
|
<a href="{% url 'issue_detail' issue.id %}" class="btn btn-sm btn-outline-secondary">
|
||||||
|
<i class="fas fa-comments"></i> Comments
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
|
|||||||
Reference in New Issue
Block a user