Skip to content

Commit

Permalink
2.3 (Build: 2015060803)
Browse files Browse the repository at this point in the history
Responsive table layout and tooltips for mobile access - both phone and tablet. Uses footable (http://fooplugins.com/footable-demos/) to dymanically shrink the table to show only core information. The rest is displayed underneath with a drop down toggle to view it. Features expand all and collapse all toggles, search, pagination and course filter. Uses tooltips (http://osvaldas.info/elegant-css-and-jquery-tooltip-responsive-mobile-friendly) that display when hovered-over on desktops and when clicked-on on mobile devices. Moved some hard-coded text to the languages file to ensure cross-language compatibility.
  • Loading branch information
Jessica Gramp committed Jun 8, 2015
1 parent 93d9a49 commit 0eabe23
Show file tree
Hide file tree
Showing 17 changed files with 473 additions and 69 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Admin and manager can see all grades for all users (unless permissions prohibit
This report is based on the work done by David Bezemer, which in turn is based on work done by Karen Holland, Mei Jin, Jiajia Chen.
This plugin also uses SQL originating from Richard Havinga, but adds information from additional Moodle activities.
The code for using an external database is authored by Juan Leyva.
The idea for this reporting tool originated with Dr Jason Davies <[email protected]> and Dr John Mitchell <[email protected]>
The idea for this reporting tool originated with Dr Jason Davies and Dr John Mitchell
The tool is also based on outputs from a Jisc project on 'Assessment Careers: enhancing learning pathways
through assessment' directed by Gwyneth Hughes with input from Tim Neumann who collaborated with UCL for this plugin.

Expand All @@ -29,6 +29,9 @@ The report requires jQuery to be enabled, otherwise sorting and searching will n
---
Change log:

2.3 (Build: 2015060803)
Responsive table layout and tooltips for mobile access - both phone and tablet. Uses footable (http://fooplugins.com/footable-demos/) to dymanically shrink the table to show only core information. The rest is displayed underneath with a drop down toggle to view it. Features expand all and collapse all toggles, search, pagination and course filter. Uses tooltips (http://osvaldas.info/elegant-css-and-jquery-tooltip-responsive-mobile-friendly) that display when hovered-over on desktops and when clicked-on on mobile devices. Moved some hard-coded text to the languages file to ensure cross-language compatibility.

2.2 (Build: 2015051001)
Separated the data from the interface code. get_data() returns the resultset, get_content() calls get_data(). Enables re-use of the query and data elsewhere in moodle, without rendering the data in the way that the report does. Change contributed by Mike Grant.

Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@

$PAGE->requires->jquery();
$PAGE->requires->jquery_plugin('dataTables', 'report_myfeedback');
$PAGE->requires->jquery_plugin('footable', 'report_myfeedback');
$PAGE->requires->jquery_plugin('tooltip', 'report_myfeedback');

require_login();

Expand Down Expand Up @@ -77,15 +79,13 @@
echo $OUTPUT->notification(get_string('userdeleted'));
die();
}

echo $OUTPUT->heading(
get_string('pluginname', 'report_myfeedback') . " " . get_string('for', 'calendar') . " " .
$userlinked);

$content = $report->get_content();
echo $content->text;
echo $OUTPUT->container_start('info');
echo $OUTPUT->container_end();
// Enable sorting.
// Enable sorting with dataTable.
echo "<script>$('#grades').dataTable({'aaSorting': []});</script>";
echo $OUTPUT->footer();
Binary file added jquery/FooTable-2/css/fonts/footable.eot
Binary file not shown.
78 changes: 78 additions & 0 deletions jquery/FooTable-2/css/fonts/footable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added jquery/FooTable-2/css/fonts/footable.ttf
Binary file not shown.
Binary file added jquery/FooTable-2/css/fonts/footable.woff
Binary file not shown.
Loading

0 comments on commit 0eabe23

Please sign in to comment.