{% extends "admin/change_form.html" %}
{% load i18n admin_urls %}
{% load firstof from future %}
{% block bodyclass %}{{ block.super }}{% if add %} add-form{% endif %}{% endblock %}
{% block title %}{% if add %}{% trans 'Connect' %} {{ opts.verbose_name }}{% else %}{{ original.get_provider_display}} &mdash; {{ original|truncatewords:"18" }}{% endif %} | {{ site_title|default:_('Django site admin') }}{% endblock %}
{% block content_title %}<h1>{% if add %}{% trans 'Choose a Provider' %}{% else %}{{ original.get_provider_display}} &mdash; {{ original|truncatewords:"18" }}{% endif %}</h1>{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{% firstof opts.app_config.verbose_name app_label|title|escape %}</a>
&rsaquo; {% if has_change_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
&rsaquo; {% if add %}{% trans 'Connect' %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
</div>
{% endblock %}


{% block submit_buttons_top %}
    <div class="submit-row">
        {% if change and not is_popup %}
            {% if has_delete_permission %}
                {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
                <p class="deletelink-box"><a href="{% add_preserved_filters delete_url %}" class="deletelink">{% trans "Delete" %}</a></p>
            {% endif %}
            <input type="submit" value="{% trans 'Reset Data' %}" class="default" name="_reset_data" />
        {% elif add %}
            <input type="submit" value="{% trans 'Connect' %}" class="default" name="_submit" />
        {% endif %}
    </div>
{% endblock %}

{% block submit_buttons_bottom %}
    <div class="submit-row">
        {% if change and not is_popup  %}
            {% if has_delete_permission %}
                {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
                <p class="deletelink-box"><a href="{% add_preserved_filters delete_url %}" class="deletelink">{% trans "Delete" %}</a></p>
            {% endif %}
            <input type="submit" value="{% trans 'Reset Data' %}" class="default" name="_reset_data" />
        {% elif add %}
            <input type="submit" value="{% trans 'Connect' %}" class="default" name="_submit" />
        {% endif %}
    </div>
{% endblock %}

{% block object-tools-items %}
{% endblock %}

