diff --git a/salaryman/app/controllers/IndexController.php b/salaryman/app/controllers/IndexController.php index c1a13e5987bff116c1d5741420226c1a67def186..fbbe9eca994378cc966c6c6b1f8d57d218e93b17 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 9409bee828a493e194f386f67b941bf38505a31d..5c55b919ccf8327f941430ee7026dc777052bddd 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>