Files
vps_web/templates/admin/provider_form.html
ddrwode 742b1286c9 哈哈
2026-02-10 11:07:04 +08:00

46 lines
2.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if provider %}编辑{% else %}添加{% endif %}厂商 - 后台</title>
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/admin.css">
</head>
<body class="admin-page">
<header class="admin-header">
<h1>{% if provider %}编辑厂商{% else %}添加厂商{% endif %}</h1>
<nav>
<a href="{{ url_for('admin_providers') }}">← 厂商列表</a>
<a href="{{ url_for('admin_users') }}">用户管理</a>
<a href="{{ url_for('admin_forum_posts') }}">帖子管理</a>
<a href="{{ url_for('admin_forum_comments') }}">评论管理</a>
<a href="{{ url_for('admin_forum_categories') }}">论坛分类</a>
<a href="{{ url_for('admin_forum_reports') }}">举报审核</a>
<a href="{{ url_for('admin_dashboard') }}">总览</a>
<a href="{{ url_for('admin_logout') }}">退出</a>
</nav>
</header>
<main class="admin-main">
{% if error %}
<p class="error">{{ error }}</p>
{% endif %}
<form method="post" class="admin-form">
<div class="form-group">
<label for="name">厂商名称 *</label>
<input type="text" id="name" name="name" value="{{ provider.name if provider else '' }}" required placeholder="如阿里云、Vultr">
</div>
<div class="form-group">
<label for="official_url">默认官网链接(可选)</label>
<input type="url" id="official_url" name="official_url" value="{{ provider.official_url or '' }}" placeholder="https://...">
<span class="hint">该厂商下配置若未单独填链接,前台「官网」将使用此链接。</span>
</div>
<div class="form-actions">
<button type="submit">保存</button>
<a href="{{ url_for('admin_providers') }}" class="btn-cancel">取消</a>
</div>
</form>
</main>
</body>
</html>