@section('page_title') OSAA - Eligibility @stop @section('page_sub_title') Student Eligibility Request Form @stop @section('scripts') @parent @stop @section('jquery_init') if(!window.console) { window.console = { log: $.noop, group: $.noop, groupEnd: $.noop }; } /*console.log($.parseJSON('{{ json_encode($options) }}'));*/ // 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 (Session::has('submitted') or Input::has('submitted')) showHelp('submitted', true); @endif /* ShowHelp * * Shows a help topic. */ function showHelp(help_topic, no_button) { if (no_button !== true) { $('
') .appendTo('body') .dialog( { draggable : true, resizable : true, height : 725, minHeight : 400, width : 615, minWidth : 330, modal : false, title : 'Eligibility Form Help', open : function () { var dialog_object = $(this); dialog_object.html("
"); var jqxhr = $.ajax( { type : 'GET', url : '{{ url('forms/eligibility/' . $object->waiver->id . '/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 () { }); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); } else { $('
') .appendTo('body') .css({'z-index':'2000 !important'}) .dialog( { draggable : false, resizable : false, height : 725, minHeight : 725, width : 615, modal : true, dialogClass : 'no-close', title : 'Eligibility Form Submitted', open : function () { var dialog_object = $(this); dialog_object.html("
"); var jqxhr = $.ajax( { type : 'GET', url : '{{ url('forms/eligibility/' . $object->waiver->id . '/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 () { $('.close_submitted_button', dialog_object) .button() .click(function () { window.open ("{{ url('/forms/eligibility/' . $object->waiver->id . '/print') }}"); 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_submitted_button"}); shakeTheseActionImages(img); }); }, 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) { var object = $(this); event.preventDefault(); var topic = object.attr('data-topic'); showHelp(topic); }); /* Close Button * */ $('.close_button') .button({'icons':{'primary':' ui-icon-circle-close'}}) .css({'font-size':'9pt'}); /* * Withdraw Button */ $('[data-action="withdraw"]') .click(function(event) { event.preventDefault(); var button = $(this); button.blur(); $('
') .appendTo('body') .dialog( { modal : true, draggable : true, resizable : false, height : 375, width : 600, title : 'Confirm Form Withdrawal', buttons: [ { text : "Withdraw Request", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { var reason = $('[name="withdraw_notes"]').val(); if (reason == '') { alert('In order to withdraw this form, you must provide a reason.'); return; } if ($('[name="send_notification_wtdn"]', $(this)).is('[type="hidden"]')) { var notify = 1; } else { if ($('[name="send_notification_wtdn"]', $(this)).is(':checked')) { var notify = 1; } else { var notify = 0; } } var data = { 'reason' : reason, 'notify' : notify, 'waiver_id' : {{ $object->waiver->id }} }; $('
') .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-di buttons') .html('
Updating...

Please wait, this may take a while to process...
'); // Submit the change var jqxhr = $.ajax( { type : 'POST', url : '{{ url('/forms/eligibility/' . $object->waiver->id . '/withdraw') }}', data : data, dataType : 'html' }) .done(function (data) { // Reload of refresh is specified window.location.href= "{{ url('/forms/eligibility') }}"; }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert ("There was an error saving changes.\n\nThis page will be reloaded."); location.reload(); }); } }, { text : "Cancel", 'class' : "float_right", 'data-autofocus' : "true", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close the dialog box $(this).dialog("close"); } } ], open : function () { var dialog_object = $(this); var html = '
'; html += ''; html += 'Are you sure you want to withdraw your eligibility request?'; html += '

'; html += '
This cannot be undone. If you withdraw your waiver request, your form cannot be reinstated. If you do want to withdraw this form, please provide a reason below.
'; html += '
Suggested Reasons:'; html += ''; @if (Auth::check() and Auth::user()->isOsaaUser()) html += ''; @else html += ''; @endif html += '

Reason for Withdrawal
'; html += '' 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(); $('[name="withdraw_reasons"]', dialog_object).change(function() { var value = $(this).val(); $('[name="withdraw_notes"]').text(value); }); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); /* * Resend DAC Email Button */ $('[data-action="resend"]') .click(function(event) { event.preventDefault(); var button = $(this); $('
') .appendTo('body') .dialog( { modal : true, draggable : true, resizable : false, height : 315, width : 450, title : 'Resend DAC Email', buttons: [ { text : "Resend", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { var data = { 'waiver_id' : {{ $object->waiver->id }} }; $('
') .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-di buttons') .html('
Updating...

Please wait, this may take a while to process...
'); // Submit the change var jqxhr = $.ajax( { type : 'POST', url : '{{ url('/forms/eligibility/' . $object->waiver->id . '/resend-dac-email') }}', data : data, dataType : 'html' }) .done(function (data) { // Reload of refresh is specified window.location.href= "{{ url('/forms/eligibility/' . $object->waiver->id . '/edit') }}"; }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert ("There was an error saving changes.\n\nThis page will be reloaded."); location.reload(); }); } }, { text : "Cancel", 'class' : "float_right", 'data-autofocus' : "true", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close the dialog box $(this).dialog("close"); } } ], open : function () { var dialog_object = $(this); var html = '
'; html += ''; html += 'Do you want to re-send the automated notification email to the DAC chair?'; html += '

'; html += '
This will send another notification email to the DAC chair informing them that this form has been submitted and is awaiting a DAC decision. The notification email includes links to this form and special access links that can be forwarded to DAC members. You will be copied on that email. This will not change the form\'s status.
'; 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).remove(); } }); }); /* Waiver Status Helper * * Shows the waiver status description when link is clicked. */ $('[name="waiver_status_help"]') .click(function(event) { event.preventDefault(); var link = $(this); var name = $(link).attr('data-name'); var description = $(link).attr('data-description'); $('
') .appendTo('body') .dialog( { resizable: false, height: 'auto', width: 400, modal: false, title: 'Waiver Status: ' + name, open : function () { var dialog_object = $(this); dialog_object.html(description); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); /* Waiver Log * * Shows the waiver log when link is clicked. */ $('[name="waiver_log"]') .click(function(event) { event.preventDefault(); var link = $(this); var data = {created_at : "{{ date('n/j/y g:ia', strtotime($object->waiver->created_at)) }}", updated_at : "{{ date('n/j/y g:ia', strtotime($object->waiver->updated_at)) }}"}; var html = '
Waiver Created:
' + data.created_at + '
Last Updated:
' + data.updated_at + ''; @foreach ($object->data->status_history as $log) html += ''; html += ''; html += ''; @endforeach html += '
{{ date('n/j/y g:ia', strtotime($log->updated_at)) }}{{ $log->status }}{{ str_replace('\'', '\\\'', $log->user) }}
'; $('
') .appendTo('body') .dialog( { resizable: false, height: 'auto', width: 425, modal: false, title: 'Waiver Log', open : function () { var dialog_object = $(this); dialog_object.html(html); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); // Download all files to a ZIP archive button $('.download_zip_files') .button({'icons' : {'secondary' : 'ui-icon-suitcase'}}) .css({'font-size' : '8.5pt', 'float' : 'right', 'position' : 'relative', 'top' : '-0.5em'}); // 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(); /* * 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'}); } }); /* * 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); }); console.log("Editing allowed? {{ ($object->waiver->isUserEditingAllowed(false, Input::get('dac-access', null))) ? 'YES' : 'NO' }}"); console.log($.parseJSON('{{ json_encode($options, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT) }}')); @stop @section('page_functions') Help Close @stop @section('main_content') {{-- Success Bar --}} @if (Session::has('success'))
{{ Session::get('success') }}
@endif {{-- Action Area --}}
Form Actions @if (Helpers::strEqual($object->waiver_type->default_handler_type, 'District Athletic Committee') and Helpers::strEqual($object->waiver->waiver_status, 'PEND')) - District Athletic Committee (Limited Access) @endif

Fatal error: Class 'Helpers' not found in /home/osaa/web_app/dev/app/views/eligibility/view.blade.php on line 966