Browse Source

Remove !important in css and some unused vars.

MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
80738cf870
  1. 2
      renderer.php
  2. 5
      student_attendance_form.php
  3. 7
      styles.css
  4. 1
      tests/attendance_webservices_test.php
  5. 1
      update_form.php

2
renderer.php

@ -68,7 +68,7 @@ class mod_attendance_renderer extends plugin_renderer_base {
$filtertable->data[0][] = $this->render_view_controls($fcontrols); $filtertable->data[0][] = $this->render_view_controls($fcontrols);
$o = html_writer::table($filtertable); $o = html_writer::table($filtertable);
$o = $this->output->container($o, 'attfiltercontrols attwidth'); $o = $this->output->container($o, 'attfiltercontrols');
return $o; return $o;
} }

5
student_attendance_form.php

@ -19,13 +19,10 @@ require_once($CFG->libdir.'/formslib.php');
class mod_attendance_student_attendance_form extends moodleform { class mod_attendance_student_attendance_form extends moodleform {
public function definition() { public function definition() {
global $CFG, $USER; global $USER;
$mform =& $this->_form; $mform =& $this->_form;
$course = $this->_customdata['course'];
$cm = $this->_customdata['cm'];
$modcontext = $this->_customdata['modcontext'];
$attforsession = $this->_customdata['session']; $attforsession = $this->_customdata['session'];
$attblock = $this->_customdata['attendance']; $attblock = $this->_customdata['attendance'];

7
styles.css

@ -1,8 +1,4 @@
.path-mod-attendance .attbtn { .path-mod-attendance .attbtn {
-khtml-border-radius: 5px;
-moz-border-radius: 5px;
-opera-border-radius: 5px;
-webkit-border-radius: 5px;
border:1px solid #AAAAAA; border:1px solid #AAAAAA;
border-radius: 5px; border-radius: 5px;
margin-left: 2px; margin-left: 2px;
@ -17,9 +13,10 @@
} }
.path-mod-attendance .attfiltercontrols { .path-mod-attendance .attfiltercontrols {
margin-bottom: 10px !important; margin-bottom: 10px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:90%;
} }
.path-mod-attendance .attfiltercontrols #currentdate{ .path-mod-attendance .attfiltercontrols #currentdate{

1
tests/attendance_webservices_test.php

@ -63,7 +63,6 @@ class attendance_webservices_tests extends advanced_testcase {
$this->setUser($this->teacher); $this->setUser($this->teacher);
$sessions = array();
$session = new stdClass(); $session = new stdClass();
$session->sessdate = time(); $session->sessdate = time();
$session->duration = 6000; $session->duration = 6000;

1
update_form.php

@ -61,7 +61,6 @@ class mod_attendance_update_form extends moodleform {
$endhour = floor($endtime / HOURSECS); $endhour = floor($endtime / HOURSECS);
$endminute = floor(($endtime - $endhour * HOURSECS) / MINSECS); $endminute = floor(($endtime - $endhour * HOURSECS) / MINSECS);
$sesendtime = $sess->sessdate + $sess->duration;
$data = array('sessiondate' => $sess->sessdate, $data = array('sessiondate' => $sess->sessdate,
'sestime' => array('starthour' => $starthour, 'startminute' => $startminute, 'sestime' => array('starthour' => $starthour, 'startminute' => $startminute,
'endhour' => $endhour, 'endminute' => $endminute), 'endhour' => $endhour, 'endminute' => $endminute),

Loading…
Cancel
Save