{% extends "cradmin_legacy/viewhelpers/formview_base.django.html" %}

{% load i18n %}
{% load cradmin_legacy_tags %}
{% load cradmin_legacy_icon_tags %}
{% load devilry_core_tags %}

{% block pageheader-outer-extraclasses %}
    {{ block.super }}
    devilry-page-header-with-backlink
{% endblock %}

{% block pageheader-inner %}
    <a href="{% cradmin_appindex_url %}" class="devilry-page-header-backlink">
        <span class="sr-only">
            {% trans "Back to manage tags overview" %}
        </span>
        <span class="{% cradmin_icon 'devilry-pageheader-back' %}" aria-hidden="true"></span>
    </a>
    <h1>
        {% blocktrans %}
            Add tags to the semester
        {% endblocktrans %}
    </h1>
{% endblock pageheader-inner %}

{% block pre_form %}
    <div id="devilry_admin_period_admins_help_container" class="container">
        <p class="alert alert-info">
            <strong>
                {% trans 'Existing tags' %}:
            </strong>
            {% devilry_period_tags_on_period period=period period_tags=period_tags %}
        </p>
    </div>
{% endblock pre_form %}
