lepisi-pengumuman/App/Views/Data/pengumuman.html
Gregorio Chiko Putra 71fb5e4933 - Added database validation
- Added valid date for posts
- Fix passing data to htmls conflicts
2017-09-06 10:40:05 +07:00

30 lines
792 B
HTML

{% extends "base.html" %}
{% block title %}Pengumuman{% endblock %}
{% block body %}
<h2>List Pengumuman</h2>
{% for post in posts %}
{% 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 %}
{% endfor %}
{% if status %}
<a href="/posts/entry">+ Tambah Pengumuman</a>
<a href="/logout">Logout</a>
{% endif %}
{% endblock %}