- Added database validation
- Added valid date for posts - Fix passing data to htmls conflicts
This commit is contained in:
@@ -6,18 +6,20 @@
|
||||
<h2>List Pengumuman</h2>
|
||||
|
||||
{% for post in posts %}
|
||||
<h3>Pengumuman {{ post.id }}</h3>
|
||||
{% if status %}
|
||||
<a href="/posts/edit/{{ post.id }}">
|
||||
{% if post.status == 1 %}
|
||||
Edit
|
||||
</a>
|
||||
{% else %}
|
||||
<strike>Edit</strike>
|
||||
</a> (Nonaktif)
|
||||
{% if post.id %}
|
||||
<h3>Pengumuman {{ post.id }}</h3>
|
||||
{% if status %}
|
||||
<a href="/posts/edit/{{ post.id }}">
|
||||
{% if post.status == 1 %}
|
||||
Edit
|
||||
</a>
|
||||
{% elseif post.status == 0 %}
|
||||
<strike>Edit</strike>
|
||||
</a> (Nonaktif)
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<p>{{ post.content|raw }}</p>
|
||||
{% endif %}
|
||||
<p>{{ post.content }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% if status %}
|
||||
|
||||
Reference in New Issue
Block a user