{% extends "admin/base_site.html" %}
{% load i18n admin_urls %}

{% block extrahead %}{{ block.super }}{{ media }}{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
  <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> ›
  <a href="{% url 'admin:app_list' opts.app_label %}">{{ opts.app_config.verbose_name }}</a> ›
  <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a> ›
  <a href="{% url opts|admin_urlname:'change' original.pk %}">{{ original }}</a> ›
  {% trans 'Create GitHub repository' %}
</div>
{% endblock %}

{% block content %}
<h1>{% trans 'Create GitHub repository' %}</h1>
<form method="post" action="">
  {% csrf_token %}
  <fieldset class="module aligned">
    {{ form.non_field_errors }}
    {% for field in form %}
      <div class="form-row{% if field.errors %} errors{% endif %}">
        {{ field.errors }}
        {{ field.label_tag }} {{ field }}
        {% if field.help_text %}<p class="help">{{ field.help_text }}</p>{% endif %}
      </div>
    {% endfor %}
  </fieldset>
  <div class="submit-row">
    <a href="{% url opts|admin_urlname:'change' original.pk %}" class="button cancel-link">{% trans 'Cancel' %}</a>
    <button type="submit" class="button default">{% trans 'Create repository' %}</button>
  </div>
</form>
{% endblock %}
