Commit Graph

29 Commits

Author SHA1 Message Date
Marcus Green f9729dcfe0 MDL-23919 mod_data: add requiredentries to completion settings
Added required entries text field to the completion criteria area.
This field accepts a number.

If the legacy Entries required field has a value greater than 0 it will
be displayed and editable. For new instances this field will not be displayed.
2017-03-31 15:20:44 +01:00
Andrew Nicols 4e2e54eed0 MDL-55866 mod_data: Remember editor enabled state for templates
Some templates can legitimately contain invalid HTML (e.g. mismatched tags)
because the templates operate in pairs.

In these instances we should not use an editor because the nature of the
editor (content editable) means that the browser automatically corrects all
HTML supplied to it, thus breaking the template entirely.

Therefore we need to disable HTML editors for some templates, and do so in
a way tied to the instance of the activity, rather than to a specific user.

This patch adds a new 'config' field, with matching setters and getters, to
allow such per-instance values to be stored.
2016-09-15 08:38:10 +08:00
Dan Poltawski b174e9efa6 MDL-53149 mod_data: add timemodified field to db schema 2016-03-15 23:31:32 +01: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
David Monllao 25ffb8d561 MDL-5583 mod_data: Unify mod_data version 2015-03-10 10:08:32 +08: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
Petr Škoda 7a18f49c60 MDL-37726 remove PREVIOUS/NEXT from all install.xml files
YAY!
2013-01-29 22:34:46 +01:00
Petr Skoda bb88a54d06 MDL-31985 remove text sizes from all install.xml files 2012-03-11 15:55:37 +01:00
Petr Skoda c3dd6b01fe MDL-27982 drop UNSIGNED attributes from all install.xml files 2012-03-06 12:01:10 +01:00
Andrew Davis b253798edd data MDL-24473 corrected the data table description 2010-10-01 08:08:11 +00:00
Andrew Davis cfe3ba15bb rating MDL-21657 removed definitions of data_ratings and glossary_ratings 2010-04-28 04:00:17 +00:00
Andrew Davis 5db9b119bd rating MDL-21657 moved upgrade of data table to mod/data/ upgrade script and updated install.xml 2010-03-17 05:50:08 +00:00
Dongsheng Cai e998effa3d "MDL-20346, comments api for data module" 2009-11-18 06:00:48 +00:00
stronk7 74c288a100 MDL-18577 drop enums support - step2: enums out from install.xml files 2009-05-01 14:07:43 +00:00
skodak d0bcf735aa MDL-18910 normalised module intro and introformat 2009-04-20 19:57:04 +00:00
skodak 63b0256797 MDL-18910 normalised module intro and introformat 2009-04-20 18:51:37 +00:00
skodak 9c82ff2acd MDL-17457 migrated all modules to new db/install.php; added upgrade.txt file for devs converting contrib modules 2009-01-12 21:13:28 +00:00
dongsheng f430641247 "MDL-14548, modify the notification field in data module to NOT NULL and default value 0, see tracker" 2008-04-29 06:42:18 +00:00
skodak 25322ba36f MDL-10990 4) added missing indexes into data module; merged from MOODLE_19_STABLE 2008-02-26 22:04:23 +00:00
stronk7 fcdea90774 Second pass. Modules. Some more default comments are out. MDL-11385 2007-09-24 22:17:05 +00:00
moodler 7db989230f Added "notification" field, currently unused, to allow MDL-8377 2007-08-14 04:13:58 +00:00
toyomoyo 7900ecb02c MDL-5958, code for advanced search for db module from Elijah (HSU) 2007-02-26 06:56:05 +00:00
skodak 40b6dd0116 MDL-5964 need html editor for comments in database mod + added format sql table field
MDL-7813 accessiblity fixes in comments
2006-12-13 23:09:34 +00:00
stronk7 b8547480b7 Moving a bunch of database module fields to NULLable
(http://docs.moodle.org/en/XMLDB_Problems#NOT_NULL_fields_using_a_DEFAULT_.27.27_clause)
2006-09-23 09:37:53 +00:00
vyshane 9ae965d379 Removed column ratings from data table 2006-09-21 04:10:36 +00:00
vyshane 36acdd6df9 Updated to reflect changes to data table 2006-09-20 18:08:30 +00:00
stronk7 b7bc9446a9 Added JS template field for JavaScript if needed. 2006-08-17 16:40:46 +00:00
stronk7 9c642ecacb Initial XMLDB schema for data tables. Using FKs where they are obvious. 2006-08-08 17:00:44 +00:00