Spaces:
Sleeping
Sleeping
Create detail.html
Browse files- app/templates/detail.html +30 -0
app/templates/detail.html
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
{% block body %}
|
| 3 |
+
{% if not d %}
|
| 4 |
+
<p>見つかりませんでした。</p>
|
| 5 |
+
{% else %}
|
| 6 |
+
<div class="card">
|
| 7 |
+
<h2>#{{ d.id }} {{ d.title }}</h2>
|
| 8 |
+
<div class="muted">status: {{ d.status.value }} / subjectA: {{ d.subject_a }} / subjectB: {{ d.subject_b }}</div>
|
| 9 |
+
<pre style="white-space:pre-wrap">{{ d.body_md }}</pre>
|
| 10 |
+
</div>
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
<div class="card">
|
| 14 |
+
<h3>承認/配信設定</h3>
|
| 15 |
+
<form method="post" action="/content/{{ d.id }}/approve">
|
| 16 |
+
<label>承認</label>
|
| 17 |
+
<select name="approve"><option value="true">承認</option><option value="false">差戻し</option></select>
|
| 18 |
+
<p>件名A <input type="text" name="subject_a" value="{{ d.subject_a or '' }}" style="width:100%"/></p>
|
| 19 |
+
<p>件名B <input type="text" name="subject_b" value="{{ d.subject_b or '' }}" style="width:100%"/></p>
|
| 20 |
+
<p>メール宛先(カンマ区切り)<input type="text" name="deliver_email_list" value="{{ d.deliver_email_list or '' }}" style="width:100%"/></p>
|
| 21 |
+
<label><input type="checkbox" name="deliver_x" {% if d.deliver_x %}checked{% endif %}/> Xにも投稿</label>
|
| 22 |
+
<label><input type="checkbox" name="deliver_note" {% if d.deliver_note %}checked{% endif %}/> noteにも投稿(Webhook)</label>
|
| 23 |
+
<p><button type="submit">保存</button></p>
|
| 24 |
+
</form>
|
| 25 |
+
<form method="post" action="/deliver/{{ d.id }}">
|
| 26 |
+
<button type="submit">今すぐ配信</button>
|
| 27 |
+
</form>
|
| 28 |
+
</div>
|
| 29 |
+
{% endif %}
|
| 30 |
+
{% endblock %}
|