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
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. :)
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
- Dates are always displayed in the same order, which is somewhat logical.
- It detects some errors. It's not perfect, but it'll detect when a date is
invalid, and when pairs of dates are bad (eg. the reg. system closes before
it opens.). All dates are still saved to the database but the user is
alerted of any date errors.
Update i18n function to accept a third parameter, which is an array that describes the arguments in the string to make translation much easier
Update some of the config/admin pages to make sure i18n is properly used, and that argument descriptions are set