{% extends "base_list_sidebar.html" %}
{% load static %}
{% load django_bootstrap5 %}
{% load bootstrap_helpers %}
{% load community_utils %}
{% load community_buttons %}
{% load events_programme %}
{% load cms_tags %}
{% load sekizai_tags %}

{% block title %}Meeting Rooms{% endblock %}

{% block headline %}Meeting Rooms{% endblock %}

{% block breadcrumbs %}
  {% url "events:event-list" as event_list_url %}
  {% url "events:programme:session-list" event.slug as programme_url %}
  {% breadcrumbs "Events"|combine:event_list_url event.name|combine:event.get_absolute_url "Programme"|combine:programme_url "Meeting rooms"|combine:request.path %}
{% endblock %}


{% block sidebar_below %}
  {% block sidebar_left %}
    {% include "events/components/event_sidebar.html" %}
  {% endblock %}
{% endblock %}

{% block action_buttons %}
  {{ block.super }}
  {% if perms.programme.add_meetingroom and meetingroom_form %}
    {% create_modal_button object_name="Meeting Room" %}
      <input type="hidden" name="meetingroom_form" value="true">
      {% bootstrap_form meetingroom_form %}
    {% endcreate_modal_button %}
    {% addtoblock "css" %}
      {{ meetingroom_form.media.css }}
    {% endaddtoblock %}
    {% addtoblock "js" %}
      {{ meetingroom_form.media.js }}
    {% endaddtoblock %}
  {% endif %}
{% endblock %}

{% block content %}
  {% meetingroom_cards meetingroom_list %}
{% endblock %}
