ae480cb3e7
Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
2.1 KiB
HTML
40 lines
2.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}系统设置 - 国内期货监控系统{% endblock %}
|
|
{% block content %}
|
|
<h1 class="page-title">系统设置</h1>
|
|
|
|
<div class="card">
|
|
<h2>企业微信推送</h2>
|
|
<form action="{{ url_for('settings') }}" method="post" class="form-row">
|
|
<input type="hidden" name="action" value="wechat">
|
|
<input name="wechat_webhook" type="url" placeholder="企业微信 Webhook 地址" value="{{ webhook }}" style="flex:1;min-width:300px">
|
|
<button type="submit" class="btn-primary">保存</button>
|
|
</form>
|
|
<p style="font-size:.8rem;color:#888;margin-top:.75rem">在企业微信群中添加机器人后,将 Webhook 地址粘贴到上方保存即可。</p>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>修改密码</h2>
|
|
<form action="{{ url_for('settings') }}" method="post" style="max-width:400px">
|
|
<input type="hidden" name="action" value="password">
|
|
<div style="margin-bottom:.75rem">
|
|
<label style="font-size:.85rem;color:#a9a9ff;display:block;margin-bottom:.35rem">当前账号</label>
|
|
<input type="text" value="{{ username }}" disabled style="width:100%">
|
|
</div>
|
|
<div style="margin-bottom:.75rem">
|
|
<label style="font-size:.85rem;color:#a9a9ff;display:block;margin-bottom:.35rem">原密码</label>
|
|
<input name="old_password" type="password" required style="width:100%">
|
|
</div>
|
|
<div style="margin-bottom:.75rem">
|
|
<label style="font-size:.85rem;color:#a9a9ff;display:block;margin-bottom:.35rem">新密码(至少 6 位)</label>
|
|
<input name="new_password" type="password" required minlength="6" style="width:100%">
|
|
</div>
|
|
<div style="margin-bottom:.75rem">
|
|
<label style="font-size:.85rem;color:#a9a9ff;display:block;margin-bottom:.35rem">确认新密码</label>
|
|
<input name="new_password2" type="password" required minlength="6" style="width:100%">
|
|
</div>
|
|
<button type="submit" class="btn-primary">修改密码</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|