{% extends "cfp/event/base.html" %}
{% load bootstrap4 %}
{% load i18n %}

{% block title %}{% trans "Your submission" %} :: {% endblock %}

{% block content %}
<div class="col-md-10 ml-auto mr-auto">
    <h2>{% trans "Your submission:" %} {{ submission.title }}</h2>
    <p>
        {% trans "Current state of your submission:" %}
        {% include "cfp/event/fragment_state.html" with state=submission.state %}
    </p>
    <div class="text">
    {% blocktrans trimmed %}
    Congratulations on your acceptance!
    {% endblocktrans %}
    {% if form.availabilities %}
        {% blocktrans trimmed %}
        Please provide us with your available hours during the event, so that we can schedule your event accordingly:<p>
        {% endblocktrans %}
    {% endif %}
    </div>
    <form method="post">
        {% csrf_token %}
        {% if form.availabilities %}{% bootstrap_field form.availabilities layout='inline' %}{% endif %}
        {% blocktrans trimmed %}
        By confirming your submission, you agree that you are able and willing to participate in this event and
        present the content of this submission.<br>
        The submission data, such as title, abstract, description, and any uploads you provided, will be
        publicly available once the submission is confirmed.
        {% endblocktrans %}
        <div class="submit-group"><span></span><span>
            <a href="{{ submission.urls.user_base }}"
               class="btn btn-lg btn-info">
                {% trans "Go back" %}
            </a>
            <button type="submit"
               class="btn btn-lg btn-success">
                {% trans "Confirm" %}
            </button>
        </span></div>
    </form>
</div>
{% endblock %}
