{% extends "orga/schedule/base.html" %}
{% load i18n %}
{% block schedule_content %}
<legend>Schedule Export</legend>

<p>
{% blocktrans trimmed %}
The event schedule can be exported to a static html dump, so you can upload it to a
normal file-serving webserver like nginx. This is done automatically on schedule
release, but you can also trigger that action here.
{% endblocktrans %}
</p>

<a href='{{ request.event.orga_urls.schedule_export_download }}' class="btn btn-primary">
    <i class="fa fa-download"></i>
    {% trans "Download ZIP" %}
</a>
<form action="{{ request.event.orga_urls.schedule_export_trigger }}" method="POST" class="d-inline-block">
    {% csrf_token %}
    <button type="submit" class="btn btn-secondary">
        <i class="fa fa-refresh"></i>
        {% trans "Regenerate Export" %}
    </button>
</form>

{% endblock %}
