diff --git a/index.php b/index.php
index 8d26655..0a2fc6d 100644
--- a/index.php
+++ b/index.php
@@ -202,9 +202,15 @@ if ($csv && $userlist) { // Only show CSV if there are some users
groups_print_course_menu($course,$CFG->wwwroot.'/report/ilbenrol/?course='.$course->id);
// Print filter form
+ echo $OUTPUT->box_start();
+ echo ''.get_string('filter', 'report_ilbenrol').'';
$mform->display();
+ echo $OUTPUT->box_end();
+ echo '
';
// Print summary table
+ echo $OUTPUT->box_start();
+ echo ''.get_string('summary', 'report_ilbenrol').'';
$thead = array('');
$talign = array('left');
foreach ($roles as $role) {
@@ -236,6 +242,8 @@ if ($csv && $userlist) { // Only show CSV if there are some users
echo html_writer::table($table);
}
+ echo $OUTPUT->box_end();
+ echo '
';
}
// If no users in this filter
@@ -352,7 +360,7 @@ if ($total > ILBENROL_REPORT_PAGE) {
// Start of table
if (!$csv) {
- print '
'; // ugh
+ print '
'; // ugh
print $pagingbar;
diff --git a/lang/en/report_ilbenrol.php b/lang/en/report_ilbenrol.php
index 462ae70..324bd81 100644
--- a/lang/en/report_ilbenrol.php
+++ b/lang/en/report_ilbenrol.php
@@ -26,6 +26,7 @@
$string['pluginname'] = 'ILB Enrol Confirmation';
$string['title'] = 'ILB Enrol Confirmation Report';
$string['filter'] = 'Filters';
+$string['summary'] = 'Summaries';
$string['filterfields'] = 'Filter fields';
$string['userroles'] = 'User roles';
$string['confirmed'] = 'Role to confirmed enrollment';
diff --git a/lang/pt_br/report_ilbenrol.php b/lang/pt_br/report_ilbenrol.php
index 598f5aa..2db79f6 100644
--- a/lang/pt_br/report_ilbenrol.php
+++ b/lang/pt_br/report_ilbenrol.php
@@ -26,6 +26,7 @@
$string['pluginname'] = 'Confirmação de matrícula ILB';
$string['title'] = 'Relatório de confirmação de matrícula';
$string['filter'] = 'Filtros';
+$string['summary'] = 'Sumários';
$string['filterfields'] = 'Campos de filtragem';
$string['userroles'] = 'Funções';
$string['confirmed'] = 'Função para matrícula confirmada';
diff --git a/report_form.php b/report_form.php
index be8b6f3..d91f922 100644
--- a/report_form.php
+++ b/report_form.php
@@ -49,10 +49,10 @@ class filter_form extends moodleform {
$courseid = $this->_courseid;
$filterfields = $this->_filterfields;
- $mform->addElement('header', 'filter', get_string('filter', 'report_ilbenrol'));
+// $mform->addElement('header', 'filter', get_string('filter', 'report_ilbenrol'));
foreach ($filterfields as $field) {
- $mform->addElement('static', $field->shortname, $field->name, '');
+ $mform->addElement('header', $field->shortname, $field->name);
$options = explode("\n", $field->param1);
foreach ($options as $option) {
$mform->addElement('checkbox', "{$field->shortname}[$option]", $option);
@@ -61,5 +61,6 @@ class filter_form extends moodleform {
$mform->addElement('submit', 'filterbutton', get_string('applyfilter', 'report_ilbenrol'));
$mform->addElement('hidden', 'course', $courseid);
+ $mform->closeHeaderBefore('filterbutton');
}
}