14 text-overflow: ellipsis;
29 <& /page/page_title.mas, title=>"Enter new password for user $username" &>
31 <div class="modal fade" id="post_email_reset_password_dialog" name="post_email_reset_password_dialog" data-backdrop="false" aria-labelledby="post_email_reset_password_dialog_title">
32 <div class="modal-dialog modal-sm" role="document">
33 <div class="modal-content">
34 <div class="modal-header" style="text-align:center">
35 <h3 class="modal-title" id="post_email_reset_password_dialog_title">Reset Password</h3>
37 <div class="modal-body">
38 <form id="process_reset_password_form" name="process_reset_password_form">
39 <div style="white-space:nowrap">
40 <label class="textlabel" for="new_password" style="white-space:nowrap;">New password</label>
41 <input class="form-control" style="width:150" id="new_password" name="new_password" type="password" />
45 <label class="textlabel" for="confirm_password" >Confirm password</label>
46 <input class="form-control" style="width:150" id="confirm_password" name="confirm_password" type="password" />
48 <input type="hidden" name="sp_person_id" value="<% $person_id %>" />
49 <input type="hidden" name="token" value="<% $token %>" />
51 <button class="btn btn-primary" id="submit_password_reset_button" type="submit" >Reset Password</button>
54 <div class="modal-footer">
61 jQuery(document).ready( function() {
63 jQuery('#post_email_reset_password_dialog').appendTo("body").modal("show");
65 jQuery('#post_email_reset_password_dialog').on('shown.bs.modal', function() {
66 jQuery(document).off('focusin.modal');
69 jQuery('#process_reset_password_form').submit( function(event) {
70 var form_data = jQuery('#process_reset_password_form').serialize();
72 url: '/ajax/user/process_reset_password',
74 error: function(r) { alert('An error occurred! Sorry!'); },
75 success: function(r) {
76 if (r.error) { alert(r.error); }
82 event.preventDefault();