datatracker/ietf/templates/mailinglists/list_wizard_MailingListForm.html
Bill Fenner ebe29bc1af Add javascript to display/clear the requestor's address in
the textbox at the top of the list administrators multifield.
 - Legacy-Id: 273
2007-06-09 03:45:35 +00:00

47 lines
1.2 KiB
HTML

{% extends "mailinglists/list_wizard_base.html" %}
{# javascript to go with the list administrators multi-form #}
{% if form.admins %}
{% block head %}
<script language="javascript">
function checkthis () {
if (document.form_post["{{ step }}-admins_0"].checked == true) {
document.form_post["{{ step }}-admins_1"].value=document.form_post["{{ step }}-requestor_email"].value;
} else {
document.form_post["{{ step }}-admins_1"].value = "";
}
}
</script>
{% endblock %}
{% endif %}
{% block mlform %}
{% for field in form %}
{% if field.is_hidden %}
{# we assume that the only hidden form is the domain name #}
{# so don't render anything #}
{% else %}
<tr>
<th>{{ field.label_tag }}:</th>
<td>
{% if field.errors %}
<ul class="errorlist">{% for error in field.errors %}<li>{{ error|escape }}</li>{% endfor %}</ul>
{% endif %}
{% ifequal field.name "mlist_name" %}
{% if mlist_known %}{# if we know the mailing list name already #}
{{ form.initial.mlist_name }}@{{ form.initial.domain_name }}{{ field.as_hidden }}
{% else %}
{{ field }}@{{ form.initial.domain_name }}
{% endif %}
{{ form.domain_name.as_hidden }}
{% else %}
{{ field }}
{% endifequal %}
</td>
</tr>
{% endif %}
{% endfor %}
{% endblock %}