Browse Source

CONTRIB-3992 fix padding between mon-sun checkboxes on add session form

MOODLE_23_STABLE
Dan Marsden 12 years ago
parent
commit
ec8a7939a0
  1. 2
      add_form.php
  2. 3
      styles.css

2
add_form.php

@ -132,7 +132,7 @@ class mod_attendance_add_form extends moodleform {
if ($CFG->calendar_startwday !== '0') { // Week start from sunday. if ($CFG->calendar_startwday !== '0') { // Week start from sunday.
$sdays[] =& $mform->createElement('checkbox', 'Sun', '', get_string('sunday', 'calendar')); $sdays[] =& $mform->createElement('checkbox', 'Sun', '', get_string('sunday', 'calendar'));
} }
$mform->addGroup($sdays, 'sdays', get_string('sessiondays', 'attendance'), array(' '), true); $mform->addGroup($sdays, 'sdays', get_string('sessiondays', 'attendance'), array('     '), true);
$mform->disabledIf('sdays', 'addmultiply', 'notchecked'); $mform->disabledIf('sdays', 'addmultiply', 'notchecked');
$period = array(1=>1, 2, 3, 4, 5, 6, 7, 8); $period = array(1=>1, 2, 3, 4, 5, 6, 7, 8);

3
styles.css

@ -123,3 +123,6 @@
.path-mod-attendance .attsessions_manage_table .action-icon img.smallicon { .path-mod-attendance .attsessions_manage_table .action-icon img.smallicon {
margin-left: 5px; margin-left: 5px;
} }
#page-mod-attendance-sessions input[type="checkbox"] {
margin-right: 2px;
}
Loading…
Cancel
Save