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/ejection/' . $object->ejection->id . '/submit') }}";
}
},
{
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 cmsh_name = $('#commissioner_name').text();
var html = '
';
html += '';
@if (Helpers::strEqual($object->ejection_status->slug, 'WORK'))
html += 'Are you sure you want to submit this report to your Commissioner, ' + cmsh_name + '?';
html += '
';
html += '
Your report has passed initial inspection for all of the required information. Please note that once you submit this report, you will not be able to make any changes.
Your Commissioner will review your ejection report and then notify the school and the OSAA.
';
@elseif (Helpers::strEqual($object->ejection_status->slug, 'CMSH'))
html += 'Are you sure you want to submit this report to the school and notify the OSAA?';
html += '
';
html += '
Your report has passed inspection for all of the required information. Please note that once you submit this report, you will not be able to make any changes.
When you submit this report, the school with the ejection will be notified as well as the OSAA.
';
@else
html += 'Are you sure you want to submit this report?';
html += '
';
html += '
Your form passed initial inspection. Please note that once you submit this form, you will not be able to make any additional edits.
';
@endif
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();
}
});
})
.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();
});
});
/*
* Accept button
*/
$('[data-action="accept"]')
.click(function(event)
{
event.preventDefault();
var button = $(this);
button.blur();
$('
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/ejection/' . $object->ejection->id . '/submit') }}";
}
},
{
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 mark this ejection report as done?';
html += '
';
html += '
This will indicate that the report is finished and no further action will take place. Once you mark this report as done, any coach ejection will be forwarded onto Kelly for arranging training courses.
';
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();
}
});
})
.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();
});
});
/* 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 ejection report is ready to be submitted.
When you are ready, click the "Submit" button to submit your form.
');
// Submit the change
var jqxhr = $.ajax(
{
type : 'POST',
url : '{{ url('/forms/ejection/' . $object->ejection->id . '/file/delete') }}/' + type.toLowerCase(),
dataType : 'html'
})
.done(function (data)
{
//console.log('Deletion was successful.');
// Reload of refresh is specified
location.reload();
})
.fail(function (jqXHR, status, error)
{
var response = jqXHR.responseText;
var errorData = $.parseJSON(response);
//console.log(errorData);
alert ("There was an error deleting the file.\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);
dialog_object.html(' Are you sure you want to delete this ' + type + ' file?
This cannot be undone.
');
$('.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);
row.removeClass('ui-state-highlight');
$(dialog_object).remove();
}
});
});
@endif
/* Ejection Log
*
* Shows the ejection log when link is clicked.
*/
$('[name="ejection_log"]')
.click(function(event)
{
event.preventDefault();
var link = $(this);
var data = {
created_at : "{{ date('D n/j/y g:ia', strtotime($object->ejection->created_at)) }}",
updated_at : "{{ date('D n/j/y g:ia', strtotime($object->ejection->updated_at)) }}",
reported_at : "{{ (!is_null($object->ejection->reported_at)) ? date('D n/j/y g:ia', strtotime($object->ejection->reported_at)) : '- -' }}",
submitted_at : "{{ (!is_null($object->ejection->submitted_at)) ? date('D n/j/y g:ia', strtotime($object->ejection->submitted_at)) : '- -' }}",
verified_at : "{{ (!is_null($object->ejection->verified_at)) ? date('D n/j/y g:ia', strtotime($object->ejection->verified_at)) : '- -' }}"
};
var html = '
';
html += '
Last Updated:
' + data.updated_at + ' ';
html += '
Ejection Created:
' + data.created_at + ' ';
html += '
Reported to CMSH:
' + data.reported_at + ' ';
html += '
School Notified:
' + data.submitted_at + ' ';
html += '
School Responded:
' + data.verified_at + ' ';
html += '
';
@foreach ($object->data->status_history as $i => $log)
@if (($i % 2) == 0)
html += '
You can check to see if you have provided all of the required information by clicking the Run Check button at the top of the form. Once you have provided all of the required information, click Submit to submit this form and to notify your Commissioner via e-mail. After you submit this form, you will not be able to make any changes to the information.
Official fills out a preliminary online Ejection Report.
Commissioner is notified and reviews the form before submitting.
School is notified of ejection and reviews information.
OSAA is notified if school is appealing the suspension or fine.
You can check to see if you have provided all of the required information by clicking the Run Check button at the top of the form. Once you have provided all of the required information, click Submit to submit this form which will notify the school of their ejection and the OSAA will be copied. After you submit this form, you will not be able to make any changes to the information.
Official provides information to the Commissioner regarding an ejection.
Commissioner reviews online form and submits it to the school.
School is notified of ejection and reviews information.
OSAA is notified if school is appealing the suspension or fine.
You can read the information regarding the ejection that was provided by the Commissioner. You will need to provide additional information as noted on the form. If you are not appealing the ejection's suspension or fine, click Accept Ejection. Otherwise, click Appeal Ejection to start the appeal process. If you have any questions, please contact {{ $options['osaa_staff']->name }} at the OSAA by e-mail to {{ $options['osaa_staff']->email }} or {{ $options['osaa_staff']->phone }}.
Official provides information to the Commissioner regarding an ejection.
Commissioner reviews online form and submits it to the school.
School is notified of ejection and reviews information.
OSAA is notified if school is appealing the suspension or fine.
The school is not appealing this ejection. You can read the information regarding the ejection that was provided by the Commissioner and any additional information that was provided by the school. Please click Mark Done to finish and close this ejection report.
Official provides information to the Commissioner regarding an ejection.
Commissioner reviews online form and submits it to the school.
School is notified of ejection and reviews information.
OSAA is notified if school is appealing the suspension or fine.
The school is appealing this ejection. You can read the information regarding the ejection that was provided by the Commissioner and any additional information that was provided by the school. Please input the final outcome of the appeal in the text area near the bottom of the page. Please click Mark Done when finished to close this ejection report.
Official provides information to the Commissioner regarding an ejection.
Commissioner reviews online form and submits it to the school.
School is notified of ejection and reviews information.
OSAA is notified if school is appealing the suspension or fine.
This form has been marked as DONE. No further action will occur regarding this ejection. OSAA Staff have reviewed this form. If school with the ejection has appealed the ejection's suspension or fine, the OSAA has rendered its decision at the bottom of the form. Schools will be invoiced for each ejection at the conclusion of each season.
Official provides information to the Commissioner regarding an ejection.
Commissioner reviews online form and submits it to the school.
School is notified of ejection and reviews information.
OSAA is notified if school is appealing the suspension or fine.
@endif
Required fields are indicated with a red asterisk, *.
{{ Form::label('ejection_reason', 'Category') }}
Under what category, or rule, was the person ejected or disqualified?
@if (count($options['ejection_reasons']) == 0)
You must select a sport first.
@else
@endif
{{ Form::label('official_notes', 'Official\'s Notes')}}
(Optional) Were there any additional notes, abnormal situations, or other information relevant to this report?
@elseif (Helpers::strEqual($object->ejection_status->slug, array('CMSH')))
Additional Notes
{{ Form::label('official_notes', 'Official\'s Notes')}}
(Optional) Did the official provide any any additional notes, abnormal situations, or other information relevant to this report?
@else
Additional Notes
{{ Form::label('official_notes', 'Official\'s Notes')}}
Additional notes, abnormal situations, or other information relevant to this report provided by the Official
@endif
{{ Form::textarea('official_notes',
$object->data->official->notes,
array('data-autosave' => true,
'data-field' => 'data->official->notes',
'data-type' => 'STRING',
'style' => 'width: 100%; height: 8em;')) }}