@section('page_title') OSAA - Music Large Ensemble Contest Report @stop @section('page_sub_title') OSAA Music Large Ensemble Contest Report @stop @section('scripts') @parent @stop @section('jquery_init') // 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); }) }); // Placeholder functionality $('[data-placeholder]').focus(function() { var input = $(this); if (input.val() == input.attr('data-placeholder')) { input.val(''); input.removeClass('placeholder'); } }).blur(function() { var input = $(this); if (input.val() == '' || input.val() == input.attr('data-placeholder')) { input.addClass('placeholder'); input.val(input.attr('data-placeholder')); } }).blur(); $('[data-placeholder]').parents('form').submit(function() { $(this).find('[data-placeholder]').each(function() { var input = $(this); if (input.val() == input.attr('data-placeholder')) { input.val(''); } }) }); // Required field marker $('[data-required]').after('*'); // Name fields (do not allow any special characters) $('[data-name-field]').bind('input', function() { $(this).val($(this).val().replace(/[^A-Za-z \-'\.,]/gi, '')); }); // Phone field $('[data-phone-field]').mask("(999) 999-9999"); // Date picker $('[data-date-picker]').datepicker({'dateFormat':'mm/dd/yy', 'maxDate':'+0d'}); // Auto-complete fields $('input[type="text"][data-auto-complete]').each(function() { $(this).autocomplete({'source' : '{{ url('/forms/music/') }}/get-' + $(this).attr('data-auto-complete'), 'minLength' : 3}); }); // Admin button $('.admin_button') .button({'icons':{'primary':'ui-icon-star'}}) .css({'font-size':'9pt', 'margin-right':'10px'}); // Reset button $('.reset_button') .button({'icons':{'primary':'ui-icon-arrowreturnthick-1-w'}}) .css({'font-size':'9pt'}) .click(function(event) { event.preventDefault(); var link = $(this); var href = link.attr('href'); $('
') .appendTo('body') .dialog( { draggable : true, resizable : false, modal : true, height : 250, width : 400, title : 'Confirmation', buttons: [ { text : "Yes", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { window.location = href; } }, { text : "No", 'class' : "float_right", 'data-autofocus' : "true", icons : { primary : 'ui-icon-close'}, click : function() { // Close the dialog box $(this).dialog("close"); } } ], open : function () { var dialog_object = $(this); dialog_object.html('
Are you sure you want to reset and clear this form?
Your changes will be lost and you\'ll have to start over from scratch.
'); $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '9pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); $('[data-autofocus="true"]').focus(); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); // Help button $('.help_button') .button({'icons':{'primary':'ui-icon-help'}}) .css({'font-size':'9pt', 'margin-right':'10px'}) .click(function(event) { event.preventDefault(); $('
') .appendTo('body') .dialog( { draggable : true, resizable : true, height : 725, minHeight : 400, width : 615, minWidth : 330, modal : false, title : 'Help', open : function () { var dialog_object = $(this); dialog_object.html("
"); var jqxhr = $.ajax( { type : 'GET', url : '{{ url('forms/music/help') }}?topic=create', dataType : 'html' }) .done(function (returned_data) { dialog_object.html(returned_data); }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); console.log(errorData); alert ("There was an error looking up help information.\n\nThis page will be reloaded."); location.reload(); }) .complete(function () { }); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); // Shake action items function shakeActionImages (object) { var direction; if ($(object).has('[data-direction]')) { var direction = $(object).attr('data-direction'); } if (typeof direction == 'undefined') { var direction = 'left'; } $(object).effect("shake", {direction : direction, distance : 5, times : 1}, 600, function () { $(this).delay(Math.floor(Math.random() * 4000) + 2000); shakeActionImages($(this)); }); } $('img.action_item').each(function() { var img = $(this); shakeActionImages(img); }); // Hide inactive steps $('.step[data-step!="1"]').hide(); // Next step buttons $('.next_step') .button({'icons' : {'secondary' : 'ui-icon-circle-arrow-e'}}) .css({'font-size' : '11pt'}); // Create form button $('.create_form') .button({'icons' : {'secondary' : 'ui-icon-clipboard'}}) .css({'font-size' : '11pt'}); function indicateInvalidField (field, remove) { var name = field.attr('name'); if (!remove) { var icon = $('') .attr('data-validation-icon', 'true') .attr('alt', '') .attr('title', '') .attr('src', '{{ url('/images/icons/alert_16px.png') }}') .css({'position' : 'absolute', 'top' : '1px', 'right' : '-25px'}); var alert_text = field.attr('data-alert'); var label = $('label[for="' + name + '"]'); label .append(icon); field .css({'background-color' : '#ffdddd'}) .focus(); $('
') .appendTo('body') .dialog( { modal : true, draggable : false, resizable : false, height : 275, width : 415, title : 'Whoops! You Forgot Something', buttons: [ { text : "OK", 'class' : "float_right", icons : { primary : 'ui-icon-check'}, click : function() { // Close the dialog box $(this).dialog("close"); } } ], open : function () { var dialog_object = $(this); dialog_object.html('
' + alert_text + '
The field in question has been highlighted and an alert icon has also been added to grab your attention.
'); $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '9pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').append('
Still having trouble?
(503) 682-6722 x228
'); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); } else { $('label[for="' + name + '"] img[data-validation-icon]').remove(); field.css({'background-color' : ''}); } } // Verify information for step 1 $('.step[data-step="1"] .next_step') .click(function () { // Check organizer name var organizer_name = $('input[type="text"][name="organizer_name"]'); if (organizer_name.val() == '' || organizer_name.val() == organizer_name.attr('data-placeholder')) { indicateInvalidField(organizer_name, false); return; } else { indicateInvalidField(organizer_name, true); } // Check organizer email var organizer_email = $('input[type="text"][name="organizer_email"]'); if (organizer_email.val() == '') { indicateInvalidField(organizer_email, false); return; } else { indicateInvalidField(organizer_email, true); } // Check organizer phone var organizer_phone = $('input[type="text"][name="organizer_phone"]'); if (organizer_phone.val() == '') { indicateInvalidField(organizer_phone, false); return; } else { indicateInvalidField(organizer_phone, true); } // Made it through the validation checks $('.step[data-step="1"]') .hide({'effect' : 'slide', 'direction' : 'left', 'duration' : 1000, 'queue' : false}) .fadeOut({'duration' : 750, 'queue' : false, 'complete' : function () { $('[data-fill-in="organizer_name"]').text(organizer_name.val()); $('.step[data-step="2"]') .fadeIn({'duration' : 750, 'queue' : false}) .css({'display':'none'}) .show({'effect' : 'slide', 'direction' : 'right', 'duration' : 1000, 'queue' : false}); }}); }); // Verify information for step 2 $('.step[data-step="2"] .create_form') .click(function () { // Check event name var event_name = $('input[type="text"][name="event_name"]'); if (event_name.val() == '') { indicateInvalidField(event_name, false); return; } else { indicateInvalidField(event_name, true); } // Check the event date var date = $('input[type="text"][name="date"]'); if (date.val() == '') { indicateInvalidField(date, false); return; } else { indicateInvalidField(date, true); } // Check location var location = $('input[type="text"][name="location"]'); if (location.val() == '') { indicateInvalidField(location, false); return; } else { indicateInvalidField(location, true); } // Check activity var activity = $('select[name="activity"]'); var activity_value = activity.children(':selected').val(); if (activity_value == '') { indicateInvalidField(activity, false); return; } else { indicateInvalidField(activity, true); } // Check event_type var event_type = $('select[name="event_type"]'); var event_type_value = event_type.children(':selected').val(); if (event_type_value == '') { indicateInvalidField(event_type, false); return; } else { indicateInvalidField(event_type, true); } // Made it through the validation checks $('
') .appendTo('body') .css({'width' : '225px', 'height' : '170px', 'text-align' : 'center', 'padding' : '0.5em', 'position' : 'absolute', 'display' : 'none'}) .fadeIn(400) .position({my : "center center", at : "center center-100", of : $('#full_page_content')}) .addClass('ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-dialog-buttons') .html('
Creating Form...

Please wait, this may take a while to process.
'); // Hide the step 2 panel $('.step[data-step="2"]') .hide({'effect' : 'slide', 'direction' : 'left', 'duration' : 1000, 'queue' : false}) .fadeOut({'duration' : 750}); // Submit form data $('#new_form').submit(); }); @stop @section('page_functions') @if (Auth::check() and Auth::user()->isOsaaUser()) Admin @endif Help Reset/Clear Form @stop @section('main_content') {{-- Success Bar --}} @if (Session::has('success'))
{{ Session::get('success') }}
@endif {{-- Errors --}} @if (Session::has('errors'))
@foreach ($errors->all() as $error) {{ $error }} @endforeach
@endif
* Required fields are indicated with a red asterisk.

Create a New Report Form


{{ Form::open(array('url' => '/forms/music/large-ensemble/create', 'id' => 'new_form')) }} {{ Form::hidden('school_year', $info['year']) }} {{-- Step 1 --}}

Step 1: Start a New Form

To create a new OSAA Music Large Ensemble Contest Report Form, begin by providing your information as the Event Organizer. If you are not an event organizer, but a school looking to register to state, please click here.

You will be listed as the Event Organizer. If there are any questions about the form you submit, the OSAA office may contact you via the information you provide. Only the OSAA staff will have access to your contact information.
It is helpful to know from which school or organization you are associated. This field will show you some suggested options as you type.
{{ Form::label('organizer_name', 'Your Name') }} {{ Form::text('organizer_name', null, array('data-name-field' => 'true', 'data-placeholder' => 'First Last', 'data-required' => 'true', 'data-alert' => 'You must provide your first and last name in the name field before moving on to the next step.')) }}

{{ Form::label('organizer_email', 'Email Address') }} {{ Form::text('organizer_email', null, array('data-required' => 'true', 'data-alert' => 'You must provide your e-mail address before moving on to the next step.', 'style' => 'width: 250px;')) }}

{{ Form::label('organizer_phone', 'Phone Number') }} {{ Form::text('organizer_phone', null, array('data-phone-field' => 'true', 'data-required' => 'true', 'data-alert' => 'You must provide your 10 digit phone number before moving on to the next step.', 'style' => 'width: 115px;')) }}

{{ Form::label('organizer_school', 'School / Org.') }} {{ Form::text('organizer_school', null, array('data-auto-complete' => 'schools', 'style' => 'width: 300px;')) }}


Next


{{-- Step 2 --}}

Step 2: Provide Some Event Information

Thanks, , for completing Step 1. For Step 2, you'll need to provide information about the event or festival. It is important to provide accurate information. If you are unsure about an option, check out the Help button for more details. If you want to start over, click the Reset/Clear button to start a new form from scratch.

Click the date field to bring up a date picker. Dates should be entered in MM/DD/YYYY format. If the event or festival occurred over more than one day, provide the last day of the event.
The location field will show you suggested options as you type.
Was this event a choir, band, or orchestra activity?
What type of event was this contest? There is a difference between OSAA League contests and OMEA District contests.
{{ Form::label('event_name', 'Event Title') }} {{ Form::text('event_name', null, array('data-required' => 'true', 'data-alert' => 'You must provide the name/title of the event before moving on to the next step.', 'style' => 'width: 400px;')) }}

{{ Form::label('date', 'Date') }} {{ Form::text('date', null, array('data-date-picker' => 'true', 'data-required' => 'true', 'data-alert' => 'You must select the date when the event was held before moving on to the next step.', 'style' => 'width: 100px;')) }}

{{ Form::label('location', 'Location') }} {{ Form::text('location', null, array('data-required' => 'true', 'data-alert' => 'You must enter in where the event was held before moving on to the next step.', 'data-auto-complete' => 'locations', 'style' => 'width: 300px;')) }}

{{ Form::label('activity', 'Activity') }} {{ Form::select('activity', array_merge(array('' => ''), $info['activities']), null, array('data-required' => 'true', 'data-alert' => 'Before moving on to the next step, you must select this event\'s activity from the drop-down list.', 'style' => 'width: 100px;')) }}

{{ Form::label('event_type', 'Type') }} {{ Form::select('event_type', array_merge(array('' => ''), $info['event_types']), null, array('data-required' => 'true', 'data-alert' => 'You must select the correct event type for this contest. This has a major impact on the qualifiers and it must be selected before moving forward on to the next step.', 'style' => 'width: 200px;')) }}


Create Form
You will also receive an email will a link to your form,
just in case you need to close the form and come back to it later.


{{ Form::close() }}
This form is to be completed immediately following the event by the Event Organizer. This is not the state registration form.
Entries on this form indicate music groups that have participated in a state qualifying event.

If you are a music group looking to register for state, please click here.

For questions, click the Help button for full details and instructions.
If you need assistance, contact OSAA Support at (503) 682-6722 x228 or email {{ Helpers::obfuscateEmailLink ("support@osaa.org") }}.
@stop