2018-10-24 08:12:16 +04:00
|
|
|
|
|
|
|
|
2018-10-23 10:54:58 +04:00
|
|
|
<h2>login as: {{ admin.username }}</h2>
|
2018-10-14 07:07:36 +04:00
|
|
|
|
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-12-10 07:30:35 +04:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>id</th>
|
|
|
|
<th>title</th>
|
|
|
|
<th>url</th>
|
|
|
|
<th>publish time</th>
|
|
|
|
<th>action</th>
|
|
|
|
</tr>
|
|
|
|
{% for article in articles %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ article.id }}</td>
|
|
|
|
<td>{{ article.title }}</td>
|
|
|
|
<td>{{ article.url }}</td>
|
|
|
|
<td>{{ article.publish_at }}</td>
|
2019-01-04 19:07:18 +04:00
|
|
|
<td><a href="/admin/article/{{ article.id }}">EDIT</a> <form action="/admin/article/{{ article.id }}" method="POST"> <input type="hidden" name="_method" value="DELETE"> <button>DELETE</button></form></td>
|
2018-12-10 07:30:35 +04:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2018-10-24 07:48:36 +04:00
|
|
|
|
|
|
|
<h2>Change Password</h2>
|
|
|
|
|
|
|
|
<form action="/admin/password" method="post">
|
|
|
|
|
|
|
|
<input type="password" name="password" placeholder="new password" required>
|
|
|
|
|
2018-10-24 09:35:41 +04:00
|
|
|
<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>
|