datatracker/ietf/templates/doc/ballot/send_ballot_comment.html
Lars Eggert 5598762608
fix: add more HTML validation & fixes (#3891)
* Update vnu.jar

* Fix py2 -> py3 issue

* Run pyupgrade

* test: Add default-jdk to images

* test: Add option to also validate HTML with vnu.jar

Since it's already installed in bin. Don't do this by default, since it
increases the time needed for tests by ~50%.

* fix: Stop the urlizer from urlizing in linkified mailto: text

* More HTML fixes

* More HTML validation fixes

* And more HTML fixes

* Fix floating badge

* Ignore unicode errors

* Only URLize docs that are existing

* Final fixes

* Don't URLize everything during test-crawl

* Feed HTML into vnu using python rather than Java to speed things up

* Allow test-crawl to start vnu on a different port

* Increase retry count to vnu. Restore batch size to 30.

* More HTML validation fixes

* Use urllib3 to make requests to vnu, since overriding requests_mock is tricky

* Undo commit of unmodified file

* Also urlize ftp links

* Fix matching of file name

* More HTML fixes

* Add `is_valid_url` filter

* weekday -> data-weekday

* urlencode URLs

* Add and use vnu_fmt_message. Bump vnu max buffer.

* Simplify doc_exists

* Don't add tab link to mail archive if the URL is invalid

* Run urlize_ietf_docs before linkify

Reduces the possibility of generating incorrect HTML

* Undo superfluous change

* Runner fixes

* Consolidate vnu message filtering into vnu_filter_message

* Correctly handle multiple persons with same name

* Minimze diff

* Fix HTML nits

* Print source snippet in vnu_fmt_message

* Only escape if there is something to escape

* Fix snippet

* Skip crufty old IPR declarations

* Only include modal when needed. Add handles.

* Fix wordwrap+linkification

* Update ietf/doc/templatetags/ietf_filters.py

* Update ietf/doc/templatetags/tests_ietf_filters.py

* Don't right-align second column
2022-05-03 13:55:48 -05:00

45 lines
1.8 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% load ietf_filters %}
{% block title %}Send ballot position for {{ balloter }} on {{ doc }}{% endblock %}
{% block content %}
{% origin %}
<h1>
Send ballot position for {{ balloter }}
<br>
<small class="text-muted">{{ doc }}</small>
</h1>
<form class="mt-3" method="post">
{% csrf_token %}
<div class="mb-3">
<label class="form-label" for="from">From</label>
<input id="from" class="form-control" type="text" placeholder="{{ frm }}" disabled>
</div>
<div class="mb-3">
<label class="form-label" for="to">To</label>
<input id="to" class="form-control" type="text" placeholder="{{ to }}" disabled>
</div>
{% bootstrap_form cc_select_form %}
<div class="mb-3">
<label class="form-label" for="additional">Additional Cc Addresses</label>
<input id="additional" class="form-control" type="text" name="extra_cc">
<div class="form-text">Separate email addresses with commas.</div>
</div>
<div class="mb-3">
<label class="form-label" for="subject">Subject</label>
<input id="subject" class="form-control" type="text" placeholder="{{ subject }}" disabled>
</div>
<div class="mb-3">
<p class="form-label">Body</p>
<pre class="border p-3">{{ body|maybewordwrap }}</pre>
</div>
<button type="submit" class="btn btn-danger">Send</button>
<a class="btn btn-secondary float-end"
href="{% url "ietf.doc.views_doc.document_main" name=doc.canonical_name %}">
Back
</a>
</form>
{% endblock %}