@section('page_title') OSAA - Activities @stop @section('page_sub_title') {{ $info['activity']->name }} League and Special District Results @stop @section('scripts') @parent @stop @section('jquery_init') $('.button') .button() .css({'font-size' : '9pt'}); $('.button.back') .button({ icons : { primary : 'ui-icon-arrowthick-1-w'}}); $('.button.switch') .button({ icons : { primary : 'ui-icon-transferthick-e-w'}}); $('.button.edit') .button({ icons : { primary : 'ui-icon-pencil'}}); $('.button.form') .button({ icons : { primary : 'ui-icon-clipboard'}}); $('.page_functions') .css({'width' : 'auto'}); // Download drop-down menu $('#grabber_list') .menu() .css({'display' : 'none', 'z-index' : '200', 'position' : 'absolute', 'right' : '0', 'top' : '23px', 'margin' : '0', 'padding' : '0', 'font-size' : '10pt', 'width' : '150px'}); $('#grabber_list img') .css({'position' : 'relative', 'top' : '2px', 'margin-right' : '6px'}); $('.grabber_button') .button({ icons : { secondary : 'ui-icon-triangle-1-s'}}) .css({'float':'right', 'font-size':'9pt'}) .click(function (event) { if ($('#grabber_list').is(':visible')) { $('#grabber_list').slideUp(400); $(this).button({icons : { secondary : 'ui-icon-triangle-1-s'}}); } else { $('#grabber_list').slideDown(400); $(this).button({icons : { secondary : 'ui-icon-triangle-1-n'}}); } }); $('#populate') .click(function () { $('
') .appendTo('body') .html('
Are you sure you want to reset all {{ (Session::get('year') + 1) }} tennis brackets and re-populate the database?
This will clear the database of all existing tennis participants for the current school year, erasing any existing bracket placements.

Note: This cannot be undone. Choose wisely.

This procedure should only be executed once, after all entries have been submitted and before placing any participants onto a tennis bracket.
') .dialog( { autoOpen: true, draggable: false, resizable: false, height: 'auto', width: 450, title: 'WARNING - Please Confirm', modal: true, buttons: [ { text : "Yes", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { $('
').addClass('ui-widget-overlay ui-front') .attr('id', 'shadow') .appendTo('body'); $('
').appendTo('body') .attr('id', 'waiting') .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-dialog-buttons') .html('
Working...

Please wait, this may take a while to process and update the database.
'); var jqxhr = $.ajax( { type : 'GET', url : '/brackets/populate-tennis-participants', dataType : 'html', error : function () { alert('There was an error populating the database. The procedure was unexpectedly interrupted.'); }, success : function (data) { alert('Database was successfully populated with ' + data + ' participants.'); }, complete : function () { $('#waiting').remove(); $('#shadow').remove(); } }); $(this).dialog("close"); $(this).remove(); } }, { text : "No", 'class' : "float_right", 'autofocus' : true, icons : { primary : 'ui-icon-cancel'}, click : function() { $(this).dialog("close"); $(this).remove(); } }], open : function () { $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '10pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); $('.ui-dialog-titlebar').addClass('ui-state-highlight'); } }); }); @stop @section('page_functions') Form @if(Helpers::strEqual($info['activity']->slug, 'BTN')) Switch to Girls Results Boys Tennis @else Switch to Boys Results Girls Tennis @endif @stop @section('main_content') @if (Auth::check() and Auth::user()->isOsaaUser())
Download/Export
@endif @foreach ($info['leagues'] as $item)