= !$contract ? 'That contract is gone - it may have been deleted.' : (!contractHoursReady() ? 'Prepaid hours need the database update - run it from Maintenance > Update first.' : "Hours are added to a draft or active contract, or a cancelled one until its last day - renew it first.") ?>
Add hours to = escapeHtml($contract['contract_name']) ?>