Skip to content

Commit

Permalink
Merge pull request #97 from AAU-P5-Moodle/89-documentation-documentat…
Browse files Browse the repository at this point in the history
…ion-for-homework-block

Homework Block doc
  • Loading branch information
CowsenF authored Dec 2, 2024
2 parents d8ed31a + b595cd6 commit ee87cd6
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions server/moodle/blocks/homework/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Homework Block #

This plugin adds a homework block to the dashboard, displaying homework assignments for users.
It also includes a feature to view homework for a given coruse event in the calendar.
Additionally, it offers a map feature that provides a link to a location of an event within the calendar.

## Structure ##

The plugin relies on the <code>mod/homework</code> plugin to enable most of its functionalities.

The map links utilizes Google Map URLs. For more information, visit: <https://developers.google.com/maps/documentation/urls/get-started/>

## installation of Homework Block ##

The plugin can be also installed by putting the contents of this directory to

{your/moodle/dirroot}/blocks/homework

Afterwards, log in to your Moodle site as an admin and go to Site administration >
Notifications_ to complete the installation.

Alternatively, you can run

$ php admin/cli/upgrade.php

to complete the installation from the command line.

## Example of Usage ##

### Homework Block ###
To use the homework block, it needs to be added to the dashboard in edit mode.
Once in edit mode, add the block to the desired location and select <code>Homework</code>:

![SetupHomeworkBlock](readme/SetupHomeworkBlock.png)

Thereafter, the block should display information from all courses relevant to the current user:

![HomeworkBlock](readme/HomeworkBlock.png)

It is also possible to save homework time by using the <code>Time</code> button for a specific homework task on the homework block:

![TimeOfHomework](readme/TimeOfHomework.png)

### Calender Event ###
To view the added information in calendar events, the homework block must be added to the dashboard.
This can be done by entering edit mode, adding the block to the desired location, and selecting <code>Homework</code>:

![SetupHomeworkBlock](readme/SetupHomeworkBlock.png)

When creating an event, select a course to use the added features.
If a location is specified for the event, the plugin will automatically add the link to the location.

![EventSetup](readme/EventSetup.png)

If the event is linked to homework, the associated homework will be displayed within the event:

![Event](readme/Event.png)

## License ##

2024 PV

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.
Binary file added server/moodle/blocks/homework/readme/Event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee87cd6

Please sign in to comment.