summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-06-29 15:18:50 +0000
committerNicolas Vigier <boklm@mageia.org>2012-06-29 15:18:50 +0000
commitb2cc17eb1e4e3f3cee969d64f9dc791c54ba04c6 (patch)
treea6b52a04861392fd9f6fa1a9713677361de7183f
parent22e212e441cf748570eafbba0ebacf90eb8c9b63 (diff)
downloadsympa-b2cc17eb1e4e3f3cee969d64f9dc791c54ba04c6.tar
sympa-b2cc17eb1e4e3f3cee969d64f9dc791c54ba04c6.tar.gz
sympa-b2cc17eb1e4e3f3cee969d64f9dc791c54ba04c6.tar.bz2
sympa-b2cc17eb1e4e3f3cee969d64f9dc791c54ba04c6.tar.xz
sympa-b2cc17eb1e4e3f3cee969d64f9dc791c54ba04c6.zip
add loginbanner template
-rw-r--r--loginbanner.tt263
1 files changed, 63 insertions, 0 deletions
diff --git a/loginbanner.tt2 b/loginbanner.tt2
new file mode 100644
index 0000000..263d80d
--- /dev/null
+++ b/loginbanner.tt2
@@ -0,0 +1,63 @@
+<!-- $Id: loginbanner.tt2 6297 2009-11-06 13:55:35Z david.verdin $ -->
+
+ <div id="Identity_not_connect">
+ [% IF use_sso %]
+ <form action="[% path_cgi %]" method="post">
+ <fieldset>
+ <input type="hidden" name="previous_action" value="[% previous_action %]" />
+ <input type="hidden" name="previous_list" value="[% previous_list %]" />
+ <input type="hidden" name="referer" value="[% referer %]" />
+ <input type="hidden" name="list" value="[% list %]" />
+ <input type="hidden" name="action" value="sso_login" />
+ [% IF sso_number == 1 %]
+ [% FOREACH server = sso %]
+ <input type="hidden" name="auth_service_name" value="[% server.key %]" />
+ <input class="MainMenuLinks" type="submit" name="action_sso_login" value="[% server.value %]" />
+ [% END %]
+ [% ELSE %]
+ <label for="auth_service_name">[%|loc%]To login, select your organization authentication server below:[%END%]&nbsp;&nbsp;&nbsp;&nbsp;</label>
+ <select id="auth_service_name" name="auth_service_name" onchange="this.form.submit();">
+ [% FOREACH server = sso %]
+ <option value="[% server.key %]">[% server.value %]</option>
+ [% END %]
+ </select>
+ <input class="MainMenuLinks" type="submit" name="action_sso_login" value="[%|loc%]Go[%END%]" />
+ [% END %]
+ </fieldset>
+ </form>
+ [% END %]
+
+ [% IF use_passwd == '1' %]
+ <form action="[% path_cgi %]" method="post">
+ <fieldset>
+ <input type="hidden" name="previous_action" value="[% previous_action %]" />
+ <input type="hidden" name="previous_list" value="[% previous_list %]" />
+ <input type="hidden" name="referer" value="[% referer %]" />
+ <input type="hidden" name="list" value="[% list %]" />
+
+ <input type="hidden" name="action" value="login" />
+ <label for="email_login">[%|loc%]email address:[%END%]</label>
+ <input type="text" name="email" id="email_login" size="28" value="[% unauthenticated_email %]" /> &nbsp;&nbsp;
+ <label for="passwd" >[%|loc%]password:[%END%]</label>
+ <input type="password" name="passwd" id="passwd" size="8" /> &nbsp;&nbsp;
+ <input class="MainMenuLinks" type="submit" name="action_login" value="[%|loc%]Login[%END%]" />
+ </fieldset>
+ </form>
+ [% END %]
+
+
+[% IF use_passwd == '1' %]
+[% IF authentication_info_url %]
+ <a class="menuLinks" href="[%conf.authentication_info.url%]">[%|loc%]Authentication help[% END %]</a><br />
+[% ELSE %]
+ <div class="remember">
+ <b>
+ <a href="[% path_cgi %]/firstpasswd/[% escaped_init_email %]">[%|loc%]First login?[%END%]</a><br />
+ <a href="[% path_cgi %]/renewpasswd/[% escaped_init_email %]">[%|loc%]Lost password?[%END%]</a>
+ </b>
+ </div>
+[% END %]
+[% END %]
+
+ </div>
+<!-- end loginbanner.tt2 -->