diff options
author | Michael Scherer <misc@mageia.org> | 2011-06-08 18:49:19 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-06-08 18:49:19 +0000 |
commit | 22e212e441cf748570eafbba0ebacf90eb8c9b63 (patch) | |
tree | 59a8b9868f9a7f20798d3601e73474e1702ba1f4 | |
parent | f110667bb37c768f8756ddf0ac5eb587bee6ef28 (diff) | |
download | sympa-22e212e441cf748570eafbba0ebacf90eb8c9b63.tar sympa-22e212e441cf748570eafbba0ebacf90eb8c9b63.tar.gz sympa-22e212e441cf748570eafbba0ebacf90eb8c9b63.tar.bz2 sympa-22e212e441cf748570eafbba0ebacf90eb8c9b63.tar.xz sympa-22e212e441cf748570eafbba0ebacf90eb8c9b63.zip |
disable subscription using the webform, and force people to use identity
-rw-r--r-- | subrequest.tt2 | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/subrequest.tt2 b/subrequest.tt2 new file mode 100644 index 0000000..23d63bd --- /dev/null +++ b/subrequest.tt2 @@ -0,0 +1,73 @@ +<!-- $Id: subrequest.tt2 6099 2009-08-13 08:31:02Z olivier.salaun $ --> + + + [% IF status == 'auth' %] + + [% IF listconf.custom_attribute.size == 0 %] + [%|loc(list)%]You requested a subscription to list %1[%END%]. + [%|loc%]To confirm your request, please click the button below:[%END%]<br /> + [% ELSE %] [%|loc(list)%]You want to subscribe to list %1[%END%]. + [%|loc%]Please fill in the form below and then click the validation button[%END%]<br /> + <br /> + [% END %] + <br /><br /> + + <form action="[% path_cgi %]" method="post"> + <fieldset> + <input type="hidden" name="list" value="[% list %]" /> + <input type="hidden" name="email" value="[% user.email %]" /> + [% PROCESS edit_attributes.tt2 %] + + <input type="hidden" name="via_subrequest" value="1" /> + <input class="MainMenuLinks" type="submit" name="action_subscribe" value="[%|loc(list)%]I subscribe to list %1[%END%]" /> + </fieldset> + </form> + + [% ELSIF status == 'notauth_passwordsent' %] + + [%|loc(list)%]You requested a subscription to list %1[%END%]. + <br /><br /> + [%|loc%]To confirm your identity and prevent anyone from subscribing you to + this list against your will, a message containing an validation link was sent to the e-mail address you provided.[%END%] <br /><br /> + [%|loc(list)%]Check your mailbox for new messages and click this link. This will confirm your subscription to list %1.[%END%] + + [% ELSIF status == 'notauth_noemail' %] + + In order to subscribe to the list, you should open a account on <a href="http://identity.mageia.org/">our account system.</a>.<br /> + If you already have one, please log using your account in order to subscribe. + + [% ELSIF status == 'notauth' %] + + [%|loc(list)%]To confirm your subscription to list %1, please enter + your password below[%END%] + [% IF listconf.custom_attribute.size == 0 %] + [%|loc%], in addition to the personnal informations requested.[%END%] + [% END %] + + <form action="[% path_cgi %]" METHOD=POST> + <fieldset> + <label><b>[%|loc%]e-mail address[%END%]</b></label> [% email %]<br /> + <label for="passwd">[%|loc%]password[%END%]</label> + <input id="passwd" type="password" name="passwd" size="20" /><br /> + + [% PROCESS edit_attributes.tt2 %] + <input type="hidden" name="list" value="[% list %]" /> + <input type="hidden" name="email" value="[% email %]" /> + <input type="hidden" name="previous_list" value="[% list %]" /> + <input type="hidden" name="previous_action" value="subrequest" /> + <input type="hidden" name="via_subrequest" value="1" /> + <input class="MainMenuLinks" type="submit" name="action_subscribe" value="[%|loc%]Subscribe[%END%]" /> + <input class="MainMenuLinks" type="submit" name="action_requestpasswd" value="[%|loc%]My password?[%END%]" /> + </fieldset> + </form> + + [% ELSIF status == 'notauth_subscriber' %] + + <strong>[%|loc(list)%]You are already subscribed to list %1[%END%].</strong> + <br /><br /> + + + [% PROCESS 'loginbanner.tt2' %] + + [% END %] +<!-- end subrequest.tt2 --> |