{% extends 'repos.html' %}
{% import "bootstrap/wtf.html" as wtf %}

{% set sidebar_state = 'disabled' %}
{% set btn_back = true %}

{% block nav_repos %} active{% endblock %}
{% block nav_repos_details %} active{% endblock %}
{% block nav_repos_add %}active{% endblock %}
{% block content %}

<h2 class="mx-5 subhead-heading">{{_('Delete repo')}}</h2>

<form class="form mx-5" method="POST">
    {{ form.hidden_tag() }}

    {{ form.server() }}
    {{ form.repo_id() }}

    <div class="form-group">
        {{ form.name.label }}
        {{ form.name(class="form-control") }}
    </div>

    <div class="form-group" id="ip-fields">
        {{ form.addr.label }}
        {% for addr in form.addr %}
            {{ addr(class="form-control mb-2") }}
        {% endfor %}
    </div>

    <div class="form-group">
        {{ form.submit(class="btn btn-primary") }}
    </div>

</form>

{% endblock %}
