[Mpuls-commits] r5897 - base/trunk/mpulsweb/templates/administration

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Mar 9 12:39:36 CET 2012


Author: ludwig
Date: 2012-03-09 12:39:35 +0100 (Fri, 09 Mar 2012)
New Revision: 5897

Modified:
   base/trunk/mpulsweb/templates/administration/new_user.mako
Log:
Issue 2946: Change the formating so that input boxes don't overlap in
the new_user dialog. The fields should use 100% (w100) of the div area.
Also add height 1.6em to a select box, so it fits the rest of the fields.


Modified: base/trunk/mpulsweb/templates/administration/new_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/new_user.mako	2012-03-09 10:53:44 UTC (rev 5896)
+++ base/trunk/mpulsweb/templates/administration/new_user.mako	2012-03-09 11:39:35 UTC (rev 5897)
@@ -44,11 +44,11 @@
               ${_('Forename')}
             </label>
             <br>
-            <input type="text" class="field error_box" id="firstname" 
+            <input type="text" class="field error_box w100" id="firstname" 
                    name="firstname" maxlength="60">
           % else:
             <label for="firstname">${_('Forename')}</label><br>
-            <input type="text" class="field" id="firstname" name="firstname"
+            <input type="text" class="field w100" id="firstname" name="firstname"
                    maxlength="64">
           % endif
         </div>
@@ -58,48 +58,50 @@
               ${_('Surname')}
             </label>
             <br>
-            <input type="text" class="field error_box" id="lasttname" 
+            <input type="text" class="field error_box w100" id="lasttname" 
                    name="lastname" maxlength="64">
           % else:
             <label for="lastname">${_('Surname')}</label><br>
-            <input type="text" class="field" id="lasttname" name="lastname" 
+            <input type="text" class="field w100" id="lasttname" name="lastname" 
                    maxlength="64">
           % endif       
         </div>
         <div class="w25">
           <label for="telephone">${_('Phone')}</label><br>
-          <input type="text" class="field" id="telephone" name="telephone" 
+          <input type="text" class="field w100" id="telephone" name="telephone" 
                  maxlength="32">
         </div>
         <div class="w75">
           <label for="room">${_('Room')}</label><br>
-          <input type="text" class="field" id="room" name="room" maxlength="16">
+          <input type="text" class="field w100" id="room" name="room" maxlength="16">
         </div>
         <div class="w100">
           <label for="branchoffice">${_('Institution')}</label>
           <br>
-          <input type="text" class="field" id="branchoffice" name="branchoffice"
+          <input type="text" class="field w100" id="branchoffice"
+	         name="branchoffice"
                  maxlength="64">
         </div>
       </fieldset>
       <fieldset><legend>${_('Information about login')}</legend>
         <div class="w25">
           % if c.form_errors.get('login'):
-            <label for="login" class="error_font">
+            <label for="login" class="error_font w100">
               ${_('Login')}
             </label>
             <br>
-            <input type="text" class="field error_box" id="login" name="login" 
+            <input type="text" class="field error_box w100" id="login"
+	            name="login" 
                    maxlength="64">
           % else:
             <label for="login">${_('Login')}</label><br>
-            <input type="text" class="field" id="login" name="login" 
+            <input type="text" class="field w100" id="login" name="login" 
                    maxlength="64">
           % endif
         </div>
         <div class="w50">
           <label for="role">${_('User role')}</label><br>
-          <select name="role" id="role">
+          <select name="role" id="role" class="w100" style="height:1.6em;">
             % if h.getLogin() != 'adm':
               <option value="cm" >${_('role_user')}</option>
             % endif



More information about the Mpuls-commits mailing list