poli_planning/polyclinic_scheduling/apps/schedule/templates/schedule/schedule_list.html

46 lines
1.6 KiB
HTML
Raw Normal View History

2020-05-13 15:54:40 +02:00
{% extends 'base.html' %} <!-- Add this for inheritance -->
{% load i18n %}
2020-05-18 11:10:36 +02:00
{% block title %}{% trans "Schedule overview" %}{% endblock %}
{% block pagetitle %}{% trans "Schedule overview" %}{% endblock %}
2020-05-13 15:54:40 +02:00
{% block content %}
<p>
2020-05-18 11:10:36 +02:00
<strong>{% trans "Schedule overview" %}</strong>
2020-05-13 15:54:40 +02:00
<table>
<tr>
{% comment %} <th>{% trans "Department" %}</th> {% endcomment %}
<th>{% trans "Name" %}</th>
<th>{% trans "Created" %}</th>
<th>{% trans "Updated" %}</th>
2020-05-18 17:07:16 +02:00
<th>{% trans "Status" %}</th>
2020-05-13 15:54:40 +02:00
<th>{% trans "Report" %}</th>
2020-05-19 11:20:09 +02:00
<th>{% trans "Actions" %}</th>
2020-05-13 15:54:40 +02:00
</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>
2020-05-18 17:07:16 +02:00
<td>{{ schedule.get_status_display }}</td>
2020-05-13 15:54:40 +02:00
<td>None</td>
<td>
{% if schedule.status == 'draft' %}
2020-06-08 13:45:02 +02:00
<a href="{% url 'schedule:edit' schedule_id=schedule.id %}">{% trans "Resume" %}</a>
{% else %}
2020-06-08 13:45:02 +02:00
<a href="{% url 'schedule:clone' schedule_id=schedule.id %}">{% trans "Clone" %}</a>
{% endif %}
</td>
2020-05-13 15:54:40 +02:00
</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 %}