{% extends 'events/abstracts/management/cfa_actions/_base.html' %}

{% block label %}
    {% trans -%}
        The call for abstracts is open
    {%- endtrans %}
{% endblock %}

{% block text %}
    {% if not cfa.end_dt %}
        {% trans %}Close now or schedule the deadline.{% endtrans %}
    {% else %}
        {% set tz = event.timezone %}
        {% trans date=cfa.end_dt|format_date(timezone=tz), time=cfa.end_dt|format_time(timezone=tz) -%}
            Scheduled to close on <strong>{{ date }}</strong> at <strong>{{ time }}</strong> ({{ tz }}).
        {%- endtrans %}
    {% endif %}
{% endblock %}

{% block buttons %}
    {{ super() }}
    <div class="group">
        <button class="i-button highlight"
                data-href="{{ url_for('.close_abstracts_call', event) }}"
                data-method="POST">
            {%- trans %}Close now{% endtrans -%}
        </button>
    </div>
{% endblock %}
