MDL-75148 mod_data: Improve presets list page
commit599aca679b25a7dd9a0e910ded4d0533a11c7ebf
authorSara Arjona <sara@moodle.com>
Thu, 7 Jul 2022 15:16:33 +0000 (7 17:16 +0200)
committerSara Arjona <sara@moodle.com>
Mon, 1 Aug 2022 10:08:16 +0000 (1 12:08 +0200)
treec938424e86ff213a2f8c1bdd8e042c11067eca78
parent06b86fdfc343bc5fbd728bc8d1ad371d848f05c4
MDL-75148 mod_data: Improve presets list page

- Add a new help text.
- Add captions to table columns.
- Move action icons to action menu, and fix code to display the remove
action only for presets created by users.
- CSS improvements to fit the prototype.

In order to achive the previous points, the renderer has been improved,
to return the data and let the mustache to print it properly (instead of
returning the formatted HTML table).
mod/data/classes/output/presets.php
mod/data/lang/en/data.php
mod/data/styles.css
mod/data/templates/presets.mustache
mod/data/tests/behat/data_presets.feature [new file with mode: 0644]