crablog/static/admin/index.tera

36 lines
747 B
Plaintext
Raw Normal View History

{% if flash %}
<p>{{ flash.name }}: {{ flash.message }}</p>
{% endif %}
2018-10-23 10:54:58 +04:00
<h2>login as: {{ admin.username }}</h2>
2018-10-23 10:54:58 +04:00
<a href="/admin/article/new">new article</a>
2018-10-24 07:48:36 +04:00
<h2>Article List</h2>
2018-10-22 09:45:39 +04:00
<ul>
2018-10-23 10:18:56 +04:00
{% for article in articles %}
2018-10-22 09:45:39 +04:00
<li>
2018-10-23 10:18:56 +04:00
<a href="/admin/article/{{ article.id }}">{{ article.title }}</a>
2018-10-22 09:45:39 +04:00
</li>
{% endfor %}
2018-10-24 07:48:36 +04:00
</ul>
<h2>Change Password</h2>
<form action="/admin/password" method="post">
<input type="password" name="password" placeholder="new password" required>
<button>change</button>
</form>
<h2>Change setting</h2>
<form action="/admin/setting" method="post">
<input type="text" name="name" placeholder="setting name" required>
<input type="text" name="value" placeholder="value" required>
2018-10-24 07:48:36 +04:00
<button>change</button>
</form>