forked from science-ation/science-ation
- Add a new config variable 'specialawardnomination_aftersignatures'.
Default='yes', meaning the behaviour is the same as the default. 'no' means that students can self-nominate for awards before the committee receives their signature form.
This commit is contained in:
parent
94639c1278
commit
0ba89a18a7
@ -1 +1 @@
|
||||
38
|
||||
39
|
||||
|
3
db/db.update.39.sql
Normal file
3
db/db.update.39.sql
Normal file
@ -0,0 +1,3 @@
|
||||
INSERT INTO `config` ( `var` , `val` , `category` , `type` , `type_values` , `ord` , `description` , `year` ) VALUES ( 'specialawardnomination_aftersignatures', 'yes', 'Participant Registration', 'yesno', '', '1390', 'Does the signature page need to be received BEFORE students are allowed to self nominate for special awards?', '-1');
|
||||
|
||||
UPDATE `config` SET `type_values` = 'none=None|date=By Date|registration=With Registration', `description` = 'Select when students may self nominate for special awards.<br> <ul><li><b>None</b> - Students may not self-nominate for special awards. <li><b>By Date</b> - Between specific dates, specified in the "Important Dates" section. <li><b>With Registration</b> - During the same time as registration is open. </ul> ' WHERE `var` = 'specialawardnomination';
|
@ -227,7 +227,14 @@ echo "<table><tr><td>";
|
||||
echo "<table class=\"summarytable\">";
|
||||
echo "<tr><th>".i18n("Special Award Nominations")."</th></tr>";
|
||||
|
||||
if(registrationFormsReceived())
|
||||
$special_awards_open = false;
|
||||
if($config['specialawardnomination_aftersignatures']=="no") {
|
||||
$special_awards_open = true;
|
||||
} else {
|
||||
$special_awards_open = (registrationFormsReceived()) ? true : false;
|
||||
}
|
||||
|
||||
if($special_awards_open == true)
|
||||
{
|
||||
if($config['specialawardnomination']=="date")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user