@section('page_title') OSAA - Manage Hotels @stop @section('page_sub_title') Manage Headquarter Hotels @stop @section('scripts') @parent @stop @section('jquery_init') if(!window.console) { window.console = { log: $.noop, group: $.noop, groupEnd: $.noop }; } // 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); }) }); /* * Custom tooltip items */ $('[data-tooltip]').each(function () { var item = $(this); var help = item.attr('data-tooltip'); item.tooltip({'content' : help, 'items' : item}); }); /* Positioned elements * * Elements that contain the attribute data-position="true" will be positioned * using JQuery's UI positioning utility. Other expected attributes define the * element's position: * data-position-my * data-position-at * data-position-of */ $('[data-position="true"]').each(function() { var element = $(this); var my = element.attr('data-position-my'); var at = element.attr('data-position-at'); var of = element.attr('data-position-of'); var options = $.parseJSON('{ "my" : "' + my + '", "at": "' + at + '", "of": "' + of + '"}'); element.position(options); }); // 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(); /* * Close button */ $('.close_button') .button({'icons':{'primary':'ui-icon-circle-close'}}) .css({'font-size':'9pt', 'margin-left':'10px'}); /* * Delete hotel button */ $('[data-action="delete-hotel"]') .click(function(event) { event.preventDefault(); }); // Show the add/edit hotel dialog function showAddEdit(dialog_data) { var hotel_id = dialog_data.id; if (hotel_id == 0) { var dialog_title = 'Add a New Hotel'; } else { var dialog_title = 'Edit Hotel ID# ' + hotel_id; } var content_url = '{{ url('/admin/hotels/') }}/' + hotel_id + '/edit'; $('
') .appendTo('body') .dialog( { draggable : true, resizable : false, modal : true, height : 700, width : 750, title : dialog_title, buttons: [ { text : "Save", 'class' : "float_left", icons : { primary : 'ui-icon-disk'}, click : function() { // Get the form var form = $('form[name="add-edit-hotel"]', $(this))[0]; // Create an empty object to hold activity data var activity_data = {}; // Process each activity and save its data $('.activity_list .item').each(function(index) { var item = $(this); var name = item.attr('data-act-slug'); var value = { is_shown : $('input[type="checkbox"][name="is_shown"]', item).is(':checked'), is_hq : $('input[type="checkbox"][name="is_hq"]', item).is(':checked'), group : $('input[type="text"][name="group"]', item).val(), }; activity_data[name] = value; }); // Add the activity data to the form $('') .attr('name', 'activity_data') .attr('value', JSON.stringify(activity_data)) .appendTo('form'); // Exclude activity list inputs from being submitted $('.activity_list input', $(form)).attr('name', ''); //console.log($(form).serializeArray()); $('| Name | Instructions | Phone | {{--Touring | --}}Activities | |||
|---|---|---|---|---|---|---|---|
| @if (Helpers::strIsEmpty($hotel->website)) {{ $hotel->name }} @else {{ $hotel->name }} @endif | {{ $hotel->instructions }} | {{ $hotel->phone }} | {{--{{ $hotel->email }} | --}} {{--@if (Helpers::strIsEmpty($hotel->local_website)) {{ $hotel->local_text }} @else {{ $hotel->local_text }} @endif | --}}
Warning: Invalid argument supplied for foreach() in /home/osaa/web_app/dev/app/views/admin/manage_hotels.blade.php on line 595 {{ implode(', ', $display_activities) }} |
|