{% extends "sentry/projects/manage.html" %}

{% load crispy_forms_tags %}
{% load i18n %}

{% block title %}{% trans "Manage Tags" %} | {{ block.super }}{% endblock %}

{% block breadcrumb %}
    {{ block.super }}
    <li class="divider"></li>
    <li><a href="{% url sentry-manage-project-tags project.team.slug project.slug %}">{% trans "Manage Tags" %}</a></li>
{% endblock %}

{% block inner %}
    <div class="page-header">
        <h2>{% trans "Manage Tags" %}</h2>
    </div>
    {% if form %}
        <p>{% trans "Configure tags which you want to enable filters for." %}</p>
        <p><small>{% trans "Note: You can only configure tags which have already been seen." %}</small></p>
        <form action="" method="post">
            {% csrf_token %}
            {{ form|as_crispy_errors }}
            <fieldset>
                {% for field in form %}
                    {{ field|as_crispy_field }}
                {% endfor %}
            </fieldset>
            <fieldset class="form-actions">
                <button type="submit" class="btn btn-primary">{% trans "Save Changes" %}</button>
            </fieldset>
        </form>
    {% else %}
        <p>{% trans "We have not yet recorded any tags for this project." %}</p>
    {% endif %}
{% endblock %}

