{% extends "agenda/base.html" %}
{% load compress %}
{% load bootstrap4 %}
{% load i18n %}
{% load rich_text %}
{% load staticfiles %}

{% block content %}
    <h3 class="talk-title">
        <a href="{{ talk.urls.public }}">
            »{{ talk.title }}«
        </a>
        <small>
            {{ talk.slot.start.date|date:"c" }}, {{ talk.slot.start|date:"H:i" }}–{{ talk.slot.end|date:"H:i" }}, {{ talk.slot.room.name }}
        </small>
    </h3>
    <div class="talk row col-lg-12">
        <div class="talk-content"><div class="description">
            {{ phrases.agenda.feedback_explanation }}
            {{ phrases.agenda.feedback_success }}
        {% if not talk.does_accept_feedback %}
            {{ phrases.agenda.feedback_not_now }}
        {% else %}

            <form method="post" action="">
                {% csrf_token %}
                {% if talk.speakers.count > 1 %}
                    {% bootstrap_field form.speaker layout='inline' %}
                {% endif %}
                {% bootstrap_field form.review layout='inline' %}

                <button type="submit" class="btn btn-primary pull-right">
                    {{ phrases.agenda.feedback_send }}
                </button>
            </form>
        {% endif %}
        </div></div>
    </div>
{% endblock %}

