64 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			64 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
|   | <!DOCTYPE html> | ||
|  | <html lang="zh-CN"> | ||
|  | <head> | ||
|  |     <meta charset="UTF-8"> | ||
|  |     <title>更新密码</title> | ||
|  |     <link rel="stylesheet" href="https://file.guimiaokeji.com/layui/css/layui.css"> | ||
|  |     <style> | ||
|  |         body { | ||
|  |             display: flex; | ||
|  |             justify-content: center; | ||
|  |             align-items: center; | ||
|  |             height: 100vh; | ||
|  |             background: #f2f2f2; | ||
|  |         } | ||
|  |         .update-password-container { | ||
|  |             width: 400px; | ||
|  |             padding: 20px; | ||
|  |             background: #fff; | ||
|  |             box-shadow: 0 0 10px rgba(0,0,0,0.1); | ||
|  |             border-radius: 5px; | ||
|  |         } | ||
|  |         .update-password-container h2 { | ||
|  |             text-align: center; | ||
|  |             margin-bottom: 20px; | ||
|  |         } | ||
|  |     </style> | ||
|  | </head> | ||
|  | <body> | ||
|  | <div class="update-password-container"> | ||
|  |     <h2>更新密码</h2> | ||
|  |     <form class="layui-form" method="post" action="{% url 'update_password' %}"> | ||
|  |         {% csrf_token %} | ||
|  |         <div class="layui-form-item"> | ||
|  |             {{ form.old_password.label_tag }} | ||
|  |             <div class="layui-input-block"> | ||
|  |                 {{ form.old_password }} | ||
|  |             </div> | ||
|  |         </div> | ||
|  |         <div class="layui-form-item"> | ||
|  |             {{ form.new_password1.label_tag }} | ||
|  |             <div class="layui-input-block"> | ||
|  |                 {{ form.new_password1 }} | ||
|  |             </div> | ||
|  |         </div> | ||
|  |         <div class="layui-form-item"> | ||
|  |             {{ form.new_password2.label_tag }} | ||
|  |             <div class="layui-input-block"> | ||
|  |                 {{ form.new_password2 }} | ||
|  |             </div> | ||
|  |         </div> | ||
|  |         <div class="layui-form-item"> | ||
|  |             <button class="layui-btn layui-btn-normal" lay-submit lay-filter="update_password">更新密码</button> | ||
|  |         </div> | ||
|  |     </form> | ||
|  | </div> | ||
|  | <script src="https://file.guimiaokeji.com/layui/layui.js"></script> | ||
|  | <script> | ||
|  |     layui.use(['form'], function() { | ||
|  |         var form = layui.form; | ||
|  |     }); | ||
|  | </script> | ||
|  | </body> | ||
|  | </html> |