From 05f213045e771b2ce2fdc18eb33e3ac6213d6362 Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Thu, 7 Sep 2017 09:04:03 +0700 Subject: [PATCH] Change status display of posts --- App/Views/Data/edit_pengumuman.html | 8 +++++--- App/Views/Data/pengumuman.html | 10 +++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) 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 }}