Created
January 28, 2018 02:28
-
-
Save xdite/1804d8361735d0d6f898b968049ca23c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="common-width"> | |
| <div class="container devise-box"> | |
| <div class="row"> | |
| <%= render "devise/left_description" %> | |
| <div class="col-md-7"> | |
| <div class="right-input"> | |
| <h3>重置密码</h3> | |
| <div class="input-area"> | |
| <%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> | |
| <%= f.input :reset_password_token, as: :hidden %> | |
| <%= f.full_error :reset_password_token %> | |
| <%= f.input :password, label: "新密码", required: true, autofocus: true, placeholder:"新密码,至少 8 位英文数字组合" %> | |
| <%= f.input :password_confirmation, label: "确认新密码", required: true %> | |
| <%= f.button :submit, "提交", :class => "btn btn-theme btn-block top-space" %> | |
| <% end %> | |
| </div> | |
| <div class="links-area"> | |
| 返回 | |
| <%= link_to "登录", new_session_path(resource_name) %> | |
| 或 | |
| <%= link_to "注册", new_registration_path(resource_name) %> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment