location_page.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends "base.html" %}
  2. {% load wagtailimages_tags navigation_tags %}
  3. {% block content %}
  4. {% include "base/include/header-hero.html" %}
  5. <div class="container bread-detail">
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="col-md-7">
  9. <div class="row">
  10. {% if page.introduction %}
  11. <p class="bread-detail__introduction">
  12. {{ page.introduction }}
  13. </p>
  14. {% endif %}
  15. <div class="hidden-md-down">
  16. {{ page.body }}
  17. </div>
  18. </div>
  19. </div>
  20. <div class="col-md-4 col-md-offset-1">
  21. <div class="row">
  22. <div class="bread-detail__meta">
  23. <p class="location__meta-title">Operating Status</p>
  24. {% if page.is_open %}
  25. This location is currently open.
  26. {% else %}
  27. Sorry, this location is currently closed.
  28. {% endif %}
  29. <p class="location__meta-title">Address</p>
  30. <address>{{ page.address|linebreaks }}</address>
  31. {% if page.operating_hours %}
  32. <p class="location__meta-title">Opening hours</p>
  33. {% for hours in page.operating_hours %}
  34. <time itemprop="openingHours" datetime="{{ hours }}" class="location__time">
  35. <span class="location__day">{{ hours.day }}</span>:
  36. <span class="location__hours">
  37. {% if hours.closed == True %}
  38. Closed
  39. {% else %}
  40. {% if hours.opening_time %}
  41. {{ hours.opening_time }}
  42. {% endif %} -
  43. {% if hours.closing_time %}
  44. {{ hours.closing_time }}
  45. {% endif %}
  46. {% endif %}
  47. </span></time>
  48. {% endfor %}
  49. {% endif %}
  50. </div>
  51. </div>
  52. </div>
  53. <div class="col-md-7">
  54. <div class="row hidden-md-up">
  55. {{ page.body }}
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. {% endblock content %}