minor update

This commit is contained in:
2025-08-25 14:26:58 +05:30
parent 17f309dcda
commit 7272f1726f
13 changed files with 163 additions and 33 deletions
@@ -17,6 +17,7 @@
<th>Reported By</th>
<th>Status</th>
<th>Created At</th>
<th>Assign Department</th>
</tr>
</thead>
<tbody>
@@ -40,6 +41,24 @@
{% endif %}
</td>
<td>{{ issue.created_at|date:"M d, Y H:i" }}</td>
<td>
{% if issue.department %}
<span class="fw-bold text-primary">{{ issue.department.name }}</span>
{% else %}
<form method="post" action="">
{% csrf_token %}
<input type="hidden" name="issue_id" value="{{ issue.id }}">
<select name="department" class="form-select form-select-sm">
<option value="">— Select Department —</option>
{% for dept in departments %}
<option value="{{ dept.id }}">{{ dept.name }}</option>
{% endfor %}
</select>
<button type="submit" class="btn btn-sm btn-primary mt-1">Assign</button>
</form>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>