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

{% block title %}{% translate "Your proposal" %} :: {% endblock %}

{% block content %}
    <h2>
        <a href="{{ submission.urls.user_base }}">
            {% translate "Your proposal:" %} {{ submission.title }}
        </a>
    </h2>
    <p>
        {% translate "Current state of your proposal:" %}
        {% include "cfp/event/fragment_state.html" with state=submission.state %}
    </p>
    <div class="alert alert-info">
        {% blocktranslate trimmed %}
            Invite another speaker to your proposal here. Instead of letting us send an email,
            (which might get caught by spam filters) you can also give them this link:
        {% endblocktranslate %}
        <br>
        {{ submission.urls.accept_invitation.full }}
    </div>
    <form method="post">
        {% csrf_token %}
        {% bootstrap_form form layout='event' %}
        <div class="row">
            <div class="col-md-3 ml-auto url-links">
                <a class="btn btn-block btn-info btn-lg" href="{{ submission.urls.user_base }}">
                    {% translate "Cancel" %}
                </a>
                <button type="submit" class="btn btn-block btn-success btn-lg">
                    {% translate "Send" %}
                </button>
            </div>
        </div>
    </form>
{% endblock %}
