cmsmanage/tasks/templates/tasks/toolDetail.dj.html

51 lines
1.3 KiB
HTML

{% extends "base.dj.html" %}
{% block title %}{{ tool }} | {{ block.super }}{% endblock %}
{% block admin_link %}
{% url 'admin:tasks_tool_change' tool.id %}
{% endblock %}
{% block content %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{% url 'root' %}">Manage</a>
</li>
<li class="breadcrumb-item">
<a href="{% url 'tasks:index' %}">Tasks</a>
</li>
<li class="breadcrumb-item active" aria-current="page">{{ tool }}</li>
</ol>
</nav>
<section>
<h2>Tasks</h2>
<ul>
{% for task in tasks %}
{% include "./components/task_li.dj.html" with task=task %}
{% endfor %}
</ul>
</section>
<section>
<h2>Event Log</h2>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Date</th>
<th>Task</th>
<th>User</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for event in events|dictsortreversed:"date" %}
<tr>
<td class="text-nowrap">{{ event.date }}</td>
<td>{{ event.task.name }}</td>
<td>{{ event.user }}</td>
<td>{{ event.notes_html|safe }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
{% endblock %}