feat: Add reminder that AD changes for approved documents are unusual (#5231)

This commit is contained in:
Lars Eggert 2023-02-28 18:21:39 +02:00 committed by GitHub
parent 8e16b4405b
commit cf94b896c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 %}