{% extends "base_detail.html" %}

{% load community_buttons %}
{% load community_badges %}
{% load community_utils %}
{% load bootstrap_helpers %}
{% load events_programme %}
{% load cms_tags %}
{% load django_bootstrap5 %}
{% load sekizai_tags %}

{% block headline %}Import presentation types for {{ event }}{% endblock %}

{% block title %}Import presentation types for {{ event }}{% endblock %}

{% block breadcrumbs %}
  {% url "events:event-list" as event_list_url %}
  {% url "events:programme:edit-presentationtypes" event.slug as presentationtype_list_url %}
  {% breadcrumbs "Events"|combine:event_list_url event.name|combine:event.get_absolute_url "Edit"|combine:event.get_edit_url "Presentation types"|combine:presentationtype_list_url "Select import event"|combine:request.path %}
{% endblock %}

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


{% block content %}

  {% card card_class="mb-3" %}
    <p>
      Here you can select another event to import the presentation types from.
      In the next step, you will then be able to choose whether you want to
      import all or only specific presentation types.
    </p>
  {% endcard %}

  <form role="form" method="post" class="mt-4">
    {% csrf_token %}

    {% bootstrap_form form %}

    <div class="row row-cols-auto m-3">
      {% bootstrap_button "OK" button_type="submit" extra_classes="me-2" %}
      {% url "events:programme:edit-presentationtypes" event.slug as presentationtype_list_url %}
      {% bootstrap_button content="Cancel" extra_classes="ms-auto" button_type="link" href=presentationtype_list_url %}
    </div>
  </form>

{% endblock %}
