Add templates/settings.html
This commit is contained in:
parent
f6cd2cb415
commit
6cc08dad0d
28
templates/settings.html
Normal file
28
templates/settings.html
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Bot Configuration</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Core Settings</h1>
|
||||||
|
<form method="POST">
|
||||||
|
{% for row in config %}
|
||||||
|
<label>{{ row.key }}:</label>
|
||||||
|
<input name="{{ row.key }}" value="{{ row.value }}" /><br/>
|
||||||
|
{% endfor %}
|
||||||
|
<button type="submit">Save Settings</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<h1>Membership Plans</h1>
|
||||||
|
<a href="/plans/new">+ New Plan</a>
|
||||||
|
<ul>
|
||||||
|
{% for p in plans %}
|
||||||
|
<li>
|
||||||
|
{{ p.name }} (/{{ p.command_name }}) — {{ p.price_sats }} sats —
|
||||||
|
Expires: {{ p.expiry_type }}
|
||||||
|
<a href="/plans/{{ p.id }}/edit">Edit</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user