{% extends 'events/papers/management/cfp_actions/_base.html' %}

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

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

{% block buttons %}
    {{ super() }}
    <button class="i-button highlight"
            data-href="{{ url_for('.close_cfp', event) }}"
            data-method="POST"
            data-update="#paper-page"
            data-replace-update>
        {%- trans %}Close now{% endtrans -%}
    </button>
{% endblock %}
