153 Commits

Author SHA1 Message Date
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
76a2fd8251 xhtml and accessibility cleanup in data mod MDL-7813
* preference form fixes

do not search for one character in data mod MDL-7911
2006-12-13 09:38:46 +00:00
skodak
a032a46017 xhtml and accessibility cleanup in data mod MDL-7813
* fixed labels in preference form
2006-12-13 09:22:47 +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
skodak
9706fa5684 MDL-7905 Add new available tag for element id for in database mod - fixed renaming of field
and other cleanup
2006-12-12 20:10:32 +00:00
skodak
5023c3abc8 MDL-6635 Template fields filtered twice 2006-12-11 09:35:27 +00:00
skodak
5cd079644a MDL-7881 Reset js template should make the template empty 2006-12-11 08:55:40 +00:00
skodak
cca1547e7c MDL-7716 In visible groups mode, It is possible to put a database entries in other group that it his 2006-12-10 20:16:03 +00:00
skodak
f2584d0ea2 MDL-6519 Dollar ($) signs in data module text fields not preserved. 2006-12-08 22:29:11 +00:00
skodak
3b827a7e75 MDL-7839 Fixed use of capabilities in database entry rating 2006-12-07 20:06:11 +00:00
jamiesensei
46e648b610 added Sam's 'enabled' checkbox functionality 2006-12-07 10:39:28 +00:00
skodak
c088d6039d MDL-7821 wrong use of cm in data mod and added proper require_login() 2006-12-06 20:17:58 +00:00
toyomoyo
ced6ca158f fixing alt tag to use capital "More" 2006-11-15 02:10:59 +00:00
jamiesensei
6403e67965 migrated mod/data/mod.html to formslib. Still to add lockoption functionality. 2006-11-09 19:44:20 +00:00
skodak
bdeae2b9b8 Comments in data print the "by" and then the date but no username MDL-7235; merged from MOODLE_17_STABLE 2006-10-27 07:50:28 +00:00
moodler
f274fe073c Merged AS keyword fixes from stable MDL-7207 2006-10-25 09:04:25 +00:00
moodler
3d81c41e2e Merged fixes for AS keywords MDL-7207 2006-10-25 08:51:32 +00:00
moodler
8303eb8447 Fixes related to presets and MDL-6755.
The original code was shocking once I started reviewing it, and even
after heavy editing I'm still not happy with it, but at least it works
more like it was supposed to.

Needs more cleaning up to make it clearer and probably safer.

Also, presets can now contain langage packs and they'll be used.
The image gallery is an example.
2006-10-02 17:24:54 +00:00
martinlanghoff
a8f4522dfa data, forum, glossary: use sql_ilike() for a portable LIKE operator 2006-09-26 05:08:18 +00:00
vyshane
57244db359 Removed the following module configurations (converted to use roles):
participants, assesspublic and ratings. Changed assessed field to only use 1 (ratings on) or 0 (off).
2006-09-24 13:58:54 +00:00
vyshane
741c4d0b04 Upgrade to roles code for data module. 2006-09-20 17:46:20 +00:00
vyshane
7f2586640e Upgrade to roles code, as well as restoring from 1.6 on a 1.7 install code. 2006-09-20 16:57:01 +00:00
vyshane
24bf6cc196 Replaced isteacher() in fullname() call. 2006-09-18 02:28:57 +00:00
toyomoyo
81e956b964 added some capabilities 2006-08-30 08:43:17 +00:00
moodler
901dd2fb4c Merged new "Database preset" support from Tom Flannaghan.
Still needs some tidy-up work but it's working.
2006-08-15 08:42:06 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak
f262874bbe Bug #5909 - Fix use of user_group() because it returns arrays now - part 1; merged from MOODLE_16_STABLE 2006-07-03 21:11:17 +00:00
skodak
002ccfc7a0 Bug #5678 - Question marks, single quotes in field name cause trouble - cleaning hack ported from clean_filename(); merged from MOODLE_16_STABLE 2006-06-06 10:17:18 +00:00
vyshane
f24eb26139 Merged from 1.6. Fix for Bug #5682 - 'Reset template' button in CSS template
adds HTML.
2006-06-02 04:29:11 +00:00
stronk7
cf0403002e Solving one SQL error in data_get_participants()
plus some improved readability.

Merged from MOODLE_16_STABLE
2006-05-23 22:33:01 +00:00
skodak
4bb6c2563b fixed broken SQL that was throwing errors in backup; merged from MOODLE_16_STABLE 2006-05-23 18:15:52 +00:00
moodler
3f9672d37c FIxes for bug 5197 2006-04-15 02:41:27 +00:00
moodler
edaa546ad5 Don't clean final HTML template output, the input should be sanitised. 2006-04-11 13:00:13 +00:00
moodler
7ebb0d488f Guests should not see comment boxes 2006-04-11 12:32:23 +00:00
moodler
63701c7802 FIxed activity reporting for database activities 2006-04-07 07:02:53 +00:00
moodler
236d839ff1 Fixed some pretty major HTML errors :-) bug 5089 2006-04-05 08:19:09 +00:00
moodler
53dc0dfb6a Fixed a string name 2006-04-05 01:40:24 +00:00
moodler
64452eb438 Various fixes that have accumulated 2006-04-05 01:38:06 +00:00
moodler
52373fe74d Fixes for comments 2006-03-29 17:36:20 +00:00
moodler
3d45b8e557 Bunch of fixes including:
- separate browse / detail tabs
   - cleaner logic
   - proper sorting in all scenrios
   - settings stored in the sessions
   - better cleaner URLs
2006-03-29 08:49:28 +00:00
moodler
8179046dd5 Sort the sort menu 2006-03-27 07:24:26 +00:00
vyshane
b395a1e44a Fix for Bug #4978 - Every time I add one field in one DB activity...
Added AS df in SQL query in data_fieldname_exists(). Reformatted the strings
to use single quotes when quoting in SQL. These changes might solve PostgreSQL
problems.
2006-03-27 06:19:34 +00:00
vyshane
9e5537eb3f Replaced <br /> with <hr /> for default list template. 2006-03-27 04:02:48 +00:00
moodler
dbdfc3dbab Little tidyings, I should be in bed watching Scrubs! 2006-03-26 16:19:57 +00:00
moodler
c8505cacd5 Better looking form for preferences and more accessible 2006-03-26 15:54:41 +00:00
moodler
33819735aa More tidying up 2006-03-26 05:36:34 +00:00
moodler
75c42c876f Properly fixed page flow for approvals and deletions 2006-03-26 05:22:16 +00:00
moodler
473dd2888b Various little fixes. 2006-03-26 05:03:10 +00:00