feat: Add reminder that AD changes for approved documents are unusual (#5231)
This commit is contained in:
parent
8e16b4405b
commit
cf94b896c8
|
@ -2,6 +2,7 @@
|
|||
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
||||
{% load origin %}
|
||||
{% load django_bootstrap5 %}
|
||||
{% load ietf_filters %}
|
||||
{% block title %}Change responsible AD for {{ doc.name }}-{{ doc.rev }}{% endblock %}
|
||||
{% block content %}
|
||||
{% origin %}
|
||||
|
@ -10,11 +11,20 @@
|
|||
<br>
|
||||
<small class="text-muted">{{ doc.name }}-{{ doc.rev }}</small>
|
||||
</h1>
|
||||
{% with approved=doc|state:"draft-rfceditor" %}
|
||||
{% if approved %}
|
||||
<div class="alert alert-warning my-3">
|
||||
It is unusual to change the responsible AD for a document that has
|
||||
been sent to the RFC Editor. Please make sure this is really what
|
||||
you want to do.
|
||||
</div>
|
||||
{% endif %}
|
||||
<form class="mt-3" enctype="multipart/form-data" method="post">
|
||||
{% csrf_token %}
|
||||
{% bootstrap_form form %}
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<button type="submit" class="btn {{ approved|yesno:'btn-warning,btn-primary' }}">Submit</button>
|
||||
<a class="btn btn-secondary float-end"
|
||||
href="{% url "ietf.doc.views_doc.document_main" name=doc.name %}">Back</a>
|
||||
</form>
|
||||
{% endwith %}
|
||||
{% endblock %}
|
Loading…
Reference in a new issue