{% load gnm %}
{% get_mairie_opening_hours place as opening_hours %}
<div class="horaires">
  <h3>Horaires</h3>
  {% if opening_hours %}
  {{place|as_opening_hours_badge}}
  <table class="horaires">
    {% for day, hours in opening_hours %}
    <tr><th>{{day}}</th><td>{{hours.am|default_if_none:"fermé"}}</td><td>{{hours.pm|default_if_none:"fermé"}}</td></tr>
    {% endfor %}
  </table>
  {% else %}
  <div>Donnée indisponible.</div>
  {% endif %}
</div> <!-- horaires -->
