crablog/templates/admin/edit.tera
2019-04-19 14:23:07 +08:00

24 lines
836 B
Plaintext

<!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="">
<input type="text" name="title" placeholder="title" required value="{{ article.title }}">
<input type="text" name="url" placeholder="url" value="{{ article.url }}">
<textarea name="body" id="" cols="30" rows="10" placeholder="body">{{ article.body }}</textarea>
<input type="datetime-local" name="publish_at" id="" value="{{ article.publish_at }}">
<input type="checkbox" name="published" {% if article.published %}checked{% endif %}>
<button>submit</button>
</form>
</body>
</html>