diff --git a/App/Views/Data/edit_pengumuman.html b/App/Views/Data/edit_pengumuman.html index fb87c6b..fe0d032 100644 --- a/App/Views/Data/edit_pengumuman.html +++ b/App/Views/Data/edit_pengumuman.html @@ -80,10 +80,12 @@ - {% if post.status == 0 %} - Nonaktif - {% else %} + {% if post.status == 1 %} Aktif + {% elseif post.status == 2 %} + Belum aktif + {% else %} + Nonaktif {% endif %} diff --git a/App/Views/Data/pengumuman.html b/App/Views/Data/pengumuman.html index fc9c4ae..9e1ca5a 100644 --- a/App/Views/Data/pengumuman.html +++ b/App/Views/Data/pengumuman.html @@ -9,13 +9,17 @@ {% if post.id %}

Pengumuman {{ post.id }}

{% if status %} - {% if post.status == 1 %} + Edit - {% elseif (post.status == 0 or post.status == 2) %} + {% elseif post.status == 2 %} + Edit - (Nonaktif) + (Belum aktif) + {% else %} + Edit + (Nonaktif) {% endif %} {% endif %}

{{ post.content|raw }}