@section('page_title') OSAA - Forms @stop @section('tool_box') @if (Auth::check() and Auth::user()->isOsaaUser())
Late Password
LATEREGISTRATION
Dates {{ date('g:ia n/j/y', strtotime($information['activity_form']->open_at)) }}
{{ date('g:ia n/j/y', strtotime($information['activity_form']->due_at)) }} {{ date('g:ia n/j/y', strtotime($information['activity_form']->close_at)) }}
Submissions
Entries
@endif @stop @section('page_sub_title') {{ $information['form_name'] }} @stop @section('scripts') @parent @stop @section('jquery_init') $('.button').button(); $('.button.notext').button({text:false}); $('.button.close').button({ icons : { primary : 'ui-icon-circle-close'}}); $('.button.switch').button({ icons : { primary : 'ui-icon-transferthick-e-w'}}); $('.button.back').button({ icons : { primary : 'ui-icon-arrowthick-1-w'}}); $('.button.delete').button({ icons : { primary : 'ui-icon-closethick'}}); $('.button.add').button({ icons : { primary : 'ui-icon-plusthick'}}); $('.button.save').button({ icons : { primary : 'ui-icon-disk'}}); $('.button.copy_dmd_to_submitter').button({ icons : { primary : 'ui-icon-copy'}}); $('.tooltip').tooltip(); $('[required]').after('*'); /* Copy Meet Director to Submitter Information */ $('.copy_dmd_to_submitter').click(function () { $('#sub_name').focus(); $('#sub_name').val($('#dmd_name').val()); $('#sub_name').blur(); $('#sub_email').focus(); $('#sub_email').val($('#dmd_email').val()); $('#sub_email').blur(); $('#sub_phone').focus(); $('#sub_phone').val($('#dmd_phone').val()); $('#sub_phone').blur(); }); /* Limit input to numbers only */ $('.numbers_only').bind('input', function() { $(this).val($(this).val().replace(/[^0-9]/gi, '')); }); /* Limit input to numbers only or NP */ $('.place_only').bind('input', function() { $(this).val($(this).val().replace(/[^0-9NP]/gi, '')); }); /* Limit input to numbers and colons only for time entries */ $('.time_format_only').bind('input', function() { $(this).val($(this).val().replace(/[^0-9:NT]/gi, '')); }); $('input.participation_number').bind('change blur', function () { var v = parseInt($(this).val()); if (v < 0 || v > 7) { $(this).val(''); } updateTotals(); }); function updateTotals() { total = 0; $('input.participation_number').each(function () { var v = parseInt($(this).val()); if (v >= 0) { total = total + v; } }); /* Display the total number of participants */ $('#total_participation').html(total); } updateTotals(); function colorRows () { $('table').each(function () { var i = 0; $('tbody tr:visible', $(this)).each(function () { if (i % 2 == 1) { $(this).addClass('odd'); } else { $(this).removeClass('odd'); } i = i + 1; }); }); } colorRows(); $('[placeholder]').focus(function() { var input = $(this); if (input.val() == input.attr('placeholder')) { input.val(''); input.removeClass('placeholder'); } }).blur(function() { var input = $(this); if (input.val() == '' || input.val() == input.attr('placeholder')) { input.addClass('placeholder'); input.val(input.attr('placeholder')); } }).blur(); $('[placeholder]').parents('form').submit(function() { $(this).find('[placeholder]').each(function() { var input = $(this); if (input.val() == input.attr('placeholder')) { input.val(''); } }); }); function ordinalNumber (number) { var ends = new Array('th','st','nd','rd','th','th','th','th','th','th'); if ((number % 100) >= 11 && (number % 100) <= 13) { var abbreviation = 'th'; } else { var abbreviation = ends[number % 10]; } abbreviation = '' + abbreviation + ''; return number + abbreviation; } /* Clear a row's entry */ $('tbody tr .button.delete').click(function () { var row = $(this).parents('tr'); $(row).find('input').each(function () { $(this).focus(); $(this).val(''); $(this).blur(); }); $(row).find('select').each(function () { $(this).val(' '); }); }); $('input[ribbon]').blur(function () { var p = $(this).val(); var count = 0; $('input[ribbon]').each(function () { if ($(this).val() != '') { var pn = parseInt($(this).val()); if (pn == p) { count++; } } }); /* Make sure placements are unique */ if (count > 1) { var old = p; p = ''; $(this).val(''); $(this).focus(); alert ('You already supplied an entry for ' + ordinalNumber(old).replace('', '').replace('', '') + ' place. There cannot be more than one entrant that placed ' + ordinalNumber(old).replace('', '').replace('', '') + '.'); } var row = $(this).parents('tr'); $(row).find('img[place]').hide(); if (p != '') { var place = parseInt(p); if (place >= 1 || place <= 20) { $(row).find('img[place=' + place + ']').fadeIn(); } } checkIndividualPlace(); }); $('input[ribbon]').blur(); function checkIndividualPlace() { @if (!is_null($information['league']) and substr($information['league']->slug, 0, 2) == '6A') var places = new Array(); for (var i = 1; i <= 100; i++) { places[i] = 0; } $('input[ribbon]').each(function () { var p = $(this).val(); if (p != '') { p = parseInt(p); places[p] = 1; } }); var missing = new Array(); var j = 0; for (i = 0; i <= 100; i++) { if (places[i] == 0) { if (j < 4) { missing[j] = i; j++; } } } i = 0; $('tr.individual').each(function () { var p = missing[i++]; var row = $(this); $(row).attr('place', p); $(row).find('img').each(function () { $(this).attr('src', 'http://www.osaa.org/images/icons/ribbons/ribbon_' + p + '_24px.png'); }); $('.place_number', $(row)).html('' + ordinalNumber(p) + ''); $('input[type="hidden"]', $(row)).val(p); }); @else var count = 5; for (var i = 1; i <= 5; i++) { var row = $('tr.individual[place="' + i + '"]'); var taken = 0; $('input[ribbon]').each(function () { var p = $(this).val(); if (p != '') { p = parseInt(p); if (p == i) { taken = 1; } } }); if (taken != 0) { $(row).fadeOut({ done : function () {colorRows();} }); $('input[type="hidden"]', $(row)).val(''); count--; } else { $(row).fadeIn({ done : function () {colorRows();} }); $('input[type="hidden"]', $(row)).val(i); count++; } } if (count < 1) { $('#ind_none_to_enter').fadeIn(); } else { $('#ind_none_to_enter').fadeOut(); } @endif } checkIndividualPlace(); /* Make sure the first place team is not the same as the second place team */ $('#fp_team').change(function () { var v = $(this).val(); var vn = $('#sp_team').val(); if (v != ' ') { if (v == vn) { $(this).val(' '); alert ('The first place team cannot be the same as the second place team.'); } } }); /* Make sure the second place team is not the same as the first place team */ $('#sp_team').change(function () { var v = $(this).val(); var vn = $('#fp_team').val(); if (v != ' ') { if (v == vn) { $(this).val(' '); alert ('The second place team cannot be the same as the first place team.'); } } }); /* Make sure an individual qualifier is not a member of the first or second place teams */ $('.ind_teams').change(function () { var v = $(this).val(); var v1 = $('#fp_team').val(); var v2 = $('#sp_team').val(); if (v != ' ') { if (v == v1) { $(this).val(' '); alert ('This individual qualifier cannot be a member of the first place team.'); } if (v == v2) { $(this).val(' '); alert ('This individual qualifier cannot be a member of the second place team.'); } } }); /* Show any form fields that have errors */ var bad_fields = new Array(); @if (!is_null($information['submission'])) @foreach ($information['submission']->data->first_place_team->entries as $entry) @if (count($entry->errors) > 0) @foreach ($entry->errors as $field_name) bad_fields.push('{{ $field_name }}'); @endforeach @endif @endforeach @foreach ($information['submission']->data->second_place_team->entries as $entry) @if (count($entry->errors) > 0) @foreach ($entry->errors as $field_name) bad_fields.push('{{ $field_name }}'); @endforeach @endif @endforeach @foreach ($information['submission']->data->individual_qualifiers as $entry) @if (count($entry->errors) > 0) @foreach ($entry->errors as $field_name) bad_fields.push('{{ $field_name }}'); @endforeach @endif @endforeach @endif for (var i = 0; i < bad_fields.length; i++) { $('[name="' + bad_fields[i] + '"]').addClass('ui-state-error'); } /* Save information */ $('.button.save').click(function () { var form = $(this).parents('form'); var input = $('').attr('type', 'hidden').attr('name', 'save').val('true'); $(form).append($(input)); $(form).submit(); }); /* Display any success messages */ $('.success_message').delay(5000).fadeOut({'duration' : 2500}); $('.success_message .ui-icon-close').click(function () { $('.success_message').hide(); }); @if (Auth::check() and Auth::user()->isOsaaUser()) $('#submissions_report').dialog( { dialogClass : 'submission_content', autoOpen : false, buttons : [ { text : 'Done', 'class' : 'float_right', click : function () { $(this).dialog('close'); }} ], draggable : true, height : 700, modal : false, resizable : false, open : function () { $('#submissions_report').html("
"); var jqxhr = $.ajax( { type : 'GET', url : '/reports/xc-registrations', dataType : 'html' }) .done(function (data) { $('#submissions_report').html(data); }) .fail(function () { $('#submissions_report').html('There was an error.'); }); $('.submission_content .ui-dialog-buttonpane').css('padding', '0').css('font-size', '8pt'); $('.submission_content .ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); }, show : { effect : 'highlight', delay : 0, duration : 400, easing : 'easeInOutSine' }, title : 'OSAA Cross Country Registrations', width : 650 } ); $('.button.submissions').click(function () { $('#submissions_report').dialog('open'); }); $('#entries_report').dialog( { dialogClass : 'entry_content', autoOpen : false, buttons : [ { text : 'Done', 'class' : 'float_right', click : function () { $(this).dialog('close'); }} ], draggable : true, height : 300, modal : false, resizable : false, open : function () { $('#entries_report').html("
"); var jqxhr = $.ajax( { type : 'GET', url : '/reports/xc-entries', dataType : 'html' }) .done(function (data) { $('#entries_report').html(data); }) .fail(function () { $('#entries_report').html('There was an error.'); }); $('.entry_content .ui-dialog-buttonpane').css('padding', '0').css('font-size', '8pt'); $('.entry_content .ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); }, show : { effect : 'highlight', delay : 0, duration : 400, easing : 'easeInOutSine' }, title : 'OSAA Cross Country Entries', width : 500 } ); $('.button.entries').click(function () { $('#entries_report').dialog('open'); }); @endif @stop @section('page_functions') @if (!is_null($information['league'])) Back @if (Helpers::strEqual($information['activity']->slug, 'BXC')) Switch to Girls @else Switch to Boys @endif @else Close @endif @stop @section('main_content') @if (Session::get('success'))
{{ Session::get('success') }}
@endif @if ($information['is_past_due'])
This form was due by {{ date('g:i A l, F j, Y', strtotime($information['activity_form']->due_at)) }} and is now past the deadline. Please submit your entries now before the form closes and becomes unavailable.
@endif @if (is_null($information['league'])) {{-- Need to select a league --}}

Select League or Special District

Instructions
  1. Begin by selecting the league or special district from the drop-down list.
  2. Click Next to continue with the selection.
  3. You can switch to the @if (Helpers::strEqual($information['activity']->slug, 'BXC')) Girls @else Boys @endif Cross Country form by clicking the Switch to @if (Helpers::strEqual($information['activity']->slug, 'BXC')) Girls @else Boys @endif button.
  4. Note: All entries must be submitted by {{ date('g:i A l, F j, Y', strtotime($information['activity_form']->due_at)) }} using this online form.

For questions, contact {{ $information['staff']->first_name }} {{ $information['staff']->last_name }} at (503) 682-6722 x229 or by e-mail to {{ Helpers::obfuscateEmailLink ($information['staff']->email) }}. For technical assistance, you can email {{ Helpers::obfuscateEmailLink ("support@osaa.org") }}.

Leagues & Special Districts

@if (Helpers::strEqual($information['activity']->slug, 'BXC')) Switch to Girls @else Switch to Boys @endif {{ Form::open(array('url' => url('/forms/registration/' . $information['activity']->slug), 'method' => 'get')) }} {{ Form::select('league', $information['leagues_list'], null, array('style' => 'font-size: 12pt;')) }} {{ Form::submit('Next', array('class' => 'button', 'style' => 'font-size: 9pt; margin-left: 30px;')) }} {{ Form::close() }}

Corrections

Sunday, 4:00 PM - 8:00 PM: Call William Wyckoff at (541) 484-9883.
Monday - Friday: Contact {{ $information['staff']->first_name }} {{ $information['staff']->last_name }} at (503) 682-6722 x229 or by e-mail to {{ Helpers::obfuscateEmailLink ($information['staff']->email) }}.

Note: Corrections made after 2:00 PM on Monday will not appear in the program.

Substitutions

  1. Individuals: If any individual qualifier drops out of the state championship by 4:00 PM, two business days prior to the state championships (Thursday, Oct. 31,) the district may substitute the next eligible individual qualifier that is not a member of a qualifying team. The district must notify the OSAA office of the substitution by this substitution deadline.
  2. Team: Substitutions on qualified teams may be made up to 30 minutes prior to the start of the state championship race at that classification. A team may enter a maximum of seven participants with its top five finishers counting toward team standings.
@else {{-- A League is selected --}}
@if (Helpers::strEqual($information['activity']->slug, 'BXC')) @else @endif @if (!is_null($information['submission']))
Form entries created at {{ date('g:i a m/d/Y', strtotime($information['submission']->created_at)) }}.
Last updated at {{ date('g:i a m/d/Y', strtotime($information['submission']->updated_at)) }}
by {{ $information['submission']->data->submitter->name }}.
@endif

{{ $information['league']->slug }} {{ $information['league']->name }}


Instructions
  1. Required fields are noted with a red asterisk*.
  2. Additional instructions and hints are included before each section.
  3. Click Save at any time to save your entries without submitting the form.
  4. When finished, click Submit to turn in this form with the entries provided. E-mails will be sent to {{ $information['staff']->first_name }} {{ $information['staff']->last_name }}, the meet director, the form submitter, and to the coach and athletic director of the first place team, the second place team, and the team of any individual qualifier.
  5. You can go back to the league selection page by clicking the Back button. You will lose all unsaved entries.
  6. Click the Switch to @if (Helpers::strEqual($information['activity']->slug, 'BXC')) Girls @else Boys @endif button to switch over to the {{ $information['league']->slug }} {{ $information['league']->name }} @if (Helpers::strEqual($information['activity']->slug, 'BXC')) Girls @else Boys @endif Cross Country form. You will lose all unsaved entries.
  7. Note: All entries must be submitted by {{ date('g:i A l, F j, Y', strtotime($information['activity_form']->due_at)) }} using this online form.

For questions, contact {{ $information['staff']->first_name }} {{ $information['staff']->last_name }} at (503) 682-6722 x229 or by e-mail to {{ Helpers::obfuscateEmailLink ($information['staff']->email) }}. For technical assistance, you can email {{ Helpers::obfuscateEmailLink ("support@osaa.org") }}.

@if (Session::has('errors'))
@foreach ($errors->all() as $error){{ $error }} @endforeach

@endif {{ Form::open(array('url' => url('/forms/submit'), 'method' => 'post', 'class' => 'registration_form')) }} {{ Form::hidden('form', 'REGISTRATION') }} {{ Form::hidden('league', $information['league']->slug) }} {{ Form::hidden('activity', $information['activity']->slug) }} @if (date(time()) < strtotime ('2013-10-21 23:59:59'))
Test Mode Enabled
This form is in test mode. While in test mode, you can practice entering information to see what the final submission will look like. E-mails will only be sent to the meet director (if an e-mail address is provided,) the form submitter, and to {{ $information['staff']->first_name }} {{ $information['staff']->last_name }}. After 10/20/2013, the test mode will be disabled and all test submissions will be purged from the database.
{{ Form::hidden('test', 'true') }} @endif

Meet Director

Who is the meet director?

{{ Form::label('dmd_name', 'Name') }}
{{ Form::text('dmd_name', (is_null($information['submission'])) ? null : $information['submission']->data->meet_director->name, array('style' => 'width: 175px;', 'required' => 'required', 'placeholder' => 'First Last')) }}
{{ Form::label('dmd_email', 'E-mail') }}
{{ Form::text('dmd_email', (is_null($information['submission'])) ? null : $information['submission']->data->meet_director->email, array('style' => 'width: 225px;', 'placeholder' => 'E-mail address')) }}
{{ Form::label('dmd_phone', 'Mobile Phone') }}
{{ Form::text('dmd_phone', (is_null($information['submission'])) ? null : preg_replace('/[^0-9]/', '', $information['submission']->data->meet_director->phone), array('class' => 'numbers_only', 'style' => 'width: 100px;', 'placeholder' => '##########')) }}

Form Submitter

Copy Meet Director's Information

Who is submitting this form?

{{ Form::label('sub_name', 'Name') }}
{{ Form::text('sub_name', (is_null($information['submission'])) ? null : $information['submission']->data->submitter->name, array('style' => 'width: 175px;', 'required' => 'required', 'placeholder' => 'First Last')) }}
{{ Form::label('sub_email', 'E-mail') }}
{{ Form::text('sub_email', (is_null($information['submission'])) ? null : $information['submission']->data->submitter->email, array('style' => 'width: 225px;', 'required' => 'required', 'placeholder' => 'E-mail address')) }}
{{ Form::label('sub_phone', 'Mobile Phone') }}
{{ Form::text('sub_phone', (is_null($information['submission'])) ? null : preg_replace('/[^0-9]/', '', $information['submission']->data->submitter->phone), array('class' => 'numbers_only', 'style' => 'width: 100px;', 'required' => 'required', 'placeholder' => '##########')) }}
Save


Teams in {{ $information['league']->slug }} {{ $information['league']->name }}

For each team, please enter in the number of varsity participants that competed at the meet (maximum is 7 participants per team.) You can also enter in the team's coach information. If the school already supplied their contact information, it is automatically entered, although it may need to be updated.

@if (count($information['league_aps']) > 0) @foreach ($information['league_aps'] as $ap)
Fatal error: Class 'School' not found in /home/osaa/web_app/dev/app/views/forms/xc_registration.blade.php on line 876
Name Participants Athletic Director Coach Name Coach E-mail Coach Mobile Phone