46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
{% extends 'base.html' %} <!-- Add this for inheritance -->
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Schedule overview" %}{% endblock %}
|
|
{% block pagetitle %}{% trans "Schedule overview" %}{% endblock %}
|
|
{% block content %}
|
|
<p>
|
|
<strong>{% trans "Schedule overview" %}</strong>
|
|
<table>
|
|
<tr>
|
|
{% comment %} <th>{% trans "Department" %}</th> {% endcomment %}
|
|
<th>{% trans "Name" %}</th>
|
|
<th>{% trans "Created" %}</th>
|
|
<th>{% trans "Updated" %}</th>
|
|
<th>{% trans "Status" %}</th>
|
|
<th>{% trans "Report" %}</th>
|
|
<th>{% trans "Actions" %}</th>
|
|
</tr>
|
|
{% for schedule in object_list %}
|
|
<tr>
|
|
{% comment %} <td><span>{{ schedule.name }}</span></td> {% endcomment %}
|
|
<td>{% comment %}<a href="{% url 'schedule:detail' pk=schedule.id %}">{% endcomment %}{{ schedule.name }}{% comment %}</a>{% endcomment %}</td>
|
|
<td>{{ schedule.created_at|date:"SHORT_DATETIME_FORMAT" }}</td>
|
|
<td>{{ schedule.updated_at|date:"SHORT_DATETIME_FORMAT" }}</td>
|
|
<td>{{ schedule.get_status_display }}</td>
|
|
<td>None</td>
|
|
<td>
|
|
{% if schedule.status == 'draft' %}
|
|
<a href="{% url 'schedule:edit' schedule_id=schedule.id %}">{% trans "Resume" %}</a>
|
|
{% else %}
|
|
<a href="{% url 'schedule:clone' schedule_id=schedule.id %}">{% trans "Clone" %}</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="6" class="rug-text-center">{% trans "No schedules available" %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<br />
|
|
<br />
|
|
{% include "pager.html" %}
|
|
</p>
|
|
{% endblock %}
|