[Mpuls-commits] r1341 - wasko/branches/2.0/mpulsweb/templates/usersettings

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 9 09:47:38 CET 2010


Author: torsten
Date: 2010-02-09 09:47:37 +0100 (Tue, 09 Feb 2010)
New Revision: 1341

Added:
   wasko/branches/2.0/mpulsweb/templates/usersettings/change_password_login.mako
Log:
* mpulsweb/templates/usersettings/change_password_login.mako: Copied
  from waskaweb and adapted link to inherted template.


Copied: wasko/branches/2.0/mpulsweb/templates/usersettings/change_password_login.mako (from rev 1337, wasko/branches/2.0/waskaweb/templates/usersettings/change_password_login.mako)
===================================================================
--- wasko/branches/2.0/waskaweb/templates/usersettings/change_password_login.mako	2010-02-08 16:27:03 UTC (rev 1337)
+++ wasko/branches/2.0/mpulsweb/templates/usersettings/change_password_login.mako	2010-02-09 08:47:37 UTC (rev 1341)
@@ -0,0 +1,41 @@
+## -*- coding: utf-8 -*-
+<%inherit file="../auth/main.mako" />
+<div id="waska_form_login">
+<div id="waska_form_login_pw">
+<h1>${_('adm_header_changepassword_needed')}</h1>
+${self.buildFormErrors()}
+<p>${_('usersettings_p_set_new_pw')}<p>
+<ul>
+  <li>${_('usersettings_li_set_new_pw_first_login')}</li>
+  <li>${_('usersettings_li_set_new_pw_same_pw')}</li>
+  <li>${_('usersettings_li_set_new_pw_adm_pw_force')}</li>
+</ul>
+<p>${_('usersettings_p_insert_new_pw')}
+</p>
+<div id="waska_form_login">
+<form action="${h.url_for(controller="/usersettings", action="changePasswordOnLoginAction")}" method="POST">
+	<fieldset><legend>${_('adm_form_legend_login')}</legend>
+	<div class="waska_form_element w50">
+          % if c.form_errors.get('passwd'):
+	    <label for="passwd" class="error_font">${_('adm_form_newuser_passwd')}</label><br>
+            <input type="password" class="field error_box" id="passwd" name="passwd">
+          % else:   
+            <label for="passwd">${_('adm_form_newuser_passwd')}</label><br>
+            <input type="password" class="field" id="passwd" name="passwd">
+          % endif
+	</div>
+	<div class="waska_form_element w50">
+          % if c.form_errors.get('passwd2'):
+	    <label for="passwd2" class="error_font">${_('adm_form_newuser_passwd_confirm')}</label><br>
+            <input type="password" class="field error_box" id="passwd2" name="passwd2">
+          % else: 
+	    <label for="passwd2">${_('adm_form_newuser_passwd_confirm')}</label><br>
+            <input type="password" class="field" id="passwd2" name="passwd2">
+          % endif
+	</div>
+	</fieldset>
+	<input type="hidden" name="uid" value="${h.getUserId() | h}">
+	<input type="submit" value="${_('adm_form_changepassword_submit')}">
+</form>
+</div>
+</div>


Property changes on: wasko/branches/2.0/mpulsweb/templates/usersettings/change_password_login.mako
___________________________________________________________________
Name: svn:mergeinfo
   + 



More information about the Mpuls-commits mailing list