26 lines
977 B
HTML
26 lines
977 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="zh-CN">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>编辑用户</title>
|
||
|
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<h1>编辑用户</h1>
|
||
|
<form action="{{ url_for('edit_user', user_id=user.id) }}" method="POST" enctype="multipart/form-data">
|
||
|
<div class="form-group">
|
||
|
<label for="username">用户名:</label>
|
||
|
<input type="text" id="username" name="username" value="{{ user.username }}" required>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="userphoto">用户照片:</label>
|
||
|
<input type="file" id="userphoto" name="userphoto" accept="image/*">
|
||
|
</div>
|
||
|
<button type="submit" class="btn">保存更改</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|