Commit graph

109 commits

Author SHA1 Message Date
Peter Dias
535bbed24e MDL-72413 data: Use the common module for setting the header 2021-12-13 09:49:34 +08:00
Mihail Geshoski
6470282e93 MDL-71913 mod_data: Add tertiary navigation 2021-10-13 11:05:29 +08:00
Michael Hawkins
1ea2ae17be MDL-71162 mod_data: Ensure completion conditions displayed on all tabs 2021-04-29 00:41:07 +08:00
Mathew May
5cac5fa428 MDL-64506 templates: BS2 m-x-x to BS4 mx-x 2019-04-03 19:47:11 +08:00
Neill Magill
0b673d9714 MDL-62944 mod_data: Action menu missing from database pages
The action menu was missing from many of the database activity pages,
which meant that it could not be accessed until enough had been done to
the activity to make the editing tabs that used view.php accessible.
2018-08-31 10:15:32 +01:00
Andrew Hancox
ca5f3e0a2e MDL-57455 mod_data: Implement tagging 2017-10-12 16:59:14 +08:00
Juan Leyva
df0c549f88 MDL-57924 mod_data: Move update record code to new function 2017-03-30 02:35:59 +02:00
Juan Leyva
b376f55e59 MDL-57923 mod_data: Move entry creation code to function 2017-03-30 02:26:11 +02:00
Damyon Wiese
398be7c897 MDL-56725 mod_data: coding style
Fixes from lines in the previous commit.
2016-11-10 16:21:01 +08:00
Damyon Wiese
e85fda95c6 MDL-56725 mod_data: Style fixes for boost theme 2016-11-10 16:21:01 +08:00
Adrian Greeve
c18ad4afd6 MDL-49861 mod_data: Save and add another button clears fields. 2016-03-30 16:18:50 +08:00
Johannes Burk
97fe80ad68 MDL-50664 mod_data: add 'manageapproved' setting.
New function data_user_can_manage_entry checks whether a user is allowed to manage an entry.
Considering manageentries capability, data_in_readonly_period() result,
ownership (determined by data_isowner()), approval and manageapproved setting.
2015-09-15 07:16:40 +00:00
John Okely
1c3b2058c8 MDL-5583 mod_data: Improve required fields
Fix accidental <tr> in some field modify screens
Update mod_data version
Change required asterisk to image
Improve required error message
Fix required icon positions
Remove required code from date field
Add name in labels for fields
Add required field option for multimenu
Remove old required field title text modifier
Add multimenu to behat
Add more comprehensive behat tests
Reload old input when an input error occurs
Behat grammar fixes
Allow location of 0, 0
Use html_writer
Fix existing mod_data behat tests
2015-03-09 13:56:16 +08:00
Damyon Wiese
b89cca197e MDL-5583 mod_data: Add required fields
This is implemented for most fields but not all. The reason is that there are
some fields for which this does not make sense because no entry is a valid entry.

The supported fields are:
    checkbox
    file
    latlong
    menu
    number
    picture
    radio
    text
    textarea
    url

The unsupported fields are:
    date
    multimenu
2015-03-06 09:55:49 +08:00
Damyon Wiese
ec57e8b3f4 Merge branch 'MDL-46500_master' of https://github.com/dmonllao/moodle 2014-11-05 16:52:07 +08:00
Adrian Greeve
c4a6c65c1b MDL-47697 mod_data: Fix group id change when editing.
When a teacher edits an entry in the database module
it would change the group ID to the one that the teacher
currently had selected.

Thanks to Steve Bond for providing a patch.
2014-11-04 09:58:11 +13:00
David Monllao
57a69e7151 MDL-46500 mod_data: Removing duplicate filemanager initialisations 2014-10-30 16:10:15 +08:00
Ben Kelada
848e04183f MDL-46500 filepicker: prevent error when element does not exist 2014-10-30 14:14:15 +08:00
Eloy Lafuente (stronk7)
7927245288 Merge branch '44154-27' of git://github.com/samhemelryk/moodle 2014-02-18 00:55:19 +01:00
Sam Hemelryk
002a2a44a7 MDL-44154 mod_data: unified @package use 2014-02-18 11:22:41 +13:00
Mark Nelson
76ca452c12 MDL-40061 mod_data: replaced 'add' add_to_log call with an event 2014-02-14 18:39:50 -08:00
Mark Nelson
45eae37967 MDL-40061 mod_data: replaced 'update' add_to_log call with an event 2014-02-14 18:13:05 -08:00
Rossiani Wijaya
8c6ca6961a MDL-42339 - removed double formatting for set_title() and set_heading() 2014-02-05 14:47:23 +08:00
Andrew Davis
66e2b9f8c2 MDL-38856 reposition activity group control and fixed titles in chat, database and forum 2013-09-02 11:49:39 +07:00
AL Rachels
15d5885f84 MDL-39040 - mod_data: Database description available in add entry tab. 2013-04-30 09:06:01 +08:00
Ankit Agarwal
7a241d8102 MDL-30166 Remove deprecated %fullname% from core
Thanks to Matheus Kautzmann for the initial patch.
2013-03-12 10:38:09 +08:00
Adrian Greeve
173c6f2c8b MDL-7660 - mod_data: Changed the filepicker to filemanager for field elements.
This allows users to delete their files or pictures when editing their entries
which was previously unavailable.

Also the use of the filemanager allows for drag and drop to be active.
2013-01-04 12:17:47 +08:00
David Monllao
0b3b8c30e2 MDL-34464 mod_data Replace all instances of get_context_instance() with respective context_XXXX class in mod/data 2012-07-27 09:13:57 +08:00
Petr Skoda
cdbea7eed1 MDL-31607 use full course object for require_login() if already available
This eliminates 1 db query.
2012-04-22 17:41:47 +02:00
Petr Skoda
54352ac979 MDL-32251 more E_STRICT fixes 2012-03-30 19:02:58 +02:00
Sam Hemelryk
d9fc82157b Merge branch 'MDL-31811-master-2' of git://git.luns.net.uk/moodle 2012-03-12 15:15:23 +13:00
Eloy Lafuente (stronk7)
0b56e99431 MDL-23787 data: Init 2 arrays (global scope) that may conflict with other global scope code 2012-03-07 01:47:31 +01:00
Andrew Robert Nicols
e8027a40cd MDL-31811 Add/Correct checks on activity read-only periods 2012-03-06 09:30:32 +00:00
Sam Hemelryk
8ebbb06adf MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:27 +12:00
Rossiani Wijaya
e4e9611570 MDL-26464: remove 'add entry' link on setting block when it reachs the max number of records. Link removal does not apply to user who has data:manageentries capability (eg: teacher). 2011-03-11 10:03:14 +08:00
Petr Skoda
431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Dan Poltawski
e594fc8d13 mod/data MDL-24133 - footer called before header 2011-01-09 19:31:25 +00:00
Sam Hemelryk
7a534d7a5c mod-data MDL-25281 Removed format_text call that we messing up database entries. 2010-11-19 02:58:42 +00:00
Andrea Bicciolo
570de7a6da mdl-24033 ported on Moodle 2.0. Thanks to Daniele Cordella 2010-09-20 14:38:07 +00:00
Andrew Davis
a7409db46a filters MDL-23456 added filtering for when adding a database activity entry 2010-07-23 03:50:11 +00:00
Martin Dougiamas
e822f07ba2 MDL-23475 Some cleanups to make adding/editing entries a bit smoother. Fixed buttons on Delete too. 2010-07-22 06:29:14 +00:00
Andrew Davis
aa60291e12 rss MDL-23391 alter the rss urls to be component names ie mod_forum instead of just module name ie forum 2010-07-19 10:57:52 +00:00
Dongsheng Cai
bbdfd8ce01 MDL-22574, move import form to import.php, use csv_import_reader class to process csv file, use filepicker to replace legacy upload form. 2010-06-04 08:21:24 +00:00
Rossiani Wijaya
91bc072a31 MDL-20447 - add heading to the page 2010-05-28 02:30:14 +00:00
Andrew Davis
fcce139aa3 RSS MDL-22204 committing new RSS code. Uses a token to ID the user. RSS feeds also generated/updated as needed rather than by cron.php 2010-05-02 11:43:57 +00:00
David Mudrak
7719b4db37 MDL-21695 Database module now uses new help strings
AMOS BEGIN
 HLP data/exportzip.html,[exportaszip_help,mod_data]
 HLP data/fields.html,[newfield_help,mod_data]
 HLP data/fieldmappings.html,[fieldmappings_help,mod_data]
 HLP data/importcsv.html,[csvimport_help,mod_data]
 HLP data/importfromfile.html,[fromfile_help,mod_data]
 HLP data/maxentries.html,[maxentries_help,mod_data]
 HLP data/requireapproval.html,[requireapproval_help,mod_data]
 HLP data/requiredentries.html,[requiredentries_help,mod_data]
 HLP data/requiredentriestoview.html,[requiredentriestoview_help,mod_data]
 HLP data/savepreset.html,[saveaspreset_help,mod_data]
 HLP data/tags.html,[availabletags_help,mod_data]
 HLP data/usepreset.html,[usestandard_help,mod_data]
AMOS END
2010-04-30 14:56:41 +00:00
Petr Skoda
596509e431 MDL-21695 renaming ->help_icon() to old_help_icon() and going to introduce new help_icon() with new parameters and detailed debugging - hopefully this will help during the conversion to new help 2010-04-13 20:34:27 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Dongsheng Cai
26032c2d20 "MDL-15405, data module to use filemanager" 2010-03-05 05:37:09 +00:00
Petr Skoda
60409fe103 MDL-21532 ->in_head() now really exceptional (after overrlib removal there will be just a few of them) 2010-02-06 14:09:33 +00:00