Commit Graph

98 Commits

Author SHA1 Message Date
jacob
0f26cbbf2c Quick fix to make sure you can't switch to an inactive conference through the API 2012-02-06 17:41:50 +00:00
james
af47f30aeb Fix special award nominations to work with "-1" special award (i dont want to nomiiated for special awradsa) 2011-03-04 19:21:30 +00:00
james
c0299dc870 Update docs for account/edit, and tweak link_username_to_email 2011-03-04 16:01:59 +00:00
james
9efd7d89f9 UPdate teh numstudents API docs 2011-03-04 01:05:47 +00:00
james
c87f23397f Add better debug messages to output 2011-03-03 23:14:52 +00:00
james
b9d8a9c8c5 catch a few more role/add errors, and show more debug if it (by chance) hits the defualt case 2011-03-03 22:17:05 +00:00
james
f31cc5c5fa remove the not used special awards section 2011-03-03 21:20:30 +00:00
james
699e12523f make foodreq field based on configuration
api registration/fields accepts both string (to json decode) or a post array, so the testapi page works
2011-03-03 18:11:36 +00:00
james
002704889b Add doc for nummentors to project object 2011-03-03 04:43:03 +00:00
james
22b4d119f6 Move nummentors to project object
Remove registration/edit (we dont need to post anything back... for now...)
2011-03-03 04:42:13 +00:00
james
26e4204015 Fix a bug in loading users (cant call user_load() within any function that is called within user_load itself, like all the individual page checks -- in this case, emergencycontactStatus()
Add special awards display to project/view
Add special awards saving to project/edit
2011-03-03 04:24:21 +00:00
jacob
b9fbc56372 A start on adding the special awards API 2011-03-03 03:00:35 +00:00
james
95bbdab5f6 Add safetyquestions as part of the project/view and project/edit API 2011-03-03 02:57:40 +00:00
james
0b50b6b8f8 If a registration role type is completely disabled (via "{$type}_enable"="no") then report "not available" for that role, regardless of what the registration_type says 2011-03-03 02:18:15 +00:00
james
cd140c198a Add basic project info to registration/view 2011-03-03 01:53:04 +00:00
james
04dcd31b6a Oops registration_id not registrations_id
Also fix the roletype error on main page
2011-03-03 01:36:41 +00:00
james
53b155215d Add missing } 2011-03-02 23:58:38 +00:00
james
648e1bb031 Oops move registration into the righ tsection 2011-03-02 23:56:13 +00:00
james
9ff6a1cf58 Tweak doc 2011-03-02 23:53:35 +00:00
james
87940b54de Add API registration/view
Add API registration/edit
2011-03-02 23:52:44 +00:00
jacob
0c6f1c3b70 Added the necessary code for updating the grade category that a project belongs in whenever it or it's participants are modified. 2011-03-02 22:41:26 +00:00
james
6f882b38b9 Remove registrations_id from the mentor object, it gets set when a mentor is added automatically, but should never be changed 2011-03-02 17:45:36 +00:00
james
693fb1e398 Oops fix is_array typo 2011-03-02 17:39:13 +00:00
james
46f292ba16 Switch mentors to only be "edit" instead of "add and edit"
If a id exists, it is updated
If no id exists, it is created

edit now returns the full mentor view array
2011-03-02 17:18:13 +00:00
jacob
e538262cc6 Update to user_load to ensure that the roles statuses are directly checked upon loading the user. 2011-03-02 17:12:13 +00:00
james
86ab58acac Fixes to maek signature page work 2011-03-02 16:50:28 +00:00
jacob
e7fac7406f Some user data that was expected in the session was not getting updated
on the user load.  Fixed.
2011-03-02 15:57:38 +00:00
james
5dba209aae Fix json_decode, we need the second parameter to specify an assoc array instead of an object 2011-03-02 14:26:18 +00:00
james
d6efd6749e Tweak the docs 2011-03-01 20:09:33 +00:00
jacob
e10d31f2c8 Updated the api for api/project/mentor/add and api/project/mentor/edit. Both now accept an array of
mentor arrays (now referred to as 'mentors' instead of 'mentor').  /edit will only accept an array,
but /add will accept that or no parameters to generate a fresh empty record.
2011-03-01 19:57:05 +00:00
james
69bc561055 allow project/add and project/mentor/add to pass in an corresponding input array, and save that into the newly created project/mentor 2011-02-28 19:00:24 +00:00
jacob
d10d5f3835 Quick fixes:
1) desk and outlet information no longer required when saving a project if they're not required in the config
 2) Updated the project/save api to have consistent return value with other api functions
2011-02-25 16:19:15 +00:00
jacob
2ec08b64d9 Adding additional student fields to the users table
Added name confirmation to the api in api/user/displayname/get and pi/user/displayname/confirm
2011-02-24 17:44:12 +00:00
jacob
19676aa403 Modified the authentication api to store project registration id and registration number in the session.
Updated the project api's to use project id/number stored in the session
2011-02-23 21:12:12 +00:00
james
0320f662dd remove the student table from the register_participants_signature auth
add 'participant' to the auth requirement for projects in the API
2011-02-23 19:30:50 +00:00
james
79baaa37b6 Make password optional for create account (it'll pick a random one if not specified) 2011-02-23 16:42:08 +00:00
james
8d7eb7ca72 add api/project/signatureform API 2011-02-21 22:07:06 +00:00
jacob
f22dfb3c93 Added project mentor management to the api, and functions for testing it 2011-02-21 19:42:13 +00:00
jacob
64ef61d88f Added api functionality for disconnecting a user from a registration : api/project/remove 2011-02-18 21:53:07 +00:00
jacob
f785a71be2 Oops - removed debug output from the project/new api.
Updated getProject to take userId as a parameter, rather than the registration number.
2011-02-18 20:48:56 +00:00
jacob
40e139b7a1 Fix for logical error in how I connected users to registrations. Had the wrong ID field connecting them. 2011-02-18 20:25:47 +00:00
jacob
e6dfe1c476 Added joinProject function in register_participants.inc.php, and added the api for it at /api/project/join 2011-02-18 19:19:56 +00:00
jacob
c1d248dbd3 Added the soulmate for a lonely opening brace. 2011-02-18 17:12:32 +00:00
james
96f36d4681 Implement project\/view 2011-02-18 16:56:35 +00:00
jacob
340a45127b Added code preventing users from creating more than one registration/project 2011-02-18 16:46:44 +00:00
james
3c0151263f Convert project/edit to pass a 'project' object as JSON instead of individual fields 2011-02-18 16:37:11 +00:00
jacob
ef4a14a386 modified the project/add API to not expect any data, but simply create the project. 2011-02-18 16:14:23 +00:00
jacob
3745d8cfd9 Added api functionality for creating and saving projects 2011-02-17 22:04:47 +00:00
james
e0f0a5dd90 Re-do user_invite to allow users to be invited by admin/config's - its not complete, but its working, it still needs to send emails though to tell the user of their new role, but i need to think on how to do that because if its a new account then it could be just a username/password without an email, but if its invited then the email __IS__ the username, but we shouldnt rely on the email being valid until its been confirmed via the email confirmation.. ugh?!?! 2010-12-21 23:16:20 +00:00
james
459eb17e98 Add a hidden config option (put it in data/config.inc.php) to not require API access over SSL 2010-12-08 21:18:07 +00:00