26 lines
654 B
HTML
26 lines
654 B
HTML
{% load i18n calendar %}
|
|
|
|
{% if cell.title %}
|
|
<h2>
|
|
<span>{{cell.title}}</span>
|
|
{% if calendar %}
|
|
<span class="calinfo">
|
|
{% with calendar.get_first_available_slot as slot %}
|
|
({% if slot %}{% trans "Next available slot:" %} {{ slot.date_time|date:"DATETIME_FORMAT"}}{% else %}{% trans "No available slots." %}{% endif %})
|
|
{% endwith %}
|
|
</span>
|
|
{% endif %}
|
|
</h2>
|
|
{% endif %}
|
|
|
|
{% if error %}
|
|
<div><p>{{ error }}</p></div>
|
|
{% else %}
|
|
<div class="calcontent">
|
|
{% include 'calendar/booking_calendar_content.html' %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
<style>.calinfo { font-style: italic; font-size: 80%; }</style>
|