crablog/static/admin/edit.tera

25 lines
805 B
Plaintext
Raw Normal View History

2018-10-22 09:45:39 +04:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="/admin/article" method="post">
<input type="hidden" name="id" value="{{ post.id }}">
<input type="text" name="title" placeholder="title" required value="{{ post.title }}">
2018-10-22 17:55:03 +04:00
<input type="text" name="url" placeholder="url" value="{{ post.url }}">
2018-10-22 09:45:39 +04:00
<textarea name="body" id="" cols="30" rows="10" placeholder="body">{{ post.body }}</textarea>
<input type="datetime-local" name="publish_at" id="">
<input type="checkbox" name="published" {% if post.published %}checked{% endif %}>
<button>submit</button>
</form>
</body>
</html>