Subject: The mailing list for listmasters using Sympa
List archive
RE: [sympa-users] Subscribers can be added prior to list being approved or declined
- From: Steve Shipway <address@concealed>
- To: "'Patrick Rynhart'" <address@concealed>, "'address@concealed'" <address@concealed>
- Subject: RE: [sympa-users] Subscribers can be added prior to list being approved or declined
- Date: Wed, 11 Dec 2013 00:02:54 +0000
After some experimentation, I find that the review.tt2 template can be amended to hide the ‘Add a user’ box for non-open lists. Simple surround the appropriate <form> section with the test here and it will only display for ‘open’ lists:
[% IF listconf.status == 'open' -%] [% END -%]
In our case, we simply want to force ‘quiet’ mode on non-open lists, so we just surround the ‘quietly’ input like this:
[% IF listconf.status != 'open' -%] <!-- do not allow ‘quiet’ checkbox to be unchecked as list is not yet open --> <input id="quietly" type="checkbox" name="quiet" checked="1" _onclick_="return false;" /> <label for=""quietly">[%|loc%]quiet[%END%]</label>" (List is [% listconf.status %]) [% ELSE -%] <input id="quietly" type="checkbox" name="quiet" checked="0" /> <label for=""quietly">[%|loc%]quiet[%END%]</label> [% END -%]
The same changes need to be made on the search.tt2 template, which seems to be almost identical to review.tt2, and add_request.tt2, which is for bulk adds.
Steve
Steve Shipway ITS Unix Services Design Lead University of Auckland, New Zealand Floor 1, 58 Symonds Street, Auckland Phone: +64 (0)9 3737599 ext 86487 DDI: +64 (0)9 923 6487 Mobile: +64 (0)21 753 189 Email: address@concealed P Please consider the environment before printing this e-mail : 打印本邮件,将减少一棵树存活的机会
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
-
[sympa-users] Subscribers can be added prior to list being approved or declined,
Patrick Rynhart, 12/10/2013
-
RE: [sympa-users] Subscribers can be added prior to list being approved or declined,
Steve Shipway, 12/10/2013
-
Re: [sympa-users] Subscribers can be added prior to list being approved or declined,
Patrick Rynhart, 12/10/2013
-
Re: [sympa-users] Subscribers can be added prior to list being approved or declined,
David Verdin, 12/10/2013
- RE: [sympa-users] Subscribers can be added prior to list being approved or declined, Steve Shipway, 12/10/2013
- RE: [sympa-users] Subscribers can be added prior to list being approved or declined, Steve Shipway, 12/11/2013
- Re: [sympa-users] Subscribers can be added prior to list being approved or declined, Patrick Rynhart, 12/11/2013
-
Re: [sympa-users] Subscribers can be added prior to list being approved or declined,
David Verdin, 12/10/2013
-
Re: [sympa-users] Subscribers can be added prior to list being approved or declined,
Patrick Rynhart, 12/10/2013
-
RE: [sympa-users] Subscribers can be added prior to list being approved or declined,
Steve Shipway, 12/10/2013
Archive powered by MHonArc 2.6.19+.