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

Version Path
caboose-cms-0.2.84 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.83 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.82 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.81 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.80 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.79 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.78 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.71 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.70 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.68 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.67 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.66 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.65 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.64 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.62 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.57 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.55 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.54 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.52 app/views/caboose/users/edit_password.html.erb
caboose-cms-0.2.50 app/views/caboose/users/edit_password.html.erb