Sha256: 6b58c4ab6eaa9bdacdf273ea7b4eeec5bbc67a3044e21123e358b9f029b47425

Contents?: true

Size: 1.41 KB

Versions: 849

Compression:

Stored size: 1.41 KB

Contents

<h1>Reset Password</h1>

<% if @user.nil? %>
  <p class='note error'>The given reset ID is invalid.</p>
  <p class='buttons'><input type='button' value='Close' onclick="parent.window.location='/';" /></p>
<% else %>
  <form action='/login/reset-password' method='post' id='reset_password_form'>
  <input type='hidden' name='id' id='id' value='<%= @reset_id %>' />		
  <table cellpadding='4' cellspacing='0' border='0'>
  <tr><td>New Password:	</td><td><input type='password' name='pass1' id='pass1' style='width: 250px;' /></td></tr>
  <tr><td>Confirm:		  </td><td><input type='password' name='pass2' id='pass2' style='width: 250px;' /></td></tr>
  </table><br />
  <div id='message'></div>
  <p class='buttons'>
  <input type='submit' value='Reset Password' onclick='reset_password(); return false;' />
  <input type='button' value='Cancel' 			  onclick="window.location='/';" />
  </p>
  </form>
<% end %>

<%= content_for :caboose_js do %>
<script type='text/javascript'>

var modal = false;
$(window).load(function() {
  modal = new CabooseModal(400);
});

<% if !@user.nil? %>
function reset_password()
{
  $.ajax({
    url: '/login/reset-password',
    type: 'post',
    data: $('#reset_password_form').serialize(),
    success: function(resp) {
      if (resp.error) modal.autosize("<p class='note error'>" + resp.error + "</p>");
      if (resp.redirect) window.location = resp.redirect;    
    }
  });
}
<% end %>

</script>
<% end %>

Version data entries

849 entries across 849 versions & 1 rubygems

Version Path
caboose-cms-0.9.173 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.172 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.171 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.170 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.169 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.168 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.167 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.166 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.165 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.164 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.163 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.162 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.161 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.160 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.159 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.158 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.157 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.156 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.155 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.154 app/views/caboose/login/reset_password_form.html.erb