39 lines
1.6 KiB
HTML
39 lines
1.6 KiB
HTML
<!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>
|
||
</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>
|