Issue Details (XML | Word | Printable)

Key: CONTRIB-1200
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Mike Worth
Reporter: Mike Worth
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Non-core contributed modules

Users' timetable page

Created: 22/Apr/09 07:18 PM   Updated: 02/Jun/09 10:11 PM
Return to search
Component/s: Block: Mrbs
Affects Version/s: 1.9.4
Fix Version/s: None

File Attachments: 1. Text File mrbsuserttdiff.txt (28 kB)
2. Text File mrbsuserttdiff.txt (28 kB)
3. Text File mrbsuserttdiff.txt (28 kB)
4. Text File mrbsuserttdiff.txt (28 kB)

Issue Links:
Relates
 

Participants: Mike Worth
Security Level: None
Resolved date: 02/Jun/09
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
This adds a page userweek.txt, it is based around a stripped down version of week.php but displays all the bookings for a particular user. This is both bookings made by the user, and bookings with a name that matches the shortname of a course which the user is enrolled on (this sounds a bit complicated, but if you make booking names match course shortnames it will make sense)

Any user can look at their own timetable, users with block/mrbs:viewalltt can look at any user's timetable.

This patch doesn't create any links anywhere to userweek.php (except self-referring ones), it is easy to add a link in any menu- just linking to userweek.php will give users their own timetable. I have played with user/view.php in order to override the 'current location' to display a room name and a link to the timetable, I'll upload that later

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Mike Worth added a comment - 22/Apr/09 07:22 PM
I think there must be some english in here somewhere that needs to go in lang files. This comment is to remind me to do this at some point

Mike Worth added a comment - 22/Apr/09 07:32 PM
Missed out a lang string in the last one

Mike Worth made changes - 22/Apr/09 07:32 PM
Field Original Value New Value
Attachment mrbsuserttdiff.txt [ 17004 ]
Mike Worth added a comment - 22/Apr/09 09:59 PM
I'd removed a clause that only joined the role assignment on roleid=5. I thought I was removing unnecesary rubbish, I've now remembered that that was there because there are courses taught by multiple teachers; without it, all sessions (even those taught by others) of those courses displayed on the teachers' timetables

Mike Worth made changes - 22/Apr/09 09:59 PM
Attachment mrbsuserttdiff.txt [ 17008 ]
Mike Worth made changes - 22/Apr/09 10:24 PM
Link This issue has been marked as being related by CONTRIB-1202 [ CONTRIB-1202 ]
Anthony Borrow made changes - 23/Apr/09 01:37 AM
Assignee Anthony Borrow [ aborrow ] Mike Worth [ mike1989 ]
Mike Worth added a comment - 08/May/09 10:51 PM
Was a bug in the last one; double booked sessions were displayed as colour 'D' rather than 'DoubleBooked'

Mike Worth made changes - 08/May/09 10:51 PM
Attachment mrbsuserttdiff.txt [ 17228 ]
Mike Worth committed 5 files to 'Contrib CVS' - 02/Jun/09 10:09 PM
Mike Worth added a comment - 02/Jun/09 10:11 PM
Committed to CVS, as it stands there are no links to this feature from anywhere else; is it best to leave it as it is (users have to add the link on a menu somewhere themselves), or is there a logical place for it to go as standard?

Mike Worth made changes - 02/Jun/09 10:11 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]