{% extends 'modal_base.html' %}
{% load i18n %}

{% block title %}
    <i class="fa fa-warning"></i> {% trans 'Publish and share confirmation' %}
{% endblock %}

{% block body %}
    <form action="{{ training.get_publish_and_share_url }}" method="post">{% csrf_token %}
        <div class="modal-body">
            <div class="alert alert-warning">
                <strong>
                    {% blocktrans trimmed with training_name=training.name count nb_duplicates=total_duplicates_nb %}
                        Are you sure you want to publish and share the scenario "{{ training_name }}" to {{ nb_duplicates }} user?
                    {% plural %}
                        Are you sure you want to publish and share the scenario "{{ training_name }}" to {{ nb_duplicates }} users?
                    {% endblocktrans %}
                </strong><br/>
                {% trans 'This action cannot be undone!' %}
            </div>
        </div>
        <div class="modal-footer clearfix">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">{% trans 'Cancel' %}</button>
            <input class="btn btn-danger pull-right" type="submit" value="{% trans 'Confirm' %}" />
        </div>
    </form>
{% endblock %}
