@section('page_title')
OSAA - Forms
@stop
@section('page_sub_title')
{{ $information['form_name'] }}
@stop
@section('scripts')
@parent
@stop
@section('jquery_init')
$('.button').button();
$('.button.close').button({ icons : { primary : 'ui-icon-circle-close'}});
$('.tooltip').tooltip();
// 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);
})
});
@stop
@section('page_functions')
Close
@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['seasonal_school_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['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']->user_first_name }} {{ $information['submission']->user_last_name }}.
@endif
{{ $season }} Activity Program Preselection for {{ $information['seasonal_school_form']->school_year + 1 }}-{{ substr($information['seasonal_school_form']->school_year, 2, 2) + 2 }}
@if (Session::has('errors'))
@foreach ($errors->all() as $error){{ $error }} @endforeach
@endif
{{ Form::open(array('url' => url('/forms/submit'),
'method' => 'post')) }}
{{ Form::hidden('form', 'PRESELECTION') }}
{{ Form::hidden('school', $information['school']->id) }}
{{ Form::hidden('seasonal_school_form', $information['seasonal_school_form']->id) }}
{{ Form::hidden('season', $information['seasonal_school_form']->season) }}
@foreach ($information['activities'][strtolower($season)] as $slug => $name)
{{ Form::label($slug, $name, array('style' => 'font-weight: bold; margin-right: 0.5em;')) }}
{{ Form::checkbox($slug, true, (!is_null($information['school']->getActivityInvolvement($slug))), array('style' => 'float: right; position: relative; top: 2px;')) }}
@endforeach
{{ Form::label('none', 'We do not plan to offer any ' . strtolower($season) . ' sports or activities.', array('style' => 'font-weight: bold; margin-right: 0.5em;')) }}
{{ Form::checkbox('none', true, false, array('style' => 'float: right; position: relative; top: 2px;')) }}
{{ Form::submit('Submit', array('class' => 'button float_right',
'style' => 'font-size: 10pt;')) }}
{{ Form::close() }}
@stop