@section('page_title') OSAA - Eligibility @stop @section('page_sub_title') Create a New Student Eligibility Request Form @stop @section('scripts') @parent @stop @section('jquery_init') // Success bar $('.success_bar').animate({ 'top' : 32, 'background-color' : 'rgba(176, 255, 190, 1.0)'}, 1600, 'easeOutQuad', function () { $(this).delay(6000).fadeOut(4000); $(this).hover(function () { $(this).stop(true).css('opacity', '1.0'); }, function () { $(this).fadeOut(4000); }) }); // Placeholder functionality $('[data-placeholder]').focus(function() { var input = $(this); if (input.val() == input.attr('data-placeholder')) { input.val(''); input.removeClass('placeholder'); } }).blur(function() { var input = $(this); if (input.val() == '' || input.val() == input.attr('data-placeholder')) { input.addClass('placeholder'); input.val(input.attr('data-placeholder')); } }).blur(); $('[data-placeholder]').parents('form').submit(function() { $(this).find('[data-placeholder]').each(function() { var input = $(this); if (input.val() == input.attr('data-placeholder')) { input.val(''); } }) }); // Shake action items function shakeActionImages (object) { $(object).effect("shake", {distance : 5, times : 1}, 600, function () { $(this).delay(Math.floor(Math.random() * 4000) + 2000); shakeActionImages($(this)); }); } // Info text $('.info_text') .each(function () { var item = $(this); item.prepend(''); // Info icons $('.info_icon') .addClass('ui-icon ui-icon-info') .css({'position' : 'absolute'}); }) .css({'font-size' : '9pt', 'line-height' : '1.25em', 'text-indent' : '20px'}); // Buttons $('.cancel_button') .button({'icons':{'primary':' ui-icon-circle-close'}}) .css({'font-size':'9pt'}) .click(function(event) { return confirm('Are you sure you want to cancel the creation of a new student eligibility request?'); }); $('.submit_button') .button(); /* Help button * */ $('.help_button') .button({'icons':{'primary':'ui-icon-help'}}) .css({'font-size':'9pt', 'margin-right':'10px'}) .click(function(event) { var object = $(this); event.preventDefault(); var topic = object.attr('data-topic'); $('
') .appendTo('body') .dialog( { draggable : true, resizable : true, height : 725, minHeight : 400, width : 615, minWidth : 330, modal : false, title : 'Help', open : function () { var dialog_object = $(this); dialog_object.html("
"); var jqxhr = $.ajax( { type : 'GET', url : '{{ url('forms/eligibility/00000000/help') }}?topic=' + topic, dataType : 'html' }) .done(function (returned_data) { dialog_object.html(returned_data); }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert ("There was an error looking up help information.\n\nThis page will be reloaded."); location.reload(); }) .complete(function () { }); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); $('.types_button') .button({'icons':{'primary':'ui-icon-help'}}) .css({'font-size':'9pt','text-indent':'0','float':'right'}) .click(function(event) { var object = $(this); event.preventDefault(); var topic = 'waiver-types'; $('
') .appendTo('body') .dialog( { draggable : false, resizable : false, modal : true, height : 550, width : 650, title : 'Types of Waivers', open : function () { var dialog_object = $(this); dialog_object.html("
"); var jqxhr = $.ajax( { type : 'GET', url : '{{ url('forms/eligibility/00000000/help') }}?topic=' + topic, dataType : 'html' }) .done(function (returned_data) { dialog_object.html(returned_data); }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert ("There was an error looking up help information.\n\nThis page will be reloaded."); location.reload(); }) .complete(function () { }); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); // Show waiver type information $('#waiver_type').on("change", function() { var select = $(this); // Remove the first option and action item $('option[value="null"]', select).remove(); $('#waiver_action_image').remove(); checkReadiness(); var option = $('option:selected', select); var data = $.parseJSON($(option).attr('data-info')); var html = data.name + '

OSAA Handbook Rule ' + data.rule + '
Handled initially by the ' + data.default_handler; $('#waiver_type_info') .html(html); }); // Check student name $('#first_name').bind("input", function () { var first_name = $(this); var last_name = $('#last_name'); if ($(first_name).val() != '') { if ($(last_name).val() == '' || $(last_name).val() == $(last_name).attr('data-placeholder')) { $('#student_name_action_image').css({'top':'70px'}); } else { $('#student_name_action_image').remove(); checkReadiness(); } } }); $('#last_name').bind("input", function () { var last_name = $(this); var first_name = $('#first_name'); if ($(last_name).val() != '') { if ($(first_name).val() == '' || $(first_name).val() == $(first_name).attr('data-placeholder')) { $('#student_name_action_image').css({'top':'-12px'}); } else { $('#student_name_action_image').remove(); checkReadiness(); } } }); // Make the birth date field a datepicker $('#birth_date') .datepicker( { changeYear : true, dateFormat : 'm/d/yy', defaultDate : '-16years' }) .on("change", function () { if ($(this).val() != '') { $('#student_dob_action_image').remove(); checkReadiness(); var dob = $(this).val(); var first_divider = dob.indexOf('/'); var last_divider = dob.lastIndexOf('/'); var year = Number(dob.substr(last_divider + 1, 4)); if (year < 1900) { if (year > 50) { year = year + 1900; } else { year = year + 2000; } } var month = Number(dob.substr(0, first_divider)) - 1; var day = Number(dob.substr(first_divider + 1, last_divider - first_divider - 1)); var today = new Date(); var age = today.getFullYear() - year; if (today.getMonth() < month || (today.getMonth() == month && today.getDate() < day)) { age--; } $('#age').html(age + ' years old'); } }); // Check if ready to move onwards function checkReadiness() { if ($('#waiver_action_image').size() == 0 && $('#first_name').val() != '' && $('#first_name').val() != $('#first_name').attr('data-placeholder') && $('#last_name').val() != '' && $('#last_name').val() != $('#last_name').attr('data-placeholder') && $('#birth_date').val() != '') { $('#ready_action_image').show(); shakeActionImages($('#ready_action_image')); $('#ready .submit_button').button('enable'); $('#ready_text').html(' Ready for step 2.'); } else { // Hide the ready/next button $('#ready_action_image').hide(); $('#ready .submit_button').button('disable'); $('#ready_text').html(' You need to fill in more information to continue.'); } } shakeActionImages($('#waiver_action_image')); shakeActionImages($('#student_name_action_image')); shakeActionImages($('#student_dob_action_image')); checkReadiness(); {{-- Future Eligibility Notice --}} @if ($info['limit_future']) // Disable future eligibility waiver types $('#waiver_type option').each(function(index, item) { item = $(item); var value = item.val(); console.log(value); if (!(value == "Age" || value == "Fifth Year" || value == "Age and Fifth Year" || value == null || value == "null")) { item.attr('disabled', 'disabled'); } }); @endif @stop @section('page_functions') Help Cancel @stop @section('main_content') {{-- Success Bar --}} @if (Session::has('success'))
{{ Session::get('success') }}
@endif {{-- Errors --}} @if (Session::has('errors'))
@foreach ($errors->all() as $error) {{ $error }} @endforeach
@endif

Step 1: New Form

{{-- Test Mode for OSAA Staff --}} @if (Auth::user()->isOsaaUser())

OSAA Staff, enable TEST MODE for testing or training purposes. This will disable e-mails from being sent to the school administrators.

Test Mode


@endif {{-- Future Eligibility Notice --}} @if ($info['limit_future'])
Future Eligibility Notice for Waivers Prior to {{ $info['start_date'] }}
Hardship requests involving future eligibility will not be considered by the Executive Director, Executive Board, or District Athletic Committee. The student must actually be in an ineligible status before any hardship request will be considered except for Age and/or Fifth Year waivers.
@endif

Before moving on, please ensure the school and school year are correct. If not, click "Cancel" and start over.

School Name
{{ $info['school']->name }}

School Year
{{ $info['school_year']->name }}



Select the type of waiver from the drop-down menu. Once you select a waiver type, additional information will also be displayed for your reference including a link to the eligibility rule in the OSAA Handbook.

Types of Waivers

Waiver Type


Details
Select a waiver type for additional information.



Please provide the student's information. Providing a middle initial is optional. The system will try to match the student's first name, last name, and birth date to any existing students' past waivers previously entered for your school.

First Name


(Middle Initial)


Last Name



Provide the student's date of birth. Click the DOB text-box to bring up a date picker.

Date of Birth


Country



Ready for step 2.

 


@stop