159 Commits

Author SHA1 Message Date
gustav_delius
1ee55c41d9 Give groupmode selection to mod.html for all modules that use groupmode. Also fix bug 2576 2005-02-17 19:19:21 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
gustav_delius
17db65ef3f Added visibility check to all workshop pages, see bug 2450. 2005-02-13 13:12:03 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
moodler
21b69d1c4d Removed some old docs 2005-01-12 07:53:50 +00:00
moodler
def6a51c37 Removing some old icons 2005-01-12 07:52:06 +00:00
moodler
a7b32ed3b6 Changes for XHTML and accessibility compatibility 2005-01-11 08:38:27 +00:00
moodler
bb774ac1d5 Fixed typo 2005-01-11 07:07:57 +00:00
skodak
ae68eb9c15 fixed typos 2005-01-10 21:31:41 +00:00
defacer
ccb42b9a70 Fixed some warnings for foreach() on empty array, when upgrading a site
with no workshops in it.
2004-12-13 18:32:20 +00:00
gustav_delius
eb89027f5b More changes to the user interface. See http://moodle.org/mod/forum/view.php?id=740. 2004-12-12 11:20:07 +00:00
gustav_delius
1c4e73b614 Now teachers can again grade assessments. Also various tweaks of admin interface. This is work in progress. Heavy testing and further development will take place during the coming days, so consider this code as unstable. 2004-12-09 09:34:43 +00:00
gustav_delius
47162a5b59 fixed cutoffime misprint 2004-12-08 10:39:06 +00:00
gustav_delius
9e5b9a2084 fixed missing ) and undefined $timenow 2004-12-08 10:09:25 +00:00
gustav_delius
9a41fb44c0 removed duplicated sentences from emails 2004-12-08 08:29:11 +00:00
gustav_delius
2317a9f3b0 Fixed date check 2004-12-07 07:41:49 +00:00
gustav_delius
5e5b03eba0 use filter_text instead of text_to_html 2004-12-06 20:20:27 +00:00
gustav_delius
ab98918f09 Workshop module now works with dates rather than phases, see http://moodle.org/mod/forum/discuss.php?d=15541. 2004-12-05 11:49:18 +00:00
moodler
b64dab0e5d Changes for XHTML and accessibility compatibility 2004-11-26 09:33:02 +00:00
rkingdon
693f6eb5cf Cron routine does not send "graded" emails until releasegrades date;
grades are "not available" in index page until after the relaesegrades
date; phasing of three phase workshop tidied up.
2004-11-23 20:52:54 +00:00
rkingdon
03371565eb Fixes teacher's view of 3 phase workshops. 2004-11-22 19:09:06 +00:00
mjollnir_
eb46f6a322 Merged from MOODLE_14_STABLE: Indexes for workshop and version bump (honoring partial freeze) 2004-11-21 22:03:48 +00:00
paca70
706552f038 Updates for postgres 2004-11-21 15:01:33 +00:00
rkingdon
ee3dddc1c9 Allow student submissions to be edited/deleted in the Submission phase of
workshops.
2004-11-18 04:24:31 +00:00
mjollnir_
17c88613b4 Bug fix for sql for new workshop tables for mysql 2004-11-17 03:17:05 +00:00
rkingdon
0446243690 Stock comments can now contain single quotes. 2004-11-16 20:49:25 +00:00
rkingdon
3f6a03249d Fixed some error messages in assessments.php which gave the wrong table
(workshop_elements) should be workshop_grades.
2004-11-15 19:10:52 +00:00
rkingdon
b6cc3466aa Fixed bug in the "checking for a rapid submission" code. 2004-11-15 18:18:43 +00:00
rkingdon
cb0a172434 Display of current/final grades now has the individual lists order by
grade.
2004-11-13 01:00:17 +00:00
rkingdon
65e187edb6 Version 2004111000. This removes the unnecesary emails about grading of
assessments.
2004-11-12 19:30:12 +00:00
rkingdon
9a21768212 Version 2004111000 of workshop. 2004-11-12 17:28:07 +00:00
mjollnir_
f7f36ce260 few wayward typos breaking postgres workshop install 2004-11-08 05:26:27 +00:00
rkingdon
6a1bdf48df The first and second assessments of each submission are now "graded" by
the workshop cron function. They are given the maximum grading grade.
2004-10-17 16:35:32 +00:00
rkingdon
eb407d969f Non-editing teachers not allowed to change wthe workshop phase nor delete
teacher submissions.
2004-10-17 15:53:19 +00:00
rkingdon
1c1df31ca0 On the Workshops submissions with no assessments are flagged as such rather than given a zero grade. 2004-10-12 19:38:57 +00:00
moodler
d7d21c383c Minor changes for XHTML compatibility 2004-10-08 13:58:33 +00:00
rkingdon
ac220a6d80 Corrected password protected workshops (they showed the assignment!);
minor
html additional to edit assessments page.
2004-10-02 16:04:56 +00:00
paca70
f739b64d9b Updates for postges 2004-09-30 11:29:42 +00:00
rkingdon
b514883a04 Minor tidy of "not graded" workshops to supress grades appearing in
student pages.
2004-09-29 21:28:55 +00:00
rkingdon
ff1d392aa1 Allow teachers to edit examples from Admin page; Count of ungraded
asessment now excludes warm and hot assessments; change a & back to a
& in a redirect call.
2004-09-29 16:52:24 +00:00
rkingdon
3903e0729b New fields in version 2004092700. 2004-09-28 16:30:29 +00:00
rkingdon
1bf58ea60b Version 2004092700 - tidy up of simple assignment case; addition of
password and submission late flag.
2004-09-28 15:49:49 +00:00
rkingdon
1410bd2695 Added code for remove attachments 2004-09-27 17:46:41 +00:00
rkingdon
a557e354ed Version 2004092400 - in line student submission (plus attachments);
addition of on-the-fly grading of assessments; some bugs cleared.
2004-09-27 14:41:17 +00:00
paca70
55bcf883c3 Fixes for new postgres database creation 2004-09-24 07:49:40 +00:00
paca70
0257cc73e0 Postgres updates 2004-09-20 17:48:59 +00:00