diff options
author | Olivier Lamy <olamy@apache.org> | 2012-02-02 20:42:35 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-02-02 20:42:35 +0000 |
commit | 96f35efebfa98711dc11f47bb2f99992b1b0b8e4 (patch) | |
tree | 97a84b454bbf42d2097f887a0d3ed057a2adb344 | |
parent | 431a302123ab3c724db39b3c680862cefb4b601e (diff) | |
download | archiva-96f35efebfa98711dc11f47bb2f99992b1b0b8e4.tar.gz archiva-96f35efebfa98711dc11f47bb2f99992b1b0b8e4.zip |
[MRM-1598] use bootstrap css 2.x fix user edition form
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1239827 13f79535-47bb-0310-9956-ffa450edef68
3 files changed, 29 insertions, 29 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-edit.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-edit.html index 6620ac438..5bd61c45e 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-edit.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-edit.html @@ -30,11 +30,11 @@ <div id="user-create-div" class="active"> <div class="row"> <div class="span8 columns"> - <form id="user-create"> + <form id="user-create" class="form-horizontal"> <fieldset id="user-create-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"> {{if $data.username.length>0}} <span class="uneditable-input">${$data.username}</span> {{else}} @@ -42,45 +42,45 @@ {{/if}} </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" data-bind="value: fullName"/> </div> </div> - <div class="clearfix"> - <label for="password">${$.i18n.prop('password')}</label> - <div class="input"> + <div class="control-group"> + <label class="control-label" for="password">${$.i18n.prop('password')}</label> + <div class="controls"> <input type="password" id="password" name="password" class="required" data-bind="value: password"/> </div> </div> - <div class="clearfix"> - <label for="confirmPassword">${$.i18n.prop('confirm.password')}</label> - <div class="input"> + <div class="control-group"> + <label class="control-label" for="confirmPassword">${$.i18n.prop('confirm.password')}</label> + <div class="controls"> <input type="password" id="confirmPassword" name="confirmPassword" data-bind="value: confirmPassword"/> </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" class="required email" data-bind="value: email"/> </div> </div> - <div class="clearfix"> - <label for="validated">${$.i18n.prop('validated')}</label> - <div class="input"> + <div class="control-group"> + <label class="control-label" for="validated">${$.i18n.prop('validated')}</label> + <div class="controls"> <input type="checkbox" id="validated" name="validated" data-bind="checked: validated"/> </div> </div> - <div class="clearfix"> - <label for="locked">${$.i18n.prop('locked')}</label> - <div class="input"> + <div class="control-group"> + <label class="control-label" for="locked">${$.i18n.prop('locked')}</label> + <div class="controls"> <input type="checkbox" id="locked" name="locked" data-bind="checked: locked"/> </div> </div> - <div class="clearfix"> - <label for="passwordChangeRequired">${$.i18n.prop('user.change.password.required')}</label> - <div class="input"> + <div class="control-group"> + <label class="control-label" for="passwordChangeRequired">${$.i18n.prop('user.change.password.required')}</label> + <div class="controls"> <input type="checkbox" id="passwordChangeRequired" name="passwordChangeRequired" data-bind="checked: passwordChangeRequired"/> </div> </div> diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js index e3ce82eff..29cedc470 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js @@ -300,7 +300,7 @@ $(function() { } }, showErrors: function(validator, errorMap, errorList) { - customShowError(validator,errorMap,errorMap); + customShowError("user-create",validator,errorMap,errorMap); } }); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js index bbbdb9212..fa3b6c45e 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js @@ -74,7 +74,7 @@ $(function() { } }, showErrors: function(validator, errorMap, errorList) { - customShowError(validator,errorMap,errorMap); + customShowError("user-create",validator,errorMap,errorMap); } }); $("#main-content #createUserForm #user-create").delegate("#user-create-form-register-button", "click keydown", function(e) { @@ -133,7 +133,7 @@ $(function() { } }, showErrors: function(validator, errorMap, errorList) { - customShowError(validator,errorMap,errorMap); + customShowError("user-create",validator,errorMap,errorMap); } }); $("#main-content #user-create").delegate("#user-create-form-save-button", "click keydown", function(e) { @@ -159,7 +159,7 @@ $(function() { $("#main-content #user-edit-roles-view").attr("data-bind",'template: {name:"user_view_roles_list_tmpl"}'); ko.applyBindings(viewModel,$("#user-edit-roles-view").get(0)); - $("#main-content #edit_user_details_pills_headers").pills(); + $("#main-content #edit_user_details_pills_headers").tabs(); $("#main-content #edit_user_details_pills_headers").bind('change', function (e) { //$.log( $(e.target).attr("href") ); // activated tab |