Bladeren bron

Changed some visual layout elements on the timesheet page.

Adam Day 9 jaren geleden
bovenliggende
commit
32d8636040
2 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. 3 0
      application/controllers/timesheetController.php
  2. 3 3
      application/views/timesheet/index.phtml

+ 3 - 0
application/controllers/timesheetController.php

@@ -41,10 +41,13 @@ class timesheetController extends Staple_Controller
                     if($entry->save())
                     {
                         $this->view->message = "Entry saved.";
+                        $form = new insertTimeForm();
+                        $this->view->insertTimeForm = $form;
                     }
                     else
                     {
                         $this->view->message = "ERROR: Unable to save entry.";
+                        $this->view->insertTimeForm = $form;
                     }
                 }
                 else

+ 3 - 3
application/views/timesheet/index.phtml

@@ -50,7 +50,7 @@
             echo "
             <div class=\"row\">
                 <div class=\"small-4 medium-2 columns\">
-                    <a href=\"".$this->link(array('timesheet','edit',$entry->id))."\" class=\"button secondary radius expand\">".$entry->date."</a>
+                    <a href=\"".$this->link(array('timesheet','edit',$entry->id))."\" class=\"\">".$entry->date."</a>
                 </div>
                 <div class=\"small-4 medium-2 columns\">
                     <span data-tooltip aria-haspopup=\"true\" class=\"has-tip\" title=\"Entered as: ".$entry->inTime."\">".$entry->roundedInTime."</span>
@@ -59,10 +59,10 @@
                     <span data-tooltip aria-haspopup=\"true\" class=\"has-tip\" title=\"Entered as: ".$entry->outTime."\">".$entry->roundedOutTime."</span>
                 </div>
                 <div class=\"small-4 medium-2 columns\">
-                    ".$entry->lessTime." <small>Min.</small>
+                    ".$entry->lessTime." Min.
                 </div>
                 <div class=\"small-4 medium-2 columns\">
-                    <b>".$entry->timeWorked."</b> <small>Hours</small>
+                    <b>".$entry->timeWorked."</b> Hours
                 </div>
                 <div class=\"small-4 medium-2 columns\">
                     ".$entry->codeName."