Browse Source

Move subnet to advanced setting on session form.

it requires advanced knowledge to set so should
not show to all teachers in default view.
MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
17f51afaf1
  1. 1
      add_form.php
  2. 1
      update_form.php

1
add_form.php

@ -164,6 +164,7 @@ class mod_attendance_add_form extends moodleform {
$mform->addHelpButton('subnet', 'requiresubnet', 'attendance'); $mform->addHelpButton('subnet', 'requiresubnet', 'attendance');
$mform->disabledif('subnet', 'studentscanmark', 'notchecked'); $mform->disabledif('subnet', 'studentscanmark', 'notchecked');
$mform->setDefault('subnet', $this->_customdata['att']->subnet); $mform->setDefault('subnet', $this->_customdata['att']->subnet);
$mform->setAdvanced('subnet');
} else { } else {
$mform->addElement('hidden', 'studentscanmark', '0'); $mform->addElement('hidden', 'studentscanmark', '0');

1
update_form.php

@ -119,6 +119,7 @@ class mod_attendance_update_form extends moodleform {
$mform->setType('subnet', PARAM_TEXT); $mform->setType('subnet', PARAM_TEXT);
$mform->addHelpButton('subnet', 'requiresubnet', 'attendance'); $mform->addHelpButton('subnet', 'requiresubnet', 'attendance');
$mform->disabledif('subnet', 'studentscanmark', 'notchecked'); $mform->disabledif('subnet', 'studentscanmark', 'notchecked');
$mform->setAdvanced('subnet');
$mform->addElement('hidden', 'automarkcompleted', '0'); $mform->addElement('hidden', 'automarkcompleted', '0');
$mform->settype('automarkcompleted', PARAM_INT); $mform->settype('automarkcompleted', PARAM_INT);

Loading…
Cancel
Save