Attendances: Reduced the column width in attendances and re-ordered legend buttons for a clearer pogress

skala
Yannick Warnier 12 years ago
parent b5f929e60d
commit 6db940c93e
  1. 4
      main/attendance/attendance_sheet.php
  2. 6
      main/inc/lib/attendance.lib.php

@ -299,7 +299,7 @@ $(document).ready(function() {
}
$result .= '<th width="800px" style="text-align:center">';
$result .= '<center><div style="width:65px;">'.$datetime.'&nbsp;';
$result .= '<center><div style="width:40px;">'.$datetime.'<br />';
if (api_is_allowed_to_edit(null, true)) {
$result .= '<span id="attendance_lock" style="cursor:pointer">'.(!$is_locked_attendance || api_is_platform_admin()?$img_lock:'').'</span>';
@ -476,4 +476,4 @@ $(document).ready(function() {
<?php }
?>
</table>
<?php } ?>
<?php } ?>

@ -1418,11 +1418,11 @@ class Attendance
public function get_attendance_states() {
$attendance_states = array(
'4' => array('label' => get_lang('Default'), 'class' => 'btn') ,
'1' => array('label' => get_lang('Present'), 'class' => 'btn-success') ,
'0' => array('label' => get_lang('Absent'), 'class' => 'btn-danger') ,
'3' => array('label' => get_lang('Late'), 'class' => 'btn-info') ,
'2' => array('label' => get_lang('VeryLate'), 'class' => 'btn-warning') ,
'0' => array('label' => get_lang('Absent'), 'class' => 'btn-danger') ,
'4' => array('label' => get_lang('Default'), 'class' => 'btn') ,
);
return $attendance_states;
}
@ -1450,4 +1450,4 @@ class Attendance
}
return null;
}
}
}

Loading…
Cancel
Save