Updated readme and some fixes.

This commit is contained in:
2017-09-25 16:22:29 +07:00
parent 94cd69c529
commit b9a3a6d6b9
3 changed files with 63 additions and 11 deletions

View File

@@ -135,7 +135,9 @@ class Posts
$date = new \DateTime();
$now = $date->format("Y-m-d");
$get_categories = $this->model->showAll([], 'kategori');
$get_categories = $this->model->showAll([
['status', '!=', 0]
], 'kategori');
$categories = [];
if ($get_categories) {
@@ -305,7 +307,7 @@ class Posts
$this->model->update($args, $args['id'], $table);
Session::flash('info', 'Update berhasil');
Session::flash('info', 'Data berhasil diperbarui');
Redirect::to('/posts/category');
die();
}

View File

@@ -88,7 +88,8 @@
<i class="fa fa-times-circle-o fa-fw"></i>
<span class="font-size:smaller;">Matikan</span>
{% elseif cat.status == 0 %}
<span class="font-size:smaller;">Matikan</span>
<i class="fa fa-check fa-fw"></i>
<span class="font-size:smaller;">Aktifkan</span>
{% endif %}
</button>