Add javascript to display/clear the requestor's address in
the textbox at the top of the list administrators multifield. - Legacy-Id: 273
This commit is contained in:
parent
f8dbed4884
commit
ebe29bc1af
|
@ -1,5 +1,22 @@
|
||||||
{% extends "mailinglists/list_wizard_base.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 %}
|
{% block mlform %}
|
||||||
{% for field in form %}
|
{% for field in form %}
|
||||||
{% if field.is_hidden %}
|
{% if field.is_hidden %}
|
||||||
|
|
|
@ -31,7 +31,7 @@ ul.errorlist { color: red; border: 1px solid red; }
|
||||||
<img src="/images/t_un.gif" border="0">
|
<img src="/images/t_un.gif" border="0">
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<form action="." method="POST">
|
<form action="." method="POST" name="form_post">
|
||||||
|
|
||||||
<h2>Step {{ step|add:"1" }}:</h2>
|
<h2>Step {{ step|add:"1" }}:</h2>
|
||||||
<table bgcolor="f3f8fd" cellpadding="3" cellspacing="0" border="0" width="100%">
|
<table bgcolor="f3f8fd" cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||||
|
|
Loading…
Reference in a new issue