@section('page_title') OSAA - Forms @stop @section('tool_box') @if (Auth::check() and Auth::user()->isOsaaUser())
Open: {{ date('g:ia n/j/y', strtotime($information['activity_form']->open_at)) }} Due: {{ date('g:ia n/j/y', strtotime($information['activity_form']->due_at)) }} Close: {{ date('g:ia n/j/y', strtotime($information['activity_form']->close_at)) }}
Entries
@endif @stop @section('page_sub_title') Track & Field District Meet Participation @stop @section('scripts') @parent @stop @section('jquery_init') $('.button').button(); $('.button.close').button({ icons : { primary : 'ui-icon-circle-close'}}); $('.button.back').button({ icons : { primary : 'ui-icon-arrowthick-1-w'}}); $('.button.disabled').button('disable'); $('.tooltip').tooltip(); $('[data-required="required"]').after('*'); $('[data-numbers-only]').bind('input', function() { $(this).val($(this).val().replace(/[^0-9]/gi, '')); }); 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(); $('.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); }) }); $('input.participation_number').bind('change blur', function () { var v = parseInt($(this).val()); if (v < 0) { $(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(); $('[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(''); } }); }); {{-- Include script for the league or school selection landing form --}} @if (is_null($information['league'])) /* Disable the next button and hide the loading icon */ $('#select_league_form input[type="submit"]').button('disable') .addClass('ui-state-error'); $('#select_league_form img').hide(); /* When a code is input, check it's value */ $('#select_league_form [name="code"]').bind('input', function () { $('#select_league_form img').show(); var code = $(this).val(); // Skip for now, to make it process faster if (false && code.length != 17) { $('#select_league_form input[type="submit"]').button('disable') .addClass('ui-state-error'); $('#select_league_form img').hide(); } else { var jqxhr = $.ajax( { type : 'POST', url : '/forms/check-code', data : { 'activity' : 'BTF', 'code' : code }, dataType : 'html' }) .fail(function () { $('#select_league_form input[type="submit"]').button('disable') .addClass('ui-state-error'); $('#select_league_form img').hide(); }) .success(function () { $('#select_league_form input[type="submit"]').button('enable') .removeClass('ui-state-error'); $('#select_league_form img').hide(); }); } }); // Only submit the form if the submit button is enabled $('#select_league_form').submit(function () { if ($('#select_league_form input[type="submit"]').is(':enabled')) { $('#select_league_form [name="code"]').remove(); return true; } else { return false; } }); @endif {{-- Show the OSAA tool bar --}} @if (Auth::check() and Auth::user()->isOsaaUser()) /* Enable the next button */ $('#select_league_form input[type="submit"]').button('enable') .removeClass('ui-state-error'); @endif @stop @section('page_functions') @if (!is_null($information['league'])) Back @else Close @endif @stop @section('main_content') @if (Session::has('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
{{-- Need to select a league --}} @if (is_null($information['league']))

District Participation Numbers


This form is for District Directors to submit district contest participation numbers.

Instructions
  1. Begin by selecting the league/special district from the drop-down list.
  2. Then please enter the password provided by the OSAA.
  3. Click Next to continue with the selection.
  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

{{ Form::open(array('url' => url('/forms/registration/' . strtolower($information['activity']->slug)), 'method' => 'get', 'id' => 'select_league_form')) }}
Select One
{{ Form::select('league', $information['leagues_list'], null, array('style' => 'margin-top: 0.5em;')) }}
Key Code/Password
{{ Form::text('code', (Auth::check() and Auth::user()->isOsaaUser()) ? 'STATEREGISTRATION' : null, array('style' => 'margin-top: 0.5em;')) }}

{{ Form::submit('Next', array('class' => 'button', 'style' => 'font-size: 9pt; margin-top: 0.5em;')) }}
{{ Form::close() }}


Note to District Directors

Use this form to submit your district's number of participants. You may resubmit this form as many times as needed until the deadline. To complete this form, you will need to supply the following information.

@else
@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)) }}.
@if ($information['submission']->data->complete) Complete @else Incomplete @endif @else Incomplete @endif

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


Instructions
  1. Use this form to record the number of school participants from the {{ $information['league']->slug }} - {{ $information['league']->name }} District Meet.
  2. Required fields are noted with a red asterisk*.
  3. When finished, click Submit to turn in this form with the entries provided.
  4. You can go back to the league selection page by clicking the Back button. You will lose all unsaved entries.
  5. 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 x239 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('activity', 'BTF') }} {{ Form::hidden('league', $information['league']->slug) }}

District Meet Director

Who was the District Meet Director?

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

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


Warning: Invalid argument supplied for foreach() in /home/osaa/web_app/dev/app/views/forms/tf_registration.blade.php on line 482
@if (count($school_info) > 7)
@endif @foreach ($school_info as $name => $data) @if ($i == 8)
@endif {{ $name }} @if (!is_null($data->BTF) and !is_null($data->GTF)) (Boys & Girls) @elseif (!is_null($data->BTF)) (Boys) @else (Girls) @endif
@endforeach @if (count($school_info) > 7)
@endif


Participation

Please enter the number of varsity level participants for each school's boys and girls team below.

@foreach ($school_info as $name => $data) @endforeach
Team Boys Girls
{{ $name }} @if (!is_null($data->BTF)) {{ Form::text('participation[' . $data->BTF . ']', (!is_null($information['submission'])) ? $information['submission']->data->participation->{$data->BTF} : null, array('class' => 'participation_number numbers_only', 'style' => 'width: 50px;', 'required' => 'required', 'placeholder' => '#')) }} @else - - @endif @if (!is_null($data->GTF)) {{ Form::text('participation[' . $data->GTF . ']', (!is_null($information['submission'])) ? $information['submission']->data->participation->{$data->GTF} : null, array('class' => 'participation_number numbers_only', 'style' => 'width: 50px;', 'required' => 'required', 'placeholder' => '#')) }} @else - - @endif
Total number of varsity participants:


Click Submit to turn in your district contest's state qualifiers and to send notification e-mails.
{{ Form::submit('Submit', array('class' => 'button', 'style' => 'font-size: 11pt;')) }} {{ Form::close() }}
@endif @stop