1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- {% extends "base.html" %}
- {% load wagtailimages_tags navigation_tags static %}
- {% block content %}
- {% include "base/include/header-hero.html" %}
- <div class="container bread-detail">
- <div class="row">
- <div class="col-md-12">
- <div class="col-md-7">
- <div class="row">
- {% if page.introduction %}
- <p class="bread-detail__introduction">
- {{ page.introduction }}
- </p>
- {% endif %}
- <div class="hidden-md-down">
- {{ page.body }}
- </div>
- </div>
- </div>
- <div class="col-md-4 col-md-offset-1">
- <div class="row">
- <div class="bread-detail__meta">
- <h2 class="location__meta-title">Operating Status</h2>
- {% comment %}
- Fetch the status of the location on the client side
- as a Wagtail API usage example and to allow for
- caching of the whole page without the status.
- {% endcomment %}
- <location-status url="{% url 'wagtailapi:pages:detail' page.pk %}">
- Please wait...
- </location-status>
- <h2 class="location__meta-title">Address</h2>
- <address>{{ page.address|linebreaks }}</address>
- {% if page.operating_hours %}
- <h2 class="location__meta-title">Opening hours</h2>
- {% for hours in page.operating_hours %}
- <time itemprop="openingHours" datetime="{{ hours }}" class="location__time">
- <span class="location__day">{{ hours.day }}</span>:
- <span class="location__hours">
- {% if hours.closed == True %}
- Closed
- {% else %}
- {% if hours.opening_time %}
- {{ hours.opening_time }}
- {% endif %} -
- {% if hours.closing_time %}
- {{ hours.closing_time }}
- {% endif %}
- {% endif %}
- </span></time>
- {% endfor %}
- {% endif %}
- </div>
- </div>
- </div>
- <div class="col-md-7">
- <div class="row hidden-md-up">
- {{ page.body }}
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endblock content %}
- {% block js %}
- {{ block.super }}
- <script type="module" src="{% static 'js/location-status.js' %}"></script>
- {% endblock js %}
|