datatracker/ietf/templates/submit/submitter_form.html
Jennifer Richards da0a217a8c
feat: use surname/initials for author name (#7510)
* feat: use surname/initials for author name

* test: test new method

* fix: handle case where author name is empty
2024-06-06 13:10:24 -05:00

28 lines
980 B
HTML

{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% origin %}
{% load django_bootstrap5 %}
<h3 class="mt-5">Submitter</h3>
<p>
If you are one of the authors, please click the button below
with your name on it to automatically fill in the
submitter information. Otherwise,
please manually enter your name and email address.
</p>
{% load ietf_filters %}
{% for author in submission.authors %}
{% if author.name %}
<button type="button"
class="author btn btn-primary mb-3"
data-name="{{ author.name }}"
data-email="{% if author.email %}{{ author.email }}{% endif %}">
{{ author.name }}
</button>
{% endif %}
{% endfor %}
{% bootstrap_form_errors submitter_form %}
{% bootstrap_field submitter_form.name %}
{% bootstrap_field submitter_form.email %}
{% if user|has_role:"Secretariat" %}
{% bootstrap_field submitter_form.approvals_received %}
{% endif %}