Commit Graph

15 Commits

Author SHA1 Message Date
dave
414a85ccb2 - Add number checking (and parsing) to the config editor
- Change the type of $config['regfee'] to 'number'
2008-01-28 21:48:44 +00:00
dave
984c9776ef - Separte the action handler from the config emitter (but tie them together so
that the old functionality remains)
- Run the action handler separately in the tour annealer and judge annealer
  config so that the page can be refreshed immediately after an update, so
  the  config variables (that may have changed) are reloaded.
- Skip updating config variables that haven't changed.
2007-12-20 08:20:29 +00:00
james
4043df2e66 set a minimum on config editor input text size, so if all fields are empty the text boxes are bigger than 1 characer long 2007-12-14 15:46:01 +00:00
dave
998c8b9af5 - Use a list of checkboxes instead of multisel. If the list is large, it puts
in in 3 columns under the config option.. if it's small it goes beside it
  where the config widgets normally go.
2007-12-12 23:49:50 +00:00
dave
9eca885410 - Allow multiselect to select nothing 2007-11-26 02:25:39 +00:00
dave
57f62f7ab4 - Add a multiselect option to the config editor 2007-11-25 23:30:51 +00:00
dave
f6cc5d7326 - Cleanup how variables are handled/rolled/etc. Convert the require_vars
function in the config editor to one that checks where ALL variables marked
  with year=-1 exist for FAIRYEAR.  If it doesn't, it creates them.  This
  function gets called in three places:
 	- On installation
	- On rollover
	- Whenever the database is updated
 We should, now, be able to just insert new variables with year=-1, and they
 will be automatically updated for the current year with the default value.
 (no more going into the variable editor to make sure the copy is done).

- Fix the superuser account creation in the install script
2007-11-25 19:53:15 +00:00
dave
039a3aa1d5 - Alternate colours on each line in the config editor. Makes it easier to see
which config lines go with which options.
2007-01-21 03:55:38 +00:00
dave
5ca11ae362 - Properly copy the config type in the config editor when copying -1 config values into
the current year
- Add 2 new config options.  
	- 'participant_student_tshirt_cost' allows the cost of each fair tshirt
	  to be set (vancouver charges $10 for tshirts, because not all
	  students want them), this also adds a 'none' option to the tshirt
	  selection box, and a note indicating the tshirt cost if the costs is
	  nonzero.
	- 'regfee_show_info' adds a "Registration Fee Information" to the main
	  student registration page, showing a breakdown of the registration
	  fee computation (including tshirts, per_student and per_project
	  registration, and indicates the total.
- Convert the tshirt field to VARCHAR(32) instead of enum so the "none" option
  described above works, also, some fairs may want to add more optoins, like
  female/male sizes.. so turn this into a text field for those fairs.  The next
  step would be to make a config option for the tshirt options. :)
2007-01-21 01:40:46 +00:00
dave
018725aebf - Add a type field to each config variable. The type field is used to tell the
editor what type of variable to expect.  It can be yesno, enum, text
  (default), number (unimplemented), or blank (default behaviour of the current
  system).  In response, the editor will use pull down lists instead of text boxes 
  for things like "Yes", and "No", or enumerated fields.
- Update the descriptions and type of existing variables.
2007-01-20 22:23:44 +00:00
james
319c5d6720 Add option to turn off the Mentor section for participant registration
Add two new projectnumber options:  c=category shortform,  d=division shortform, eg  (JLS01 = Junior, Life Science, Project #01)
Add shortform field for age category
Fix bug in config editor where it was updating values for ALL years, instead of just the current year!
Bump version number to development version
2006-12-06 17:58:40 +00:00
dave
a430aadab3 delete debugging print statements 2006-09-03 21:37:23 +00:00
dave
ebd4666f51 Add a function to the config editor to specify which variables the config
should contain.  If the config doesn't find those variables for the current
year, they are automatically copied in from year=-1.  This means that
we can update a database and add new config variables and not have to manually
add each variable to the current year.  It also means someone can't mess
up the system and accidentally delete config variables, because they 
will be recreated.
2006-09-03 21:36:28 +00:00
james
14e93e0c12 Split the Configuration Variables page into separate 'Category' pages 2006-08-11 18:53:10 +00:00
dave
e7d726355d The new judge scheduler.
- Missing: Having a project judged more than once by different judging teams is
  untested, I don't htink it'll work properly, still working on that part.
- Missing: Auto updating the configuration if any of the variables are missing.
- Missing: A way to preserve judging questions (like willing_chair), so the
  user doesn't delete them and break the scheduler, OR, notice saying that the
  question has been deleted and the scheduler won't use the chair calculations,
  then we need a way to add them back in with the click of a button.
2006-08-01 19:43:15 +00:00