46 Commits

Author SHA1 Message Date
Ferran Recio
2b48b29c86 MDL-75149 mod_data: add preview to presets 2022-09-14 12:30:13 +02:00
Mathew May
5cac5fa428 MDL-64506 templates: BS2 m-x-x to BS4 mx-x 2019-04-03 19:47:11 +08:00
Juan Leyva
c8a804ff68 MDL-57920 mod_data: Refactor search array creation 2017-03-30 01:53:35 +02:00
Juan Leyva
aefe9c5faa MDL-57919 mod_data: Refactor and new method get_configs_for_external 2017-03-29 11:38:38 +02:00
Damyon Wiese
663640f5b3 MDL-40759 icons: convert uses of pix_url to pix_icon
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08: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
David Monllao
fa90f52986 MDL-55127 mod_data: Search entries fixes
- If the database contains has than 4 valid fields all fields from the 4th one
  to the last one will be merged into the 4th one so we index all entry contents
- get_content_value now receives the whole data_content record as fields may need
  other values than just the content to prepare the value
- phpunit database generator changes to separate checkboxes from radio buttons options
  and to separate multimenu options from menu options
2016-08-25 16:50:15 +08:00
Devang Gaur
2af9ad7d30 MDL-55127 mod_data: added database entries to globalsearch 2016-08-19 13:58:19 +05:30
Adrian Greeve
4937a0616f MDL-53402 mod_data: field values of 0 are now displayed. 2016-05-03 14:22:16 +08:00
Adrian Greeve
9b5cf165b4 MDL-53402 mod_data: Added custom validation code for data fields.
Added custom validation to radiobutton, menu, and checkbox.
2016-05-03 12:48:00 +08:00
Johannes Burk
64b9afa6a5 MDL-41643 datafield_checkbox: Add line breaks behind checkbox options.
Add line a break behind each checkbox option in advanced search.
2015-11-14 13:48:20 +01:00
John Okely
c07c5e7bdd MDL-50127 mod_data: Fix required icons in add entry screen 2015-08-14 16:46:58 +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 Skoda
18bd7573d6 MDL-26796 convert array parameter cleaning to new functions 2011-08-18 08:40:33 +02: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
Eloy Lafuente
15a182827f MDL-21437 data - checkbox and multimenu fields search working + require all too 2010-11-17 19:13:26 +00:00
Petr Skoda
39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +00:00
Petr Skoda
798b0b331b MDL-24058 no stripslashes any more, removing 2010-09-02 12:49:53 +00:00
Petr Skoda
24b8188960 MDL-24058 removed forgotted addslashes 2010-09-02 12:32:36 +00:00
aparup
cf353d880d Assignment MDL-23413 minor fix to checkbox field displaying to remove notice. (and to persist checks after submit) 2010-07-20 07:56:46 +00:00
Petr Skoda
2f0e96e447 MDL-20204 one more step away from html_select 2010-02-09 18:54:03 +00:00
Dongsheng Cai
d31629c6e1 "MDL-14818, fixed database module search in head" 2009-11-27 05:24:08 +00:00
Petr Skoda
1adbd2c350 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 14:55:15 +00:00
nicolasconnault
601104f238 MDL-19806 Upgraded calls to choose_from_menu 2009-08-17 15:19:49 +00:00
thepurpleblob
f62f7d8f8e MDL-18542:
Reverting various checkins related to this bug.
PLUS... proper 1 line fix included (merged from STABLE19)
2009-03-24 10:52:50 +00:00
tjhunt
cf0e8bdba8 database mod: XHTML strict! 2009-03-17 04:28:47 +00:00
skodak
8429163db9 MDL-16493 file and picture element migrated; waiting for file picker to mature, presets not finished yet 2008-09-14 08:22:44 +00:00
skodak
e348793639 MDL-15106 towards data mod dml conversion 2008-06-06 08:39:44 +00:00
skodak
a656d95103 MDL-15106 towards data mod dml conversion 2008-06-05 19:26:57 +00:00
skodak
c6307ef24d MDL-14679 removed all instances of get_records_sql_menu() 2008-06-01 16:08:16 +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
aab98aaff1 data mod whitespace cleanup - there are already many accessibility related changes and fixes that are not backportable anyway and merging from previous versions is not expected 2006-12-13 20:26:11 +00:00
skodak
6c31d376c2 MDL-5696 fixed 'Checkbox' actually allows 'checkboxes' and empty 'options' (radio buttons too) 2006-12-13 09:53:59 +00:00
skodak
e357c206db xhtml and accessibility cleanup in data mod MDL-7813
* image galery preset accessiblity fixes MDL-7822
* xhtml fixes
* fields now use s() and p() where needed
* added labels to all fields - imporved accessiblity for adding of new entries
* some other general bugfixing and cleanup

it is still not finished though, expect some more commits tomorrow
2006-12-12 23:34:55 +00:00
vyshane
fd96d5e2ec Fixed bug data_print_template() from /mod/data/lib.php. Extra function
argument removed.
2006-03-23 08:34:22 +00:00
moodler
1b0d9dca18 Fixing more typos 2006-03-22 08:56:47 +00:00
moodler
423bd918b5 Fixing silly stuff 2006-03-22 08:44:26 +00:00
moodler
0997e51afe Lots and lots and lots of cleanup for the data module code, mostly
to do with how the field classes worked.  Now it should be even easier
for developers.

No changes for users.  :-P

The changes are not well tested yet!
2006-03-22 08:07:26 +00:00
vyshane
e1791b72e8 Added CSV import facility for the data module. Fixed notice for checkbox and
multimenu field types.
2006-03-21 04:36:36 +00:00
vyshane
af25f45e1a Cleaning up xhtml markup. Code now validates for xhtml 1.0 transitional. 2006-02-20 02:15:45 +00:00
vyshane
bbe39b6ca9 Updated lang/en/data.php.
Removed hard coded message strings from scripts and moved them to the language file.
Fixed a display bug in multimenu field.
Removed rounded help buttons from fields, made the fields use html title to
display the descriptions instead.
2006-02-09 04:44:56 +00:00
moodler
cd2f695055 Added a parameter to display_browse_field() to pass the template name
to the fields, so they can return different output for different templates.

Picture now has two heights/widths for different templates
2006-02-06 02:49:46 +00:00
vyshane
c87fbb27e1 Removed autolink support from radio button field (not needed).
Fixed bug for empty muti menu and multi checkbox fields.
Added "Choose..." as first item in single selection menu. Added relevant
string in en language.
Updated /mod/data/lib.php, function store_data_content() so that we store
empty content for fields too.
2006-02-02 06:28:17 +00:00
vyshane
4728968fc7 Checkbox field support 2006-02-01 05:08:51 +00:00