@section('page_title') OSAA - Upload DanceDrill Music File @stop @section('page_sub_title') Upload Dance/Drill Music File for {{ $info['ap']->name }} @stop @section('scripts') @parent @stop @section('jquery_init') $('.tooltip').tooltip(); $('.button').button().css('font-size', '9pt'); $('input[type="submit"]').click(function (event) { if ($('input[type="file"]').val() == '') { return; } event.preventDefault(); var form = $(this).parents('form'); $('
').appendTo('body') .html('
Are you sure you want to upload this file?
This will over-write any existing music file previously uploaded.
') .dialog( { autoOpen: true, draggable: false, resizable: false, height: 275, width: 400, title: 'Confirm File Upload', modal: true, buttons: [ { text : "Yes", '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 ui-dialog-buttons') .html('
Working...

Please wait, this may take a while to upload the file and process the data.
'); $(form).submit(); $(this).dialog( "close"); $(this).remove(); } }, { text : "No", 'class' : "float_right", 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') @stop @section('main_content')
@if (isset($info['status']))
@if (Helpers::strEqual($info['status'], 'success'))

@else

@endif {{ $info['status'] }}

{{ $info['message'] }}


@endif @if ($info['file_exists'])

File Already Exists

@if (isset($info['status']) and Helpers::strEqual($info['status'], 'success')) It worked! Your file was uploaded. You can use this form again to upload another file and it will over-write what was just uploaded. You would want to do this if you needed to change your music selections and update your submitted music file. @else Looks like your team has already uploaded a music file. If you upload another file using this form, your previous file will be over-written. @endif


@endif {{ Form::open(array('url' => url('/forms/file-upload/dnc'), 'method' => 'post', 'files' => true)) }} {{ Form::hidden('file_name', $info['file_name']) }} {{ Form::hidden('ap_id', $info['ap']->id) }}

Select File to Upload

Use the file browser below to select a music file to upload to the server.

File: {{ Form::file('file', array('required' => 'required')) }}
{{ Form::submit('Upload', array('style' => 'position: absolute; top: 62px; left: 110px;', 'class' => 'button')) }}

{{ Form::close() }}

Music File Specifications
Any valid music file type is acceptable (.mp3, .wav, .m4a, etc.) Music files must be less than 12 Mb in size.

@stop