<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}}
{{/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>
}
},
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) {
}
},
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) {
$("#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