From a75cb1104d186fa657ba455937dd4db1e28dd520 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 25 May 2017 14:15:56 +1200 Subject: [PATCH] Move subnet to advanced setting on session form. it requires advanced knowledge to set so should not show to all teachers in default view. --- add_form.php | 1 + update_form.php | 1 + 2 files changed, 2 insertions(+) diff --git a/add_form.php b/add_form.php index ec04bd8..1fe4668 100644 --- a/add_form.php +++ b/add_form.php @@ -164,6 +164,7 @@ class mod_attendance_add_form extends moodleform { $mform->addHelpButton('subnet', 'requiresubnet', 'attendance'); $mform->disabledif('subnet', 'studentscanmark', 'notchecked'); $mform->setDefault('subnet', $this->_customdata['att']->subnet); + $mform->setAdvanced('subnet'); } else { $mform->addElement('hidden', 'studentscanmark', '0'); diff --git a/update_form.php b/update_form.php index 2ec4029..76ab916 100644 --- a/update_form.php +++ b/update_form.php @@ -119,6 +119,7 @@ class mod_attendance_update_form extends moodleform { $mform->setType('subnet', PARAM_TEXT); $mform->addHelpButton('subnet', 'requiresubnet', 'attendance'); $mform->disabledif('subnet', 'studentscanmark', 'notchecked'); + $mform->setAdvanced('subnet'); $mform->addElement('hidden', 'automarkcompleted', '0'); $mform->settype('automarkcompleted', PARAM_INT);