Sha256: d12e1a13b7261578fafebdc43326a4efe6a3561c474366ffad083c298c061a4e

Contents?: true

Size: 1.62 KB

Versions: 37

Compression:

Stored size: 1.62 KB

Contents

<div class="caboose-login-wrapper">
  <div class="caboose-login-form-wrapper">
    <% if @user.nil? %>
      <p class='note error'>The given reset ID is invalid.</p>
    <% else %>
      <h5>Reset Password</h5>
      <p>Please enter a new password for your account.</p>
      <form action="/login/reset-password" method="POST" id="caboose-reset-form">
        <input type='hidden' name='id' id='id' value='<%= @reset_id %>' />
        <div class="field">
          <label for="caboose-register-password1">Password</label>
          <input type="password" name="pass1" id="caboose-register-password1" />
        </div>
        <div class="field">
          <label for="caboose-register-password2">Confirm Password</label>
          <input type="password" name="pass2" id="caboose-register-password2" />
        </div>
        <input type="submit" class="btn" id="caboose-login-btn" value="Reset Password" onclick="caboose_user_reset();return false;" />
      </form>
      <div id="caboose-login-message"></div>
    <% end %>
  </div>
</div>

<% content_for :css do %>
  <%= stylesheet_link_tag 'caboose/login' %>
<% end %>

<% content_for :js do %>
<script type="text/javascript">
function caboose_user_reset() 
{
  $('#caboose-login-message').html("<p class='note loading'>Resetting your password...</p>");
  $.ajax({
    url: '/login/reset-password',
    type: 'post',
    data: $('#caboose-reset-form').serialize(),
    success: function(resp) {
      if (resp.error) $('#caboose-login-message').html("<p class='note error'>" + resp.error + "</p>");
      else if (resp.redirect)
        window.location = resp.redirect;
    }   
  });
}
</script>
<% end %>

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-1.0.2 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-1.0.1 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.228 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.227 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.226 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.225 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.224 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.223 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.222 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.221 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.220 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.219 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.218 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.217 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.216 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.215 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.214 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.213 app/views/caboose/login/reset_password_form.html.erb
caboose-cms-0.9.212 app/views/caboose/login/reset_password_form.html.erb