25 lines
900 B
HTML
25 lines
900 B
HTML
<table class="mt-2 mb-0 table table-sm table-borderless">
|
|
<tbody>
|
|
{% for p in unavailable_periods %}
|
|
<tr class="unavailable-period-{{ p.state }}">
|
|
<th scope="row">Period:</th>
|
|
<td>{{ p.state }}</td>
|
|
</tr>
|
|
<tr class="unavailable-period-{{ p.state }}">
|
|
<th scope="row">Dates:</th>
|
|
<td>
|
|
{% if p.start_date or p.end_date %}{{ p.start_date|default:"∞" }} -{% endif %}
|
|
{{ p.end_date|default:"∞" }}
|
|
</td>
|
|
</tr>
|
|
<tr class="unavailable-period-{{ p.state }}">
|
|
<th scope="row">Availability:</th>
|
|
<td>{{ p.get_availability_display }}</td>
|
|
</tr>
|
|
<tr class="unavailable-period-{{ p.state }}">
|
|
<th scope="row">Reason:</th>
|
|
<td>{{ p.reason }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table> |