]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1598] use bootstrap css 2.x fix edit user details form
authorOlivier Lamy <olamy@apache.org>
Thu, 2 Feb 2012 20:41:38 +0000 (20:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 2 Feb 2012 20:41:38 +0000 (20:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1239821 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/pom.xml
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/password-change-form.html
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-edit-form.html
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js

index e1ab376c486e12a56731cb175147d4c2407c6438..cf0132c06caf4475f797065cf6a1d4350ab2dfa6 100644 (file)
             <archiva.javascriptLog>${archiva.javascriptLog}</archiva.javascriptLog>
             <archiva.logMissingI18n>${archiva.logMissingI18n}</archiva.logMissingI18n>
           </systemProperties>
+          <additionalClasspathDirs>
+            <additionalClasspathDir>src/test/tomcat</additionalClasspathDir>
+          </additionalClasspathDirs>
         </configuration>
         <dependencies>
           <dependency>
index 4207d22246d6cc38440a570e3f8764c7207acac2..18ce617c5d0a53088e7d0d9f73b2085a5b2eeb05 100644 (file)
@@ -18,7 +18,7 @@
 -->
 <div id="modal-password-change" class="modal hide fade">
   <div class="modal-header">
-    <a href="#" class="close">&times;</a>
+    <a href="#" class="close" data-dismiss="modal">&times;</a>
     <h3>${$.i18n.prop('password.section.title')}</h3>
   </div>
   <div class="modal-body" id="modal-password-change-content">
index 9c6db36671c88ea35042e188ec01f8624a601c57..3df4d84fb40a400fd90ec7e067abd43d05a5f5f9 100644 (file)
 -->
 <div id="modal-user-edit" class="modal hide fade">
   <div class="modal-header">
-    <a href="#" class="close">&times;</a>
+    <a href="#" class="close" data-dismiss="modal">&times;</a>
     <h3>${$.i18n.prop('password.section.title')}</h3>
   </div>
   <div class="modal-body" id="modal-user-edit-content">
-      <form id="user-edit-form">
+      <form id="user-edit-form" class="form-horizontal">
         <div id="modal-user-edit-err-message" class="alert-message error" style="display:none"></div>
         <fieldset>
-          <div class="clearfix">
-            <label for="username">${$.i18n.prop('username')}</label>
-            <div class="input" id="username-div">
+          <div class="control-group">
+            <label class="control-label" for="username">${$.i18n.prop('username')}</label>
+            <div class="controls" id="username-div">
               <span class="uneditable-input" id="username"></span>
             </div>
           </div>
-          <div class="clearfix">
-            <label for="fullname">${$.i18n.prop('full.name')}</label>
-            <div class="input">
+          <div class="control-group">
+            <label class="control-label" for="fullname">${$.i18n.prop('full.name')}</label>
+            <div class="controls">
               <input type="text" id="fullname" name="fullname" size="30" class="required"/>
             </div>
           </div>
-          <div class="clearfix">
-            <label for="email">${$.i18n.prop('email.address')}</label>
-            <div class="input">
+          <div class="control-group">
+            <label class="control-label" for="email">${$.i18n.prop('email.address')}</label>
+            <div class="controls">
               <input type="text" id="email" name="email" size="30" class="required email"/>
             </div>
           </div>
-          <div class="clearfix" id="user-edit-form-current-password-div">
-            <label for="userEditFormCurrentPassword">${$.i18n.prop('password.existing')}</label>
-            <div class="input">
+          <div class="control-group" id="user-edit-form-current-password-div">
+            <label class="control-label" for="userEditFormCurrentPassword">${$.i18n.prop('password.existing')}</label>
+            <div class="controls">
               <input type="password" id="userEditFormCurrentPassword" name="userEditFormCurrentPassword" class="required" value=""/>
             </div>
           </div>
 
-          <div class="clearfix">
-            <label for="userEditFormNewPassword">${$.i18n.prop('password.new')}</label>
-            <div class="input">
+          <div class="control-group">
+            <label class="control-label" for="userEditFormNewPassword">${$.i18n.prop('password.new')}</label>
+            <div class="controls">
               <input type="password" id="userEditFormNewPassword" name="userEditFormNewPassword" class="" value=""/>
             </div>
           </div>
 
-          <div class="clearfix">
-            <label for="userEditFormNewPasswordConfirm">${$.i18n.prop('password.new.confirm')}</label>
-            <div class="input">
+          <div class="control-group">
+            <label class="control-label" for="userEditFormNewPasswordConfirm">${$.i18n.prop('password.new.confirm')}</label>
+            <div class="controls">
               <input type="password" id="userEditFormNewPasswordConfirm" name="userEditFormNewPasswordConfirm" class="" value=""/>
             </div>
           </div>
index c71f8f1a826a3a6c942bb2193faff7d06de42894..6783ae457737ea3b0ed5be48065f8443c49b6212 100644 (file)
@@ -528,7 +528,7 @@ $(function() {
         }
       },
       showErrors: function(validator, errorMap, errorList) {
-        customShowError(validator,errorMap,errorMap);
+        customShowError("user-edit-form",validator,errorMap,errorMap);
       }
     });