MDL-77635 core_grades: Use sticky footer on import grades page
This commit is contained in:
@@ -74,6 +74,6 @@ class gradeimport_direct_import_form extends moodleform {
|
||||
$mform->addElement('advcheckbox', 'forceimport', get_string('forceimport', 'grades'));
|
||||
$mform->addHelpButton('forceimport', 'forceimport', 'grades');
|
||||
$mform->setDefault('forceimport', false);
|
||||
$this->add_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
$this->add_sticky_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,6 +112,6 @@ class gradeimport_direct_mapping_form extends moodleform {
|
||||
$mform->addElement('hidden', 'forceimport', $this->_customdata['forceimport']);
|
||||
$mform->setType('forceimport', PARAM_BOOL);
|
||||
$mform->setConstant('forceimport', $this->_customdata['forceimport']);
|
||||
$this->add_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
$this->add_sticky_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,10 +14,19 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require_once(__DIR__ . "/../../../config.php");
|
||||
require_once($CFG->libdir.'/gradelib.php');
|
||||
require_once($CFG->dirroot.'/grade/lib.php');
|
||||
require_once($CFG->dirroot.'/grade/import/lib.php');
|
||||
/**
|
||||
* Page to import grades directly from a spreadsheet (Excel or Libre Office):
|
||||
*
|
||||
* @package gradeimport
|
||||
* @copyright 2007 Moodle Pty Ltd (http://moodle.com)
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
require_once("../../../config.php");
|
||||
require_once($CFG->libdir . '/gradelib.php');
|
||||
require_once($CFG->dirroot . '/grade/lib.php');
|
||||
require_once($CFG->dirroot . '/grade/import/grade_import_form.php');
|
||||
require_once($CFG->dirroot . '/grade/import/lib.php');
|
||||
require_once($CFG->libdir . '/csvlib.class.php');
|
||||
|
||||
$id = required_param('id', PARAM_INT); // Course id.
|
||||
@@ -124,4 +133,4 @@ if ($formdata = $mform2->get_data()) {
|
||||
// If data hasn't been submitted then display the data mapping form.
|
||||
$mform2->display();
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class grade_import_form extends moodleform {
|
||||
$mform->setType('forceimport', PARAM_BOOL);
|
||||
$mform->addElement('hidden', 'groupid', groups_get_course_group($COURSE));
|
||||
$mform->setType('groupid', PARAM_INT);
|
||||
$this->add_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
$this->add_sticky_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ class grade_import_mapping_form extends moodleform {
|
||||
$mform->addElement('hidden', 'forceimport', $this->_customdata['forceimport']);
|
||||
$mform->setType('forceimport', PARAM_BOOL);
|
||||
$mform->setConstant('forceimport', $this->_customdata['forceimport']);
|
||||
$this->add_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
$this->add_sticky_action_buttons(false, get_string('uploadgrades', 'grades'));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,8 +16,10 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require_once('../../../config.php');
|
||||
require_once('lib.php');
|
||||
require_once('grade_import_form.php');
|
||||
require_once($CFG->libdir . '/gradelib.php');
|
||||
require_once($CFG->dirroot . '/grade/lib.php');
|
||||
require_once($CFG->dirroot . '/grade/import/grade_import_form.php');
|
||||
require_once($CFG->dirroot . '/grade/import/lib.php');
|
||||
|
||||
$id = required_param('id', PARAM_INT); // course id
|
||||
|
||||
|
||||
@@ -185,3 +185,7 @@
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#fitem_id_submitbutton {
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user