Sha256: 46bae42addf0a41554d49c06de7eb36603b19e9c366bb91ce1e29d4887f44f35
Contents?: true
Size: 1.08 KB
Versions: 60
Compression:
Stored size: 1.08 KB
Contents
<h1>Reset Password for <%= "#{@edituser.first_name} #{@edituser.last_name}" %></h1> <p><input type='password' name='password' id='password' value="" placeholder='Password' /></p> <p><input type='password' name='password2' id='password2' value="" placeholder='Confirm password' /></p> <div id='message'></div> <div id='controls'> <input type='button' value='Back' onclick="window.location='/admin/users/<%= @edituser.id %>/edit';" /> <input type='button' value='Update Password' onclick="udpatePassword();" /> </div> <% content_for :caboose_js do %> <script type="text/javascript"> var modal = false; $(document).ready(function() { modal = new CabooseModal(500); }); function updatePassword() { $.ajax({ url: '/admin/users/update-password', type: 'post', success: function(resp) { if (resp.success) modal.autosize("<p class='note success'>" + resp.success + "</p>"); if (resp.error) modal.autosize("<p class='note success'>" + resp.error + "</p>"); if (resp.redirect) window.location = resp.redirect; } }); } </script> <% end %>
Version data entries
60 entries across 60 versions & 1 rubygems