diff --git a/README.md b/README.md index c93d109..72e2b6b 100755 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # block_timetable # -TODO Describe the plugin shortly here. +block_timetable is a moodle-block-plugin that provides timetables based on Untis export data. -TODO Provide more detailed description here. +![timetable text](doc/timetable1_small.png) + +The plugin requires that the mod_timetable plugin is installed. ## License ## diff --git a/doc/.gitkeep b/doc/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/doc/timetable1.png b/doc/timetable1.png new file mode 100644 index 0000000..5ca0612 Binary files /dev/null and b/doc/timetable1.png differ diff --git a/doc/timetable1_small.png b/doc/timetable1_small.png new file mode 100644 index 0000000..4ce3478 Binary files /dev/null and b/doc/timetable1_small.png differ diff --git a/edit_form.php b/edit_form.php index 8fd0f8d..b634815 100755 --- a/edit_form.php +++ b/edit_form.php @@ -40,6 +40,9 @@ class block_timetable_edit_form extends block_edit_form { $mform->addElement('header', 'configheader', get_string('blocksettings', 'block')); // Please keep in mind that all elements defined here must start with 'config_'. + $mform->addElement('text', 'config_class', get_string('class', 'block_timetable')); + $mform->setDefault('config_class', ''); + $mform->setType('config_class', PARAM_RAW); } } diff --git a/lang/en/block_timetable.php b/lang/en/block_timetable.php index 0cc3c12..6b14a68 100755 --- a/lang/en/block_timetable.php +++ b/lang/en/block_timetable.php @@ -26,3 +26,6 @@ defined('MOODLE_INTERNAL') || die(); $string['pluginname'] = 'timetable'; +$string['timetable:addinstance'] = 'add timetable'; +$string['timetable:addmyinstance'] = 'add timetable'; +$string['class'] = 'class'; diff --git a/version.php b/version.php index 57d2397..1bba05c 100755 --- a/version.php +++ b/version.php @@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'block_timetable'; $plugin->release = '0.1.0'; -$plugin->version = 2020112101; +$plugin->version = 2020120402; $plugin->requires = 2020061500; $plugin->maturity = MATURITY_ALPHA; $plugin->dependencies = [