').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')
.html('
Initializing...

Please wait, this may take a while to process...
');
window.location.href = href;
return true;
}
},
{
text : "No",
'class' : "float_right",
'data-autofocus' : "true",
icons : { primary : 'ui-icon-cancel'},
click : function()
{
// Close the dialog box
$(this).dialog("close");
return false;
}
}
],
open : function ()
{
var dialog_object = $(this);
var html = '
';
html += '';
html += text;
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();
}
});
});
$('[data-action="mark-done"]').on('click', function(event)
{
event.preventDefault();
var link = $(this);
link.blur();
var row = link.parents('tr');
var report_id = row.attr('data-report');
var school = row.attr('data-school');
var activity = row.attr('data-activity');
var activity_name = row.attr('data-activity-name');
var round = row.attr('data-round');
var division = row.attr('data-division');
var amount = $('td[data-amount]', row).attr('data-amount');
var expense = $('td[data-expense]', row).attr('data-expense');
var id_confirm = row.attr('data-id-confirm');
var is_other_expenses = $('td[data-expense]', row).is('[data-other-expenses]');
row.addClass('ui-state-error');
$('
')
.appendTo('body')
.dialog(
{
modal : true,
draggable : true,
resizable : false,
height : 400,
width : 550,
title : 'Finish and Close This Report?',
buttons: [
{
text : "Finish",
'class' : "float_left",
icons : { primary : 'ui-icon-check'},
click : function()
{
$('
')
.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')
.html('
Processing...

Please wait, this may take a while to process...
');
var url = "{{ url('/forms/ticket-report') }}/" + report_id + "/close";
var redirect = "{{ url('/forms/ticket-report/admin') }}?season={{ $info['season'] }}#" + activity;
var data = {
report_id : report_id
};
// Submit the change
var jqxhr = $.ajax(
{
type : 'POST',
url : url,
data : data,
dataType : 'html'
})
.done(function (data)
{
// Success
if (data == 'success')
{
window.location.href = redirect;
location.reload();
}
else
{
alert ("There was an error saving changes.\n\nThis page will be reloaded.");
window.location.href = redirect;
location.reload();
}
})
.fail(function (jqXHR, status, error)
{
var response = jqXHR.responseText;
var errorData = $.parseJSON(response);
//console.log(errorData);
alert ("There was an error saving changes.\n\n" + errorData.error.message + "\n\nThis page will be reloaded.");
window.location.href = redirect;
location.reload();
});
}
},
{
text : "Cancel",
'class' : "float_right",
'data-autofocus' : "true",
icons : { primary : 'ui-icon-cancel'},
click : function()
{
// Close the dialog box
$(this).dialog("close");
return false;
}
}
],
open : function ()
{
var dialog_object = $(this);
var html = '
';
html += '
';
html += '
Are you sure you want to finish and close this ticket report? Please ensure the following information matches the submitted Event Management & Ticket Report form.
';
html += school + '
';
html += activity_name + ' ' + division + ' Round ' + round + '
';
html += 'ID # ' + id_confirm + '
';
html += '
Expense Total:' + expense + '';
if (is_other_expenses)
{
html += '
Verify Receipts';
}
html += '
'
html += '
Ticket Total:' + amount + '
';
html += '
';
html += '
Once you mark this ticket report form as finished, the form will appear on the school\'s page as closed and it is assumed the OSAA has mailed a check for any expenses to the host school.';
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 ()
{
row.removeClass('ui-state-error');
var dialog_object = $(this);
$(dialog_object).remove();
}
});
});
$('td a').on('click', function()
{
$(this).blur();
});
@stop
@section('page_functions')
Close
@stop
@section('main_content')
{{-- Success Bar --}}
@if (Session::has('success'))
{{ Session::get('success') }}
@endif
@foreach ($info['reports'] as $activity => $divisions)
{{ $info['school_year'] }}-{{ substr(intval($info['school_year']) + 1, 2, 2) }} {{ Helpers::getActivityName($activity) }}
| Status |
Div. / Round |
Date |
Event |
Teams |
Gate Total |
Exp. Total |
Actions |
@foreach ($divisions as $division => $rounds)
@foreach ($rounds as $round => $reports)
@foreach ($reports as $report)
Fatal error: Class 'Helpers' not found in /home/osaa/web_app/dev/app/views/ticket_report/admin_index.blade.php on line 563