| Line 218... |
Line 218... |
| 218 |
|
218 |
|
| 219 |
push @policyhistory, $h->div ({ class=>"rTableRow ".(inArray ($policy{id}, [$active_policy, $active_alcohol_policy]) ? "highlighted" : "shaded"), onClick=>"window.location.href='view_org_policy?id=$policy{id}'" },[ $h->div ({ class=>"rTableCellr", style=>"font-size: smaller;" }, $policy{id}, $policy{policy_name}, $policy{start}, $policy{end}) ]);
|
219 |
push @policyhistory, $h->div ({ class=>"rTableRow ".(inArray ($policy{id}, [$active_policy, $active_alcohol_policy]) ? "highlighted" : "shaded"), onClick=>"window.location.href='view_org_policy?id=$policy{id}'" },[ $h->div ({ class=>"rTableCellr", style=>"font-size: smaller;" }, $policy{id}, $policy{policy_name}, $policy{start}, $policy{end}) ]);
|
| 220 |
}
|
220 |
}
|
| Line 221... |
Line 221... |
| 221 |
push @policyhistory, $h->div ({ class=>"rTableRow" },[ $h->div ({ class=>"rTableCellr hint", style=>"font-size: smaller;" }, 'No Policy History') ]) unless scalar @policies;
|
221 |
push @policyhistory, $h->div ({ class=>"rTableRow" },[ $h->div ({ class=>"rTableCellr hint", style=>"font-size: smaller;" }, 'No Policy History') ]) unless scalar @policies;
|
| 222 |
|
222 |
|
| 223 |
if (!$active_policy or !$active_alcohol_policy or remainingOrgPolicyDays ($active_policy) <= 90 or remainingOrgPolicyDays ($active_alcohol_policy) <= 90) {
|
223 |
if ($leagueAdmin and (!$active_policy or !$active_alcohol_policy or remainingOrgPolicyDays ($active_policy) <= 90 or remainingOrgPolicyDays ($active_alcohol_policy) <= 90)) {
|
| 224 |
push @policyhistory, $h->div ({ class=>"rTableRow" },[ $h->div ({ class=>"rTableCellr", style=>"font-size: smaller;" }, ' ') ]);
|
224 |
push @policyhistory, $h->div ({ class=>"rTableRow" },[ $h->div ({ class=>"rTableCellr", style=>"font-size: smaller;" }, ' ') ]);
|
| 225 |
push @policyhistory, $h->div ({ style=>"font-size: smaller;" }, [
|
225 |
push @policyhistory, $h->div ({ style=>"font-size: smaller;" }, [
|
| 226 |
((!$active_policy or remainingOrgPolicyDays ($R->{$primary}, $active_policy) <= 90) ? $h->button ({ onClick=>"window.location.href='attestation?policy=2&league=".$R->{$primary}."'; return false;" }, ($active_policy ? "Renew" : "Purchase")." General Liability") : ""),
|
226 |
((!$active_policy or remainingOrgPolicyDays ($R->{$primary}, $active_policy) <= 90) ? $h->button ({ onClick=>"window.location.href='attestation?policy=2&league=".$R->{$primary}."'; return false;" }, ($active_policy ? "Renew" : "Purchase")." General Liability") : ""),
|