]> wagnertech.de Git - timetracker.git/blobdiff - week.php
Work in progress enhancing week view.
[timetracker.git] / week.php
index bc1e4717c75a0887c538c142f06db429d6cde245..1b014d2bfe14b31459db0c2a1b5187d87f8f77fb 100644 (file)
--- a/week.php
+++ b/week.php
@@ -148,7 +148,7 @@ class TimeCellRenderer extends DefaultCellRenderer {
     if ($lockedDays[$column-1])
       $field->setEnabled(false);
     $field->setFormName($table->getFormName());
-    $field->setSize(2);
+    $field->setStyle('width: 60px;'); // TODO: need to style everything properly, eventually.
     $field->setValue($table->getValueAt($row,$column)['duration']);
     // Disable control when time entry mode is TYPE_START_FINISH and there is no value in control
     // because we can't supply start and finish times in week view - there are no fields for them.
@@ -179,7 +179,7 @@ if ($user->canManageTeam()) {
 }
 
 // Create week_durations table.
-$table = new Table('week_durations');
+$table = new Table('week_durations', 'week_view_table');
 // $table->setIAScript('markModified'); // TODO: write a script to mark table or particular cells as modified.
 $table->setTableOptions(array('width'=>'100%','cellspacing'=>'1','cellpadding'=>'3','border'=>'0'));
 $table->setRowOptions(array('class'=>'tableHeaderCentered'));