36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
<section class="cp-content col-md-12 cp-login-page">
|
|
<div class="cp-page-title">Reset Password</div>
|
|
<div class="cp-login-box">
|
|
<% if @user_found %>
|
|
<form action="/cpanel/update_password" method="post" id="cp-login">
|
|
<div class="line-login">
|
|
<span class="icon-lock"><i class="fa fa-key" aria-hidden="true"></i></span>
|
|
</div>
|
|
<span class="line-login">
|
|
<label for="cp-login-password" class="text-input">Password :</label>
|
|
<input type="password" name="password" id="cp-login-password" />
|
|
</span>
|
|
<span class="line-login">
|
|
<label for="cp-login-pw" class="text-input">Confirm Password :</label>
|
|
<input type="password" name="confirm_password" id="cp-login-pw" />
|
|
</span>
|
|
<span class="line-login">
|
|
<%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
|
|
<input type="hidden" value=<%= @user_id %> name="user_id"/>
|
|
<input type="submit" value="Set Password" class="btn btn-success">
|
|
</span>
|
|
</form>
|
|
<% else %>
|
|
<div class="alert alert-danger" role="alert">Sorry, user not found.</div>
|
|
<% end %>
|
|
</div>
|
|
<% if !@user_found %>
|
|
<div class="cp-forgot-box">
|
|
<p>
|
|
<a href="/cpanel/login">
|
|
Login
|
|
</a>
|
|
</p>
|
|
</div>
|
|
<% end %>
|
|
</section> |