@section('page_title') OSAA - Forms @stop @section('page_sub_title') {{ $information['form_name'] }} @stop @section('scripts') @parent @stop @section('jquery_init') if(!window.console) { window.console = { log: $.noop, group: $.noop, groupEnd: $.noop }; } // 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); }) }); // Reload indicator $('input[type="text"][data-reload], select[data-reload]').addClass('reload_input'); {{-- $('input[type="text"][data-reload], select[data-reload]') .css({'border-width' : '1px', 'border-left-color' : '#005fa9', 'border-left-width' : '2px'}); --}} /* * Custom tooltip items */ $('[data-tooltip]').each(function () { var item = $(this); var help = item.attr('data-tooltip'); item.tooltip({'content' : help, 'items' : item}); }); /* Positioned elements * * Elements that contain the attribute data-position="true" will be positioned * using JQuery's UI positioning utility. Other expected attributes define the * element's position: * data-position-my * data-position-at * data-position-of */ $('[data-position="true"]').each(function() { var element = $(this); var my = element.attr('data-position-my'); var at = element.attr('data-position-at'); var of = element.attr('data-position-of'); var options = $.parseJSON('{ "my" : "' + my + '", "at": "' + at + '", "of": "' + of + '"}'); element.position(options); }); // Required field marker {{-- $('[data-required]:not([data-required-indicator])').after('*'); --}} $('[data-required]:not([data-required-indicator]):not([data-required="special"]').after('*'); $('[data-required="special"]:not([data-required-indicator])').after('*'); // Date picker $('[data-format="date-picker"]').datepicker({'dateFormat':'mm/dd/yy', 'maxDate':'+0d'}); // Format: phone number $('[data-format="phone"]').mask("(999) 999-9999"); // Format: numbers only $('[data-format="numbers"]').bind('input', function() { $(this).val($(this).val().replace(/[^0-9]/gi, '')); }); // Format: letters only $('[data-format="letters"]').bind('input', function() { $(this).val($(this).val().replace(/[^A-Za-z]/gi, '')); }); // Table row highlighter 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(); /* * Auto-complete text fields */ $('input[type="text"][data-autocomplete]') .each(function() { $(this).autocomplete({'source' : $(this).attr('data-source'), 'minLength' : 3}); }); @if (Session::has('new_form') or Input::has('new-form') or (!is_null($information['submission']) and Helpers::strIsEmpty($information['submission']->data->director->name))) showHelp('new-form', true); @endif /* ShowHelp * * Shows a help topic. */ function showHelp(help_topic, no_button) { if (no_button !== true) { var dialog_options = { class : "registration_form_help", draggable : true, resizable : true, height : 725, min_height : 400, width : 615, min_width : 330, modal : false, title : 'Registration Form Help' }; } else { var dialog_options = { class : "registration_form_help no-close", draggable : false, resizable : false, height : 650, min_height : 650, width : 615, min_width : 615, modal : true, title : 'New Registration Form Created' }; } $('
') .appendTo('body') .css({'z-index':'2000 !important'}) .dialog({ draggable : dialog_options.draggable, resizable : dialog_options.resizable, height : dialog_options.height, minHeight : dialog_options.min_height, width : dialog_options.width, minWidth : dialog_options.min_width, modal : dialog_options.modal, title : dialog_options.title, dialogClass : dialog_options.class, open : function () { var dialog_object = $(this); dialog_object.html("
"); var jqxhr = $.ajax( { type : 'GET', url : '{{ url('/forms/registration/spe/help') }}?topic=' + help_topic, 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 () { if (no_button == true) { $('.close_first_view_button', dialog_object) .button() .click(function () { dialog_object.dialog("close"); }); // Shake action items function shakeTheseActionImages (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); shakeTheseActionImages($(this)); }); } var img = $('img.action_item', dialog_object); img.position({my:"center center", at : "right+30 center", of : ".close_first_view_button"}); shakeTheseActionImages(img); } }) }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); } /* * Help button */ $('.page_functions .help_button') .button({'icons':{'primary':'ui-icon-help'}}) .css({'font-size':'9pt'}) .click(function(event) { var object = $(this); event.preventDefault(); var topic = object.attr('data-topic'); showHelp(topic); object.blur(); }); /* * Close button */ $('.close_button') .button({'icons':{'primary':'ui-icon-circle-close'}}) .css({'font-size':'9pt', 'margin-left':'10px'}); /* * Back button */ $('.back_button') .button({'icons':{'primary':'ui-icon-circle-arrow-w'}}) .css({'font-size':'9pt', 'margin-left':'10px'}); /* * Form Behavior */ {{-- Include script for the league landing form --}} @if (is_null($information['league'])) @if (Auth::check() and Auth::user()->isOsaaUser()) $('.entries_button') .css({'font-size' : '9pt', 'margin-right' : '10px'}) .button({'icons' : {'primary' : 'ui-icon-folder-collapsed'}}); @endif /* Disable the next button and hide the loading icon */ $('#select_league_form input[type="submit"]') .button() .button('disable') .addClass('ui-state-error') @if (Auth::check() and Auth::user()->isOsaaUser()) .button('enable') .removeClass('ui-state-error') @endif; $('#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' : 'SPE', '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; } }); @else /* * Make the action area sticky */ var window_object = $(window); var action_area = $('.action_area'); var top = (action_area.offset().top) - 40; window_object.scroll(function() { action_area.toggleClass('sticky', window_object.scrollTop() > top); }); /* Gray out disabled qualifier spots */ $('.qualifier_number').each(function(index, item) { var parent = $(item).parent('.qualifier'); if ($(parent).is('[data-qualifier-disabled]')) { $(item).css({'color' : '#cccccc'}); } else { $(item).css({'color' : '#00ad20'}); } }); $('.qualifier[data-qualifier-disabled]').css({'background-color' : '#efefef', 'border-right' : '2px solid #dddddd'}); $('.qualifier[data-qualifier-disabled] input, .qualifier[data-qualifier-disabled] select').css({'background-color' : '#efefef'}); $('.qualifier[data-qualifier-disabled] input').attr('readonly', 'readonly'); $('.qualifier[data-qualifier-disabled] select').attr('disabled', 'disbled'); /* * Action Area Buttons */ $('.action_area a') .css({'font-size' : '9pt', 'margin-right' : '1em'}) .button() .each(function () { var link = $(this); if (link.has('[data-icon]')) { var icon = link.attr('data-icon'); link.button({'icons' : {'primary' : icon }}); } if (link.has('[data-help]')) { var help = link.attr('data-help'); link.tooltip({'content' : help, 'items' : 'a'}); } }); /* * Print Button */ $('[data-action="print"]') .click(function(event) { event.preventDefault(); var button = $(this); button.blur(); $('.ui-tooltip').remove(); $('textarea').each(function(index, item) { var area = $(item); var content = area.val().replace(/\r\n|\r|\n/g, '
') + '

'; var temp = $('
') .html(content) .css({'visibility':'hidden', 'display':'block', 'height':'auto', 'overflow':'visible', 'width':area.width(), 'font-size':area.css('font-size'), 'line-height':area.css('line-height')}) .appendTo('body'); area.css({'min-height':area.css('height'), 'height':(temp.height() * 1.25) + 'px'}); if (area.is('.judge_notes')) { area.css({'height' : '3.5em'}); } temp.remove(); }); @if (!is_null($information['league'])) $('.event_name').each(function(index, item) { var add = $('
') .addClass('print_only') .css({'float' : 'right'}) .html('Speech District {{ $information['league']->name }}'); $(item).before(add); }); @endif window.print(); }); /* showCheckResults * * Shows the results of the form check operation. */ function showCheckResults(check) { var pass = check[0]; if (pass) { $('
') .appendTo('body') .dialog( { draggable : true, resizable : false, height : 280, width : 400, modal : true, title : 'Form Check: Pass', open : function () { var dialog_object = $(this); var html = '
'; html += '
'; html += ''; html += 'Your Form Passed Inspection'; html += '
'; html += 'All required information has been provided. This form is ready to be submitted.

When you are ready, click the "Submit" button to submit your form.

OK
'; html += '
'; dialog_object.html(html); $('.close_button', dialog_object) .button({'icons' : {'secondary' : 'ui-icon-check'}}) .css({'font-size' : '9pt'}) .focus() .click(function(event) { event.preventDefault(); dialog_object.dialog('close'); }); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); } else { $('
') .appendTo('body') .dialog( { draggable : true, resizable : false, height : 400, width : 500, modal : true, title : 'Form Check: Fail', open : function () { var dialog_object = $(this); var html = '
'; html += '
'; html += ''; html += 'Your Form Failed Inspection'; html += '
'; html += 'You are missing some required information or some other item. Your form cannot be submitted successfully.

Error Details
'; html += '

'; html += '
OK
'; html += '
'; dialog_object.html(html); $('.close_button', dialog_object) .button({'icons' : {'secondary' : 'ui-icon-check'}}) .css({'font-size' : '9pt'}) .focus() .click(function(event) { event.preventDefault(); dialog_object.dialog('close'); }); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); } } /* * Run check button */ $('[data-action="check"]') .click(function(event) { event.preventDefault(); var button = $(this); button.blur(); $('
') .attr('data-check', 1) .addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .attr('data-check', 1) .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') .html('
Checking Form...

Please wait while your form is checked, this may take a while to process...
'); // Get a form check var jqxhr = $.ajax( { type : 'GET', url : '{{ url('/forms/registration/spe/' . $information['submission']->id . '/check') }}', dataType : 'html' }) .done(function (data) { $('[data-check]').remove(); var check = $.parseJSON(data); //console.log(check); showCheckResults(check); }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert("There was an error checking form's data.\n\n" + errorData.error.message + "\n\nThis page will be reloaded."); location.reload(); }); }); /* * Submit button */ $('[data-action="submit"]') .click(function(event) { event.preventDefault(); var button = $(this); button.blur(); $('
') .attr('data-check', 1) .addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .attr('data-check', 1) .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') .html('
Checking Form...

Please wait while your form is checked, this may take a while to process...
'); // Get a form check var jqxhr = $.ajax( { type : 'GET', url : '{{ url('/forms/registration/spe/' . $information['submission']->id . '/check') }}', dataType : 'html' }) .done(function (data) { $('[data-check]').remove(); var check = $.parseJSON(data); //console.log(check); if (!check[0]) { showCheckResults(check); return; } // Passed, now confirm $('
') .appendTo('body') .dialog( { modal : true, draggable : true, resizable : false, height : 325, width : 450, title : 'Confirm Form Submission', buttons: [ { text : "Submit", 'class' : "float_left", icons : { primary : 'ui-icon-circle-arrow-e'}, click : function() { // Submit the form $('
') .attr('data-check', 1) .addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .attr('data-check', 1) .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') .html('
Submitting Form...

Form check passed, now please wait while your form is submitted, this may take a while to process...
'); // Submit the form window.location.href= "{{ url('/forms/registration/spe/' . $information['submission']->id . '/submit') }}?code={{ $information['submission']->data->code }}"; } }, { text : "Cancel", 'class' : "float_right", 'data-autofocus' : "true", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close this dialog box $(this).dialog("close"); } } ], open : function () { var dialog_object = $(this); var html = '
'; html += ''; html += 'Are you sure you want to submit this form to the OSAA?'; html += '

'; html += '
Your form has passed initial inspection for all of the required information. Please note that once you submit this form, any school with a state qualifying participant will be notified of these results by e-mail.

'; html += '
You can only submit this form once. Once submitted, you will no longer be able to make any changes.
'; html += '
'; dialog_object.html(html); $('.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.dialog("close"); dialog_object.remove(); } }); }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert("There was an error checking form's data.\n\n" + errorData.error.message + "\n\nThis page will be reloaded."); location.reload(); }); }); @if ($information['submission']->data->complete and (!Auth::check() or !Auth::user()->isOsaaUser())) /* * Remove buttons: submit, check, add proven, add judge */ $('[data-action="submit"], [data-action="check"], .add_judge, .add_proven_qualifier, .delete_judge, .delete_proven_qualifier').remove(); /* * Make all text fields and textareas read-only */ $('input[type="text"], input[type="checkbox"], textarea, select') .attr('readonly', 'readonly') .attr('disabled', 'disabled'); @endif /* alertRequiredField * * Shows an alert box when attempting to save a blank value to a required field. */ function alertRequiredField() { $('
') .appendTo('body') .dialog( { modal : true, draggable : false, resizable : false, height : 275, width : 415, title : 'Required Field', 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('
You\'ve entered in a blank value for a required field. Required fields cannot be empty.
The original value has been restored.
'); $('.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(); } }); } /* saveFormData * * Given a form field and a value, this function will do a * JSON POST request to save the form's information. The optional * third parameter will determine if the page will be reloaded or not. */ function saveFormData(field, value, type, reload) { // Ensure the field and value parameters are provided if (typeof field == 'undefined' || typeof value == 'undefined' || typeof type == 'undefined') { alert('Scripting error. Unable to save form data.'); } // Get the optional reload parameter reload = typeof reload !== 'undefined' ? reload : false; // Get the form ID (same across all pages for this form) var form_id = {{ $information['submission']->id }}; $('*').css({'cursor':'wait'}); var jqxhr = $.ajax( { type : 'POST', url : '{{ url('/forms/league-forms') }}/' + form_id + '/update', data : { 'field' : field, 'value' : value, 'type' : type }, dataType : 'html' }) .done(function(returned_data) { // Success //console.log("Successfully saved {'" + form_id + "|" + field + "' : '" + value + "'}"); var info = $.parseJSON(returned_data); $('#updated_at').fadeOut(400, function() { var updated_at = $(this); updated_at.html(info.updated_at); updated_at.fadeIn(); }); if (info.force_reload) { reload = true; } }) .fail(function(jqXHR, status, error) { // Error var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert("There was an error saving this form's data.\n\n" + errorData.error.message + "\n\nPlease try again. Please note, that if you try to reload this page, your unsaved data will be lost."); }) .complete(function () { // Reload if necessary if (reload) { location.reload(); } else { $('*').css({'cursor':''}); } }); } // Autosave text fields function autoSaveTextField(input_field) { clearTimeout(autoSaveTextField.timeout); autoSaveTextField.timeout = setTimeout(function (){ var value = input_field.val(); var original_value = input_field.attr('data-original'); var field = input_field.attr('data-field'); var type = input_field.attr('data-type'); var readonly_attr = input_field.attr('readonly'); if (typeof readonly_attr !== typeof undefined && readonly_attr !== false) { return false; } var reload = false; var reload_attr = input_field.attr('data-reload'); if (typeof reload_attr !== typeof undefined && reload_attr !== false) { reload = true; } var required = false; var required_attr = input_field.attr('data-required'); if (typeof required_attr !== typeof undefined && required_attr !== false && required_attr != 'special') { required = true; } if (required && value == '' && !(original_value == '' || typeof original_value === typeof undefined || original_value === false)) { input_field.val(original_value); input_field.focus(); alertRequiredField(); return; } if (value != original_value && ((required && value != '') || !required)) { saveFormData(field, value, type, reload); input_field.attr('data-original', value); } }, 50); } // Autosave text fields and textareas $('input[type="text"][data-autosave]').on('change blur autocompletechange autocompleteselect', function (event) { autoSaveTextField ($(this)); }); $('textarea[data-autosave]').on('change blur autocompletechange autocompleteselect', function (event) { autoSaveTextField ($(this)); }); // Autosave select fields $('select[data-autosave]').on('change', function(event) { var select_field = $(this); var selected = $(':selected', select_field); var value = selected.val(); var original_value = select_field.attr('data-original'); var field = select_field.attr('data-field'); var type = select_field.attr('data-type'); var readonly_attr = select_field.attr('readonly'); if (typeof readonly_attr !== typeof undefined && readonly_attr !== false) { return false; } var reload = false; var reload_attr = select_field.attr('data-reload'); if (typeof reload_attr !== typeof undefined && reload_attr !== false) { reload = true; } if (value != original_value) { saveFormData(field, value, type, reload); select_field.attr('data-original', value); } }); // Autosave check-box fields $('input[type="checkbox"][data-autosave]').on('change', function(event) { var checkbox_field = $(this); var value = checkbox_field.is(':checked'); var original_value = checkbox_field.attr('data-original'); var field = checkbox_field.attr('data-field'); var type = checkbox_field.attr('data-type'); var readonly_attr = checkbox_field.attr('readonly'); if (typeof readonly_attr !== typeof undefined && readonly_attr !== false) { return false; } var reload = false; var reload_attr = checkbox_field.attr('data-reload'); if (typeof reload_attr !== typeof undefined && reload_attr !== false) { reload = true; } if (value != original_value) { saveFormData(field, value, type, reload); checkbox_field.attr('data-original', value); } }); /* Add proven excellent qualifier button */ $('.add_proven_qualifier') .button({'icons' : {'primary' : 'ui-icon-circle-plus'}}) .css({'font-size' : '9pt'}) .click(function(event) { event.preventDefault(); $('*').css({'cursor':'wait'}); var form_id = {{ $information['submission']->id }}; var jqxhr = $.ajax( { type : 'POST', url : '{{ url('/forms/registration/spe') }}/' + form_id + '/add-proven-qualifier', data : { 'form_id' : form_id }, dataType : 'html' }) .done(function(returned_data) { window.location.href = '{{ url('/forms/registration/spe') }}?league={{ urlencode($information['league']->slug) }}#proven-excellence-qualifiers'; location.reload(); }) .fail(function(jqXHR, status, error) { $('*').css({'cursor':''}); // Error var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert("There was an error attempting to add a new proven excellence qualifier to this form's data.\n\n" + errorData.error.message + "\n\nPlease try again. Please note, that if you try to reload this page, your unsaved data will be lost."); }) .complete(function () { }); }); /* Remove a proven excellence qualifier button */ $('.delete_proven_qualifier').click(function(event) { event.preventDefault(); var link = $(this); var index = parseInt(link.attr('data-index')); var form_id = {{ $information['submission']->id }}; var row = $('.qualifier.additional[data-index="' + index + '"]'); // Highlight the row row.addClass('hightlight'); // Show a dialog box to get confirmation $('
') .appendTo('body') .dialog( { modal : true, draggable : true, resizable : false, title : 'Remove This Qualifier?', height : 250, width : 400, position : {my : "bottom", at : "top", of : row}, buttons: [ { text : "Cancel", 'class' : "float_right", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close the dialog box $(this).dialog("close"); } }, { text : "Delete", 'class' : "float_left", icons : { primary : 'ui-icon-trash'}, click : function() { var dialog_object = $(this); $('
') .attr('data-processing', 1) .addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .attr('data-processing', 1) .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') .html('
Removing Qualifier...

Please wait, this may take a while to process...
'); var data = { 'form_id' : form_id, 'index' : index }; // Remove the qualifier var jqxhr = $.ajax( { type : 'POST', url : '{{ url('/forms/registration/spe') }}/' + form_id + '/delete-proven-qualifier', data : data, dataType : 'html' }) .done(function (data) { //$('[data-processing]').remove(); //location.reload(); window.location.href = '{{ url('/forms/registration/spe') }}?league={{ urlencode($information['league']->slug) }}#proven-excellence-qualifiers'; location.reload(); }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert("There was an error removing this qualifier.\n\n" + errorData.error.message + "\n\nPlease try again."); $('[data-processing]').remove(); // Close the dialog box $(dialog_object).dialog("close"); }); } } ], open : function () { var dialog_object = $(this); var html = '
'; html += ''; html += 'Are you sure you want to delete this highlighted proven excellence qualifier from your form?'; html += '

'; html += 'Once you delete this row, the proven excellence qualifier\'s information will be removed from this form. This cannot be undone.'; html += '
'; dialog_object.html(html); $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '9pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); }, close : function () { // Unhighlight the row row.removeClass('hightlight'); var dialog_object = $(this); $(dialog_object).remove(); } }); }); /* Add judge button */ $('.add_judge') .button({'icons' : {'primary' : 'ui-icon-circle-plus'}}) .css({'font-size' : '9pt'}) .click(function(event) { event.preventDefault(); $('*').css({'cursor':'wait'}); var form_id = {{ $information['submission']->id }}; var jqxhr = $.ajax( { type : 'POST', url : '{{ url('/forms/registration/spe') }}/' + form_id + '/add-judge', data : { 'form_id' : form_id }, dataType : 'html' }) .done(function(returned_data) { window.location.href = '{{ url('/forms/registration/spe') }}?league={{ urlencode($information['league']->slug) }}#judges'; location.reload(); }) .fail(function(jqXHR, status, error) { $('*').css({'cursor':''}); // Error var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert("There was an error attempting to add a new judge to this form's data.\n\n" + errorData.error.message + "\n\nPlease try again. Please note, that if you try to reload this page, your unsaved data will be lost."); }) .complete(function () { }); }); /* Remove a judge button */ $('.delete_judge').click(function(event) { event.preventDefault(); var link = $(this); var index = parseInt(link.attr('data-index')); var form_id = {{ $information['submission']->id }}; var row = $('.qualifier.judges[data-index="' + index + '"]'); // Highlight the row row.addClass('hightlight'); // Show a dialog box to get confirmation $('
') .appendTo('body') .dialog( { modal : true, draggable : true, resizable : false, title : 'Remove This Judge?', height : 250, width : 400, position : {my : "bottom", at : "top", of : row}, buttons: [ { text : "Cancel", 'class' : "float_right", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close the dialog box $(this).dialog("close"); } }, { text : "Delete", 'class' : "float_left", icons : { primary : 'ui-icon-trash'}, click : function() { var dialog_object = $(this); $('
') .attr('data-processing', 1) .addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .attr('data-processing', 1) .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') .html('
Removing Judge...

Please wait, this may take a while to process...
'); var data = { 'form_id' : form_id, 'index' : index }; // Remove the qualifier var jqxhr = $.ajax( { type : 'POST', url : '{{ url('/forms/registration/spe') }}/' + form_id + '/delete-judge', data : data, dataType : 'html' }) .done(function (data) { //$('[data-processing]').remove(); //location.reload(); window.location.href = '{{ url('/forms/registration/spe') }}?league={{ urlencode($information['league']->slug) }}#judges'; location.reload(); }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert("There was an error removing this judge.\n\n" + errorData.error.message + "\n\nPlease try again."); $('[data-processing]').remove(); // Close the dialog box $(dialog_object).dialog("close"); }); } } ], open : function () { var dialog_object = $(this); var html = '
'; html += ''; html += 'Are you sure you want to delete this highlighted judge from your form?'; html += '

'; html += 'Once you delete this row, the judges\'s information will be removed from this form. This cannot be undone.'; html += '
'; dialog_object.html(html); $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '9pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); }, close : function () { // Unhighlight the row row.removeClass('hightlight'); var dialog_object = $(this); $(dialog_object).remove(); } }); }); @endif @stop @section('page_functions') @if (!is_null($information['league'])) Help Back @else @if (Auth::check() and Auth::user()->isOsaaUser()) Entries @endif Help Close @endif @stop @section('main_content') {{-- Success Bar --}} @if (Session::has('success'))
{{ Session::get('success') }}
@endif {{-- Action Area --}} @if (!is_null($information['submission']))
Form Actions
League Form ID = {{ $information['submission']->id }}
@foreach ($information['action_items'] as $action => $item) @if ($item['enabled']) {{ $item['text'] }} @endif @endforeach
@if ($information['submission']->data->complete) Complete @else Incomplete @endif
Last updated at {{ date('g:i a m/d/Y', strtotime($information['submission']->updated_at)) }}
Form created at {{ date('g:i a m/d/Y', strtotime($information['submission']->created_at)) }}
@endif {{-- Past Due --}} @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']))

Speech Special District Results


This form is for District Directors to submit special district contest results identifying state qualifying participants.

Instructions
  1. Begin by selecting the special district from the drop-down list.
  2. Then enter the district director key code/password provided by the OSAA.
  3. Click Next to continue with the selection.
  4. 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") }}.


Select Your Special District

{{ Form::open(array('url' => url('/forms/registration/' . strtolower($information['activity']->slug)), 'method' => 'get', 'id' => 'select_league_form')) }}
Special District
{{ 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; width: 200px;')) }}

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


Note to District Directors

Use this form to submit your district's results. You will not be able to make changes once you submit this form. To complete this form, you will need to supply the following information.

  • Your contact information (name, e-mail address, phone number)
  • Information about the district contest (date, location)
  • State qualifiers' information (name, school, events)
  • Judges for state (name, contact information, availability)

{{-- A league is selected --}} @elseif (!is_null($information['league']))

Speech District {{ $information['league']->name }} State Qualifiers


{{-- Work in Progress --}} @if (!$information['submission']->data->complete)
This form has not yet been submitted to the OSAA by the District Director.
@endif

Instructions for District Directors

All entries must be entered with proper capitalization (e.g. "Title Case" not "UPPER CASE"). Enter names on this form in "First Last" name format. Do not use all upper-case letters. Be sure to spell names correctly. Proofread this form before submitting results. To list qualifiers for each speech event, you must first provide the number of speakers that participated in that event. Depending on the number of competitors, a number of eligible state entry slots will become available for input. If the event qualifier includes a speech title, you must provide a title in that field. If the title of the speech is required and not known, enter in "TBD".

Required fields are indicated with a red asterisk, *.
Fields with a blue asterisk, *, are required if a qualifier is listed.
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.

Schools in Speech District {{ $information['league']->name }}

{{-- --}} @foreach ($information['school_list'] as $item) {{-- --}} @endforeach
SchoolActivities DirectorSpeech Coach
{{ $item->school }}{{ (!is_null($item->admin)) ? $item->admin->getDisplayName() . ' (' . $item->admin->email . ')' : '- -' }}{{ (!is_null($item->coach)) ? $item->coach->getDisplayName() . ' (' . $item->coach->email . ')' : '- -' }}

@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', $information['activity']->slug) }} {{ Form::hidden('league', $information['league']->slug) }}

District Director

{{ Form::label('director_name', 'Name') }} {{ Form::text('director_name', $information['submission']->data->director->name, array('data-autosave' => true, 'data-field' => 'data->director->name', 'data-type' => 'STRING', 'data-original' => $information['submission']->data->director->name, 'data-required' => true, 'style' => 'width: 150px;')) }} (First Last)

{{ Form::label('director_email', 'E-Mail') }} {{ Form::text('director_email', $information['submission']->data->director->email, array('data-autosave' => true, 'data-field' => 'data->director->email', 'data-type' => 'STRING', 'data-original' => $information['submission']->data->director->email, 'data-required' => true, 'style' => 'width: 200px;')) }}

{{ Form::label('director_school', 'School') }} {{ Form::text('director_school', $information['submission']->data->director->school, array('data-autosave' => true, 'data-field' => 'data->director->school', 'data-type' => 'STRING', 'data-original' => $information['submission']->data->director->school, 'data-autocomplete' => true, 'data-source' => url('/forms/registration/spe/lookup/school'), 'style' => 'width: 300px;')) }}
(What school are you associated with?)
{{ Form::label('director_mobile', 'Cell Phone') }} {{ Form::text('director_mobile', $information['submission']->data->director->cell_phone, array('data-autosave' => true, 'data-field' => 'data->director->cell_phone', 'data-type' => 'PHONE', 'data-original' => $information['submission']->data->director->cell_phone, 'data-required' => true, 'data-format' => 'phone', 'style' => 'width: 100px;')) }}

{{ Form::label('director_home', 'Home Phone') }} {{ Form::text('director_home', $information['submission']->data->director->home_phone, array('data-autosave' => true, 'data-field' => 'data->director->home_phone', 'data-type' => 'PHONE', 'data-original' => $information['submission']->data->director->home_phone, 'data-format' => 'phone', 'style' => 'width: 100px;')) }}

Your contact information will not be published. This information will be visible to OSAA staff only in order to contact you if any question arises.

District Tournament Information

{{ Form::label('event_date', 'Date') }} {{ Form::text('event_date', (is_null($information['submission']->data->event->date)) ? null : date('m/d/Y', strtotime($information['submission']->data->event->date)), array('data-autosave' => true, 'data-field' => 'data->event->date', 'data-type' => 'DATE', 'data-original' => (is_null($information['submission']->data->event->date)) ? null : date('m/d/Y', strtotime($information['submission']->data->event->date)), 'data-required' => true, 'data-format' => 'date-picker', 'style' => 'width: 80px;')) }} (When was the last day of the event?)
{{ Form::label('event_location', 'Location') }} {{ Form::text('event_location', $information['submission']->data->event->location, array('data-autosave' => true, 'data-field' => 'data->event->location', 'data-type' => 'STRING', 'data-original' => $information['submission']->data->event->location, 'data-autocomplete' => true, 'data-source' => url('/forms/registration/spe/lookup/location'), 'style' => 'width: 300px;')) }}
(Where was the event held?)

{{ Form::label('event_notes', 'Notes', array('class' => 'auto_width')) }} (Notes / Comments)
{{ Form::textarea('event_notes', $information['submission']->data->event->notes, array('data-autosave' => true, 'data-field' => 'data->event->notes', 'data-type' => 'STRING', 'data-original' => $information['submission']->data->event->notes, 'style' => 'width: 100%; height: 5em; font-family: Arial,Helvetica,sans-serif; font-size: 11pt;')) }}

@if (count($information['submission']->data->entries->individual) > 0)

Individual Events

To list qualifiers for each speech event, you must first provide the number of speakers that participated in that event. Depending on the number of competitors, a number of eligible state entry slots will become available for input.
@foreach ($information['submission']->data->entries->individual as $index => $entry)

{{ $event->name }}

{{ Form::label($entry->event . '_count', 'Number of Speakers', array('style' => 'width: 175px;')) }} {{ Form::text($entry->event . '_count', $entry->count, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->count', 'data-type' => 'INT', 'data-original' => $entry->count, 'data-required' => true, 'data-format' => 'numbers', 'data-reload' => true, 'maxlength' => 3, 'style' => 'width: 30px;')) }} (This is the number of {{ $event->name }} {{ strtolower(str_plural($event->label)) }} that competed in this district tournament.)

Qualifiers ({{ $entry->allowed }} allowed)

@foreach ($entry->qualifiers as $sub_index => $qualifier)
disabled) ? 'data-qualifier-disabled="true"' : null }}>
{{ ($sub_index + 1) }}.
{{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_name', ucfirst(strtolower((($event->multiple) ? str_plural($event->label) : $event->label))), array('class' => 'auto_width')) }} {{ ($event->multiple) ? '(First Last / First Last)' : '(First Last)' }}
{{ Form::text($entry->event . '_' . $event->type . '_' . $sub_index . '_name', $qualifier->name, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->qualifiers[' . $sub_index . ']->name', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->name, 'style' => 'width: 200px;')) }}
{{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_school', 'School', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_' . $sub_index . '_school', $information['school_options'], $qualifier->school, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->qualifiers[' . $sub_index . ']->school', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->school, 'style' => 'width: 175px;')) }}
@if (!property_exists($event, 'no_title')) {{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_title', 'Title', array('class' => 'auto_width')) }} (Title of the speech)
{{ Form::text($entry->event . '_' . $event->type . '_' . $sub_index . '_title', $qualifier->title, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->qualifiers[' . $sub_index . ']->title', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->title, 'style' => 'width: 215px;')) }} @else
@endif
Event

{{ Form::text($entry->event . '_' . $event->type . '_' . $sub_index . '_first_event', $entry->event, array('readonly' => 'readonly', 'style' => 'width: 45px;')) }}
@if (!$event->multiple) {{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_second_event', '2nd Individual Event', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_' . $sub_index . '_second_event', $information['other_event_options'], $qualifier->other_event, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->qualifiers[' . $sub_index . ']->other_event', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event, 'style' => 'width: 185px;')) }} @else {{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_second_event', '1st Person 2nd IE', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_' . $sub_index . '_second_event', $information['other_event_options'], $qualifier->other_event, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->qualifiers[' . $sub_index . ']->other_event', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event, 'style' => 'width: 185px;')) }}

{{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_second_event_b', '2nd Person 2nd IE', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_' . $sub_index . '_second_event_b', $information['other_event_options'], $qualifier->other_event_b, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->qualifiers[' . $sub_index . ']->other_event_b', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event_b, 'style' => 'width: 185px;')) }} @endif
@endforeach @if (!$qualifier->disabled and $entry->allowed > 0)
ALT
{{ Form::label($entry->event . '_' . $event->type . '_ALT_name', ucfirst(strtolower((($event->multiple) ? str_plural($event->label) : $event->label))), array('class' => 'auto_width')) }} {{ ($event->multiple) ? '(First Last / First Last)' : '(First Last)' }}
{{ Form::text($entry->event . '_' . $event->type . '_ALT_name', $qualifier->name, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->alternate->name', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->name, 'style' => 'width: 200px;')) }}
{{ Form::label($entry->event . '_' . $event->type . '_ALT_school', 'School', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_ALT_school', $information['school_options'], $qualifier->school, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->alternate->school', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->school, 'style' => 'width: 175px;')) }}
@if (!property_exists($event, 'no_title')) {{ Form::label($entry->event . '_' . $event->type . '_ALT_title', 'Title', array('class' => 'auto_width')) }} (Title of the speech)
{{ Form::text($entry->event . '_' . $event->type . '_ALT_title', $qualifier->title, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->alternate->title', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->title, 'style' => 'width: 215px;')) }} @else
@endif
Event

{{ Form::text($entry->event . '_' . $event->type . '_ALT_first_event', $entry->event, array('readonly' => 'readonly', 'style' => 'width: 45px;')) }}
@if (!$event->multiple) {{ Form::label($entry->event . '_' . $event->type . '_ALT_second_event', '2nd Individual Event', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_ALT_second_event', $information['other_event_options'], $qualifier->other_event, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->alternate->other_event', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event, 'style' => 'width: 185px;')) }} @else {{ Form::label($entry->event . '_' . $event->type . '_ALT_second_event', '1st Person 2nd IE', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_ALT_second_event', $information['other_event_options'], $qualifier->other_event, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->alternate->other_event', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event, 'style' => 'width: 185px;')) }}

{{ Form::label($entry->event . '_' . $event->type . '_ALT_second_event_b', '2nd Person 2nd IE', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_ALT_second_event_b', $information['other_event_options'], $qualifier->other_event_b, array('data-autosave' => true, 'data-field' => 'data->entries->individual[' . $index . ']->alternate->other_event_b', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event_b, 'style' => 'width: 185px;')) }} @endif
@endif

@endforeach

@endif

Team Events

@foreach ($information['submission']->data->entries->team as $index => $entry)

{{ $event->name }}

@if (!property_exists($event, 'guarantee')) {{ Form::label($entry->event . '_count', 'Number of Teams', array('style' => 'width: 175px;')) }} {{ Form::text($entry->event . '_count', $entry->count, array('data-autosave' => true, 'data-field' => 'data->entries->team[' . $index . ']->count', 'data-type' => 'INT', 'data-original' => $entry->count, 'data-required' => true, 'data-format' => 'numbers', 'data-reload' => true, 'maxlength' => 3, 'style' => 'width: 30px;')) }} (This is the number of {{ $event->name }} teams that competed in this district tournament.)
@elseif (property_exists($event, 'instructions')) {{ $event->instructions }} @endif

Qualifiers ({{ $entry->allowed }} allowed)

@foreach ($entry->qualifiers as $sub_index => $qualifier)
disabled) ? 'data-qualifier-disabled="true"' : null }}>
{{ ($sub_index + 1) }}.
{{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_name', ucfirst(strtolower((($event->multiple) ? str_plural($event->label) : $event->label))), array('class' => 'auto_width')) }} {{ ($event->multiple) ? '(First Last / First Last)' : '(First Last)' }}
{{ Form::text($entry->event . '_' . $event->type . '_' . $sub_index . '_name', $qualifier->name, array('data-autosave' => true, 'data-field' => 'data->entries->team[' . $index . ']->qualifiers[' . $sub_index . ']->name', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->name, 'style' => 'width: 200px;')) }}
{{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_school', 'School', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_' . $sub_index . '_school', $information['school_options'], $qualifier->school, array('data-autosave' => true, 'data-field' => 'data->entries->team[' . $index . ']->qualifiers[' . $sub_index . ']->school', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->school, 'style' => 'width: 175px;')) }}
@if (!property_exists($event, 'no_title')) {{ Form::label($entry->event . '_' . $event->type . '_' . $sub_index . '_title', 'Title', array('class' => 'auto_width')) }} (Title of the speech)
{{ Form::text($entry->event . '_' . $event->type . '_' . $sub_index . '_title', $qualifier->title, array('data-autosave' => true, 'data-field' => 'data->entries->team[' . $index . ']->qualifiers[' . $sub_index . ']->title', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->title, 'style' => 'width: 215px;')) }} @else
@endif
Event

{{ Form::text($entry->event . '_' . $event->type . '_' . $sub_index . '_first_event', $entry->event, array('readonly' => 'readonly', 'style' => 'width: 45px;')) }}
@endforeach @if (!$qualifier->disabled and $entry->allowed > 0)
ALT
{{ Form::label($entry->event . '_' . $event->type . '_ALT_name', ucfirst(strtolower((($event->multiple) ? str_plural($event->label) : $event->label))), array('class' => 'auto_width')) }} {{ ($event->multiple) ? '(First Last / First Last)' : '(First Last)' }}
{{ Form::text($entry->event . '_' . $event->type . '_ALT_name', $qualifier->name, array('data-autosave' => true, 'data-field' => 'data->entries->team[' . $index . ']->alternate->name', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->name, 'style' => 'width: 200px;')) }}
{{ Form::label($entry->event . '_' . $event->type . '_ALT_school', 'School', array('class' => 'auto_width')) }}
{{ Form::select($entry->event . '_' . $event->type . '_ALT_school', $information['school_options'], $qualifier->school, array('data-autosave' => true, 'data-field' => 'data->entries->team[' . $index . ']->alternate->school', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->school, 'style' => 'width: 175px;')) }}
@if (!property_exists($event, 'no_title')) {{ Form::label($entry->event . '_' . $event->type . '_ALT_title', 'Title', array('class' => 'auto_width')) }} (Optional speech title)
{{ Form::text($entry->event . '_' . $event->type . '_ALT_title', $qualifier->title, array('data-autosave' => true, 'data-field' => 'data->entries->team[' . $index . ']->alternate->title', 'data-type' => 'STRING', 'data-required' => 'special', 'data-original' => $qualifier->title, 'style' => 'width: 215px;')) }} @else
@endif
Event

{{ Form::text($entry->event . '_' . $event->type . '_ALT_first_event', $entry->event, array('readonly' => 'readonly', 'style' => 'width: 45px;')) }}
@endif

@endforeach

Proven Excellence Qualifiers

No more than two qualifiers per school. @if (count($information['submission']->data->entries->additional) > 0) To add an additional proven excellence qualifier, click the button to the left to insert a new row. To remove a qualifier, click the red X icon in the corresponding qualifier's row. @else To add a proven excellence qualifier, click the button to the left. @endif


@if (count($information['submission']->data->entries->additional) > 0) @foreach ($information['submission']->data->entries->additional as $index => $qualifier)
{{ Form::label('ADD_' . $index . '_event', 'Event', array('class' => 'auto_width')) }}
{{ Form::select('ADD_' . $index . '_event', $information['event_options'], $qualifier->event, array('data-autosave' => true, 'data-field' => 'data->entries->additional[' . $index . ']->event', 'data-type' => 'STRING', 'data-original' => $qualifier->event, 'data-reload' => true, 'data-required' => true, 'style' => 'width: 200px;')) }}
@if (!is_null($event))
{{ Form::label('ADD_' . $index . '_name', ucfirst(strtolower((($event->multiple) ? str_plural($event->label) : $event->label))), array('class' => 'auto_width')) }} {{ ($event->multiple) ? ' (First Last / First Last)' : ' (First Last)' }}
{{ Form::text('ADD_' . $index . '_name', $qualifier->name, array('data-autosave' => true, 'data-field' => 'data->entries->additional[' . $index . ']->name', 'data-type' => 'STRING', 'data-required' => true, 'data-original' => $qualifier->name, 'style' => 'width: 205px;')) }}
{{ Form::label('ADD_' . $index . '_school', 'School', array('class' => 'auto_width')) }}
{{ Form::select('ADD_' . $index . '_school', $information['school_options'], $qualifier->school, array('data-autosave' => true, 'data-field' => 'data->entries->additional[' . $index . ']->school', 'data-type' => 'STRING', 'data-required' => true, 'data-original' => $qualifier->school, 'style' => 'width: 150px;')) }}
@if (!property_exists($event, 'no_title')) {{ Form::label('ADD_' . $index . '_title', 'Title', array('class' => 'auto_width')) }} (Title of the speech)
{{ Form::text('ADD_' . $index . '_title', $qualifier->title, array('data-autosave' => true, 'data-field' => 'data->entries->additional[' . $index . ']->title', 'data-type' => 'STRING', 'data-required' => true, 'data-original' => $qualifier->title, 'style' => 'width: 130px;')) }} @else
@endif
@if (Helpers::strEqual($event->type, 'INDIVIDUAL'))
@if (!$event->multiple) {{ Form::label('ADD_' . $index . '_second_event', '2nd Individual Event', array('class' => 'auto_width')) }}
{{ Form::select('ADD_' . $index . '_second_event', $information['other_event_options'], $qualifier->other_event, array('data-autosave' => true, 'data-field' => 'data->entries->additional[' . $index . ']->other_event', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event, 'style' => 'width: 185px;')) }} @else {{ Form::label('ADD_' . $index . '_second_event', '1st Person 2nd IE', array('class' => 'auto_width')) }}
{{ Form::select('ADD_' . $index . '_second_event', $information['other_event_options'], $qualifier->other_event, array('data-autosave' => true, 'data-field' => 'data->entries->additional[' . $index . ']->other_event', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event, 'style' => 'width: 185px;')) }}

{{ Form::label('ADD_' . $index . '_second_event_b', '2nd Person 2nd IE', array('class' => 'auto_width')) }}
{{ Form::select('ADD_' . $index . '_second_event_b', $information['other_event_options'], $qualifier->other_event_b, array('data-autosave' => true, 'data-field' => 'data->entries->additional[' . $index . ']->other_event_b', 'data-type' => 'STRING', 'data-original' => $qualifier->other_event_b, 'style' => 'width: 185px;')) }} @endif
@endif @else
(Begin by selecting this proven excellence qualifier's event.)
@endif
@endforeach @else You have not added any proven excellence qualifiers. Click the Add Another Proven Excellence Qualifier button to insert a row which you can provide the information for a new proven excellence qualifier.
@endif


{{ Form::close() }}

@endif @stop