').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
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 }}
@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)
| Name |
Participants |
@foreach ($information['league_aps'] as $ap)
| {{ $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' => '#')) }}
|
@endforeach
@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