2019-04-19 10:23:07 +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">
|
|
|
|
|
2019-04-19 10:41:58 +04:00
|
|
|
{% if article.id %}<input type="hidden" name="id" value="{{ article.id }}">{% endif %}
|
2019-04-28 13:20:36 +04:00
|
|
|
<div>
|
|
|
|
Title:
|
|
|
|
<input type="text" name="title" placeholder="title" required value="{{ article.title }}">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
URL:
|
|
|
|
<input type="text" name="url" placeholder="url" value="{{ article.url }}">
|
|
|
|
</div>
|
2019-04-19 10:41:58 +04:00
|
|
|
<input type="hidden" name="user_id" value="{{ article.user_id }}">
|
2019-04-28 13:20:36 +04:00
|
|
|
<div>
|
|
|
|
CONTENT:
|
|
|
|
<textarea name="body" id="body" cols="30" rows="10" placeholder="body">{{ article.body }}</textarea>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
PUBLISH_AT:
|
|
|
|
<input type="datetime-local" name="publish_at" id="publish_at" value="{{ article.publish_at }}">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
PUBLISHED:
|
|
|
|
<input type="checkbox" id="published_show" {% if article.published %}checked{% endif %} onclick="document.getElementById('published').value = document.getElementById('published_show').checked ? 'true' : 'false'">
|
|
|
|
<input type="hidden" name="published" id="published" value="{% if article.published %}true{%else%}false{% endif %}">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
KEYWORDS:
|
|
|
|
<input type="text" name="keywords" value='{{ article.keywords | join(sep=",") }}'>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
AUTO GENERATE KEYWORDS:
|
|
|
|
<input type="checkbox" id="auto_keywords_show" checked onclick="document.getElementById('auto_keywords').value = document.getElementById('auto_keywords_show').checked ? 'true' : 'false'">
|
|
|
|
<input type="hidden" name="auto_keywords" id="auto_keywords" value="true">
|
|
|
|
</div>
|
2019-04-19 10:23:07 +04:00
|
|
|
|
|
|
|
<button>submit</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|