14 text-overflow: ellipsis;
29 <& /page/page_title.mas, title=>"Enter new password for user $username" &>
31 <form id="process_reset_password_form" name="process_reset_password_form">
32 <div style="white-space:nowrap">
33 <label class="textlabel" for="new_password" style="white-space:nowrap;">New password</label>
34 <input class="form-control" style="width:150" id="new_password" name="new_password" type="password" />
38 <label class="textlabel" for="confirm_password" >Confirm password</label>
39 <input class="form-control" style="width:150" id="confirm_password" name="confirm_password" type="password" />
41 <input type="hidden" name="sp_person_id" value="<% $person_id %>" />
42 <input type="hidden" name="token" value="<% $token %>" />
44 <button class="btn btn-primary" id="submit_password_reset_button" type="submit" >Reset Password</button>
48 jQuery(document).ready( function() {
50 jQuery('#process_reset_password_form').submit( function(event) {
51 var form_data = jQuery('#process_reset_password_form').serialize();
53 url: '/ajax/user/process_reset_password',
55 error: function(r) { alert('An error occurred! Sorry!'); },
56 success: function(r) {
57 if (r.error) { alert(r.error); }
63 event.preventDefault();