{% extends 'events/registration/management/regform_actions/_base.html' %}

{% block label %}
    {% trans -%}
        Registrations are not open yet
    {%- endtrans %}
{% endblock %}

{% block text %}
    {% if not regform.start_dt %}
        {% trans %}Start now or schedule opening.{% endtrans %}
    {% else %}
        {% set tz = regform.event.tzinfo %}
        {% trans date=regform.start_dt|format_date(timezone=tz), time=regform.start_dt|format_time(timezone=tz) -%}
            Scheduled to open on <strong>{{ date }}</strong> at <strong>{{ time}}</strong> ({{ tz }}).
        {%- endtrans %}
    {% endif %}
{% endblock %}

{% block buttons %}
    <div class="group">
        <button class="i-button icon-time js-regform-schedule-dialog"
                data-href="{{ url_for('.schedule_regform', regform) }}"
                data-title="{% trans %}Schedule registrations{% endtrans %}">
            {% if not regform.start_dt %}
                {% trans %}Schedule{% endtrans %}
            {% else %}
                {% trans %}Reschedule{% endtrans %}
            {% endif %}
        </button>
    </div>
    <div class="group">
        <button data-href="{{ url_for('.open_regform', regform) }}" 
                data-method="POST" 
                class="i-button highlight">
            {% trans %}Start now{% endtrans %}
        </button>
    </div>
{% endblock %}
