@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
Submissions
@endif @stop @section('page_sub_title') {{-- $information['form_name'] --}} Wrestling District Supplemental Report Form @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.edit').button({ icons : { primary : 'ui-icon-pencil'}}); $('.button_set').buttonset(); $('.button_set label').addClass('ui-corner-all'); $('.tooltip').tooltip(); $('.date_picker').datepicker({'dateFormat' : 'mm/dd/yy'}); $('[data-required]').after('*'); function colorRows () { $('table').each(function () { var i = 0; $('tbody tr:visible', $(this)).each(function () { if (i % 2 == 0) { $(this).addClass('odd'); } else { $(this).removeClass('odd'); } i = i + 1; }); }); } colorRows(); /* Limit input to numbers only */ $('.numbers_only').bind('input', function() { $(this).val($(this).val().replace(/[^0-9]/gi, '')); }); /* Limit input to letters only */ $('.alphas_only').bind('input', function() { $(this).val($(this).val().replace(/[^A-Za-z]/gi, '')); }); $('input.participation_number').bind('change blur', function () { var v = parseInt($(this).val()); if (v < 0 || v > 28) { $(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(''); } }); }); /* 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(); }); // 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); }) }); @if (!is_null($information['league'])) $('input[type="submit"]').click(function (event) { event.preventDefault(); var form = $(this).parent('form'); $('
').appendTo('body') .html('
Are you sure you want to submit this form?
Be sure that you have double checked your entries. You can resubmit this form as many times as necessary before the deadline. The most recent submission will be considered the correct data.
') .dialog( { autoOpen: true, draggable: false, resizable: false, height: 275, width: 400, title: 'Confirm Submission', modal: true, buttons: [ { text : "Yes", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { $(this).dialog( "close"); $(this).remove(); $('
').addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .css('width', '225px') .css('height', '170px') .css('text-align', 'center') .css('padding', '0.5em') .position({my : "center center", at : "center center", of : window}) .addClass('ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-dialog-buttons') .html('
Working...

Please wait, this may take a while to process and send e-mails.
'); form.submit(); } }, { text : "No", 'class' : "float_right", icons : { primary : 'ui-icon-cancel'}, click : function() { $(this).dialog( "close");; $(this).remove(); } } ], open : function () { $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '10pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); //$('.ui-dialog-titlebar').addClass('ui-state-highlight'); } }); return false; }); @endif {{-- Show the OSAA tool bar --}} @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 : 600, modal : false, resizable : false, open : function () { $('#submissions_report').html("
"); var jqxhr = $.ajax( { type : 'GET', url : '/reports/wre-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 Wrestling Form Submissions', 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/wre-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 Wrestling Form Entries', width : 500 } ); $('.button.entries').click(function () { $('#entries_report').dialog('open'); }); @endif @stop @section('page_functions') @if (!is_null($information['league'])) Back @else Close @endif @stop @section('main_content') {{-- Success Bar --}} @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 @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. 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/' . $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() }} @else {{-- A League is selected --}}
@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 }}


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 }} and the meet director.
  5. You can go back to the league selection page by clicking the Back button. You will lose all unsaved entries.
  6. 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('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;', 'data-required' => 'required', 'placeholder' => 'E-mail address')) }}
{{ 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;', 'data-required' => 'required', 'placeholder' => '##########')) }}
Save


Team Participation in the {{ $information['league']->slug }} {{ $information['league']->name }} Meet

For each team, please enter in the number of varsity participants that competed at the meet (maximum is 28 participants per team.)

@if (count($information['league_aps']) > 0) @foreach ($information['league_aps'] as $ap) @endforeach
Name Participants
{{ $ap->name }} {{ Form::text('participants[' . $ap->id . ']', (is_null($information['submission'])) ? null : $information['submission']->data->participants->{$ap->id}, array('class' => 'participation_number numbers_only', 'style' => 'width: 50px;', 'data-required' => 'required', 'placeholder' => '#')) }}
@else
No teams are assigned to this league. This is a problem. Contact {{ $information['staff']->first_name }} {{ $information['staff']->last_name }} for correcting this issue.
@endif
Save


Total Varsity Participants


Officials Ballot

Select the number one, number two, and number three official as voted on by the Head Wrestling Coaches of all teams participating in the tournament.

{{ Form::label('officials[0]', '#1 Official', array('style' => 'font-weight: bold; width: 100px; display: inline-block;')) }} {{ Form::select('officials[0]', $information['wre_officials']->list, (is_null($information['submission'])) ? null : $information['submission']->data->officials[0], array('style' => 'padding-right: 1em;', 'data-required' => 'required')) }}

{{ Form::label('officials[1]', '#2 Official', array('style' => 'font-weight: bold; width: 100px; display: inline-block;')) }} {{ Form::select('officials[1]', $information['wre_officials']->list, (is_null($information['submission'])) ? null : $information['submission']->data->officials[1], array('style' => 'padding-right: 1em;', 'data-required' => 'required')) }}

{{ Form::label('officials[2]', '#3 Official', array('style' => 'font-weight: bold; width: 100px; display: inline-block;')) }} {{ Form::select('officials[2]', $information['wre_officials']->list, (!is_null($information['submission']) and isset($information['submission']->data->officials[2])) ? $information['submission']->data->officials[2] : null, array('style' => 'padding-right: 1em;')) }}

{{ Form::label('officials[3]', '#4 Official', array('style' => 'font-weight: bold; width: 100px; display: inline-block;')) }} {{ Form::select('officials[3]', $information['wre_officials']->list, (!is_null($information['submission']) and isset($information['submission']->data->officials[3])) ? $information['submission']->data->officials[3] : null, array('style' => 'padding-right: 1em;')) }}

{{ Form::label('officials[4]', '#5 Official', array('style' => 'font-weight: bold; width: 100px; display: inline-block;')) }} {{ Form::select('officials[4]', $information['wre_officials']->list, (!is_null($information['submission']) and isset($information['submission']->data->officials[4])) ? $information['submission']->data->officials[4] : null, array('style' => 'padding-right: 1em;')) }}

{{ Form::label('officials[5]', '#6 Official', array('style' => 'font-weight: bold; width: 100px; display: inline-block;')) }} {{ Form::select('officials[5]', $information['wre_officials']->list, (!is_null($information['submission']) and isset($information['submission']->data->officials[5])) ? $information['submission']->data->officials[5] : null, array('style' => 'padding-right: 1em;')) }}
Save


Click Submit to turn in your wrestling district's supplemental report form.
{{ Form::submit('Submit', array('class' => 'button', 'style' => 'font-size: 11pt;')) }} {{ Form::close() }}

@endif @stop