[Mpuls-commits] r5677 - base/trunk/mpulsweb/templates/usersettings

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 1 11:23:19 CET 2011


Author: ludwig
Date: 2011-12-01 11:23:14 +0100 (Thu, 01 Dec 2011)
New Revision: 5677

Modified:
   base/trunk/mpulsweb/templates/usersettings/change_password.mako
Log:
Issue 2712: Use table to display change pw form.
Now all input fields are in one column.


Modified: base/trunk/mpulsweb/templates/usersettings/change_password.mako
===================================================================
--- base/trunk/mpulsweb/templates/usersettings/change_password.mako	2011-12-01 09:36:43 UTC (rev 5676)
+++ base/trunk/mpulsweb/templates/usersettings/change_password.mako	2011-12-01 10:23:14 UTC (rev 5677)
@@ -29,37 +29,52 @@
 <p class="import_p">${_('The new password must contain of 12 letter at least and must contain 2 non-character at least. ')}</p>
 <div class="import_box_dialog">
 <form action="${h.url_for(controller="usersettings", action="changePasswordAction")}" method="POST" autocomplete="off">
-<div>
+<table>
   % if c.form_errors.get('oldpasswd'):
+    <tr><td>
     <label class="import_label" for="oldpasswd" class="error_font"><strong class="import_number">1. </strong>${_('Enter old password')}:</label>
+    </td><td>
     <input type="password" class="field error_box" id="oldpasswd" name="oldpasswd">
+    </td></tr>
   % else:
+    <tr><td>
     <label class="import_label" for="oldpasswd"><strong class="import_number">1. </strong>${_('Enter old password')}:</label>
+    </td><td>
     <input type="password" class="field" id="oldpasswd" name="oldpasswd">
+    </td></tr>
   % endif
-</div> 
-<div>
   % if c.form_errors.get('passwd'):
+    <tr><td>
     <label class="import_label" for="passwd" class="error_font"><strong class="import_number">2. </strong>${_('Enter new password')}:</label>
-    <input type="password" class="field error_box" id="passwd" name="passwd">
+    </td><td>
+    <input type="password" class="field error_box" id="passwd" name="passwd" style="margin: 0 0 0 0;">
+    </td></tr>
   % else:
+    <tr><td>
     <label class="import_label" for="passwd"><strong class="import_number">2. </strong>${_('Enter new password')}:</label>
-    <input type="password" class="field" id="passwd" name="passwd">
+    </td><td>
+    <input type="password" class="field" id="passwd" name="passwd" style="margin: 0 0 0 0;">
+    </td></tr>
   % endif
-</div>
-<div>
   % if c.form_errors.get('passwd2'):
+    <tr><td>
     <label class="import_label" for="passwd2" class="error_font"><strong class="import_number">3. </strong>${_('Repeat pasword')}:</label>
+    </td><td>
     <input type="password" class="field error_box" id="passwd2" name="passwd2">
+    </td></tr>
   % else:
+    <tr><td>
     <label class="import_label" for="passwd2"><strong class="import_number">3. </strong>${_('Repeat pasword')}:</label>
+    </td><td>
     <input type="password" class="field" id="passwd2" name="passwd2">
+    </td></tr>
   % endif
-</div>
-<div>
+  <tr><td> 
   <label class="import_label" for="passwd2"><strong class="import_number">4. </strong>Neues Passwort speichern:</label>
+  </td><td>
   <input id="account_pw_sub" class="btn_space" type="submit" value="${_('Save')}">
-</div>
+  </td></tr>
+</table>
 </form>
 </div>
 </div>



More information about the Mpuls-commits mailing list