43 lines
1.2 KiB
HTML
43 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2017, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load bootstrap3 %}
|
|
{% load static %}
|
|
|
|
{% block title %}{{ title }}{% endblock %}
|
|
|
|
{% block pagehead %}
|
|
{{ add_downref_form.media.css }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% origin %}
|
|
<h1>{{ title }}</h1>
|
|
|
|
{% bootstrap_messages %}
|
|
|
|
<div class="alert alert-info">This form will add entries to the downref registry.</div>
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
{% bootstrap_form add_downref_form %}
|
|
|
|
{% buttons %}
|
|
<p>
|
|
<button type="submit" class="btn btn-primary" name="save_downref" value="Save downref">Save downref</button>
|
|
{% for error in add_downref_form.non_field_errors %}
|
|
{% if 'There does not seem to be a normative reference' in error %}
|
|
<button type="submit" class="btn btn-warning" name="save_downref_anyway" value="Save downref anyway">Save downref anyway</button>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<a class="btn btn-warning" href="{% url "ietf.doc.views_downref.downref_registry" %}">Cancel</a>
|
|
</p>
|
|
{% endbuttons %}
|
|
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
{{ add_downref_form.media.js }}
|
|
{% endblock %}
|