forked from science-ation/science-ation
Add judge completesections
Fix typo in participant page
This commit is contained in:
parent
bca687a50e
commit
9b1e3fa964
@ -112,6 +112,16 @@ function judge_status_special_awards(&$u)
|
|||||||
return 'incomplete';
|
return 'incomplete';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function judge_status_completion_details(&$u) {
|
||||||
|
$ret=array();
|
||||||
|
$ret['personal']=user_personal_info_status($u);
|
||||||
|
$ret['expertise']=judge_status_expertise($u);
|
||||||
|
$ret['other']=judge_status_other($u);
|
||||||
|
$ret['availability']=judge_status_availability($u);
|
||||||
|
$ret['specialawards']=judge_status_special_awards($u);
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
function judge_status_update(&$u)
|
function judge_status_update(&$u)
|
||||||
{
|
{
|
||||||
if( user_personal_info_status($u) == 'complete'
|
if( user_personal_info_status($u) == 'complete'
|
||||||
@ -122,7 +132,7 @@ function judge_status_update(&$u)
|
|||||||
$u['roles']['judge']['complete'] = 'yes';
|
$u['roles']['judge']['complete'] = 'yes';
|
||||||
else
|
else
|
||||||
$u['roles']['judge']['complete'] = 'no';
|
$u['roles']['judge']['complete'] = 'no';
|
||||||
|
$u['roles']['judge']['completesections']=judge_status_completion_details($u);
|
||||||
return ($u['roles']['judge']['complete'] == 'yes') ? 'complete' : 'incomplete';
|
return ($u['roles']['judge']['complete'] == 'yes') ? 'complete' : 'incomplete';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ function participant_status_completion_details($u,$regId=null){
|
|||||||
function participant_status_update(&$u){
|
function participant_status_update(&$u){
|
||||||
//for the 'role' participant to be complete, all we need is that ONE CURRENT students personal details to be complete
|
//for the 'role' participant to be complete, all we need is that ONE CURRENT students personal details to be complete
|
||||||
//this doesnt mean that their registration is complete though.
|
//this doesnt mean that their registration is complete though.
|
||||||
$complete=studentIndividualStatus($u['id']) {
|
$complete=studentIndividualStatus($u['id']);
|
||||||
$u['roles']['participant']['complete'] = $complete;
|
$u['roles']['participant']['complete'] = $complete;
|
||||||
return $complete;
|
return $complete;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user