From 5ad305d07e43c9fe4bf97acfd019b5d5dd5a1519 Mon Sep 17 00:00:00 2001
From: elvanowen <vanzz_95@hotmail.com>
Date: Mon, 16 May 2016 17:26:06 +0700
Subject: [PATCH] Everything

---
 salaryman/app/controllers/IndexController.php | 4 ++--
 salaryman/app/views/index/look.volt           | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/salaryman/app/controllers/IndexController.php b/salaryman/app/controllers/IndexController.php
index c1a13e5..fbbe9ec 100644
--- a/salaryman/app/controllers/IndexController.php
+++ b/salaryman/app/controllers/IndexController.php
@@ -106,7 +106,7 @@ class IndexController extends ControllerBase
             $this->view->year = $this->dispatcher->getParam("year");
             $this->view->month = $this->dispatcher->getParam("month");
 
-            $this->tag->setDefault("rapel", $this->view->rapel);
+            $this->tag->setDefault("rapel", 0);
         } else {
             return $this->dispatcher->forward(array("controller" => "index", "action" => "index"));
         }
@@ -170,7 +170,7 @@ class IndexController extends ControllerBase
         //         ->addMessage($result)
         //         ->showMessage();
 
-        return $this->dispatcher->forward(array("controller" => "index", "action" => "look"));
+        return $this->response->redirect("look/n/" + $this->session->nip + "/y/" . date("Y") . "/m/" . date("m"));
     }
 
     public function notFoundAction(){
diff --git a/salaryman/app/views/index/look.volt b/salaryman/app/views/index/look.volt
index 9409bee..5c55b91 100644
--- a/salaryman/app/views/index/look.volt
+++ b/salaryman/app/views/index/look.volt
@@ -29,7 +29,7 @@
           <table class="table table-striped m-b-none">
             <thead>
               <tr>
-                <th>Jenis</th>
+                <th width="250">Jenis</th>
                 <th>Jumlah</th>
               </tr>
             </thead>
@@ -61,12 +61,12 @@
               <tr>
                 <td>Akumulasi Rapel</td>
                 <td>
-                  {{ form("rapel/edit") }}
+                  {{ rapel }}
+                  <br>
 
+                  {{ form("rapel/edit", "placeholder" : "Input perubahan") }}
                     {{ text_field("rapel") }}
-
                     {{ submit_button("Edit", "class" : "btn btn-sm btn-info") }}
-
                   {{ end_form() }}
                 </td>
               </tr>
-- 
GitLab