@section('page_title') OSAA - Committees @stop @section('page_sub_title') OSAA Committees @stop @section('scripts') @parent @stop @section('jquery_init') $('.button').button(); $('.tabs').tabs(); $('.vertical_tabs') .tabs({ beforeActivate : function (event, ui) { if (ui.newTab.is('[data-escape]')) { event.preventDefault(); window.location = ui.newTab.attr('data-escape'); } } }) .addClass("ui-tabs-vertical ui-helper-clearfix"); $('.vertical_tabs li, .vertical_tabs li a') .removeClass("ui-corner-top") .removeClass("ui-corner-right") .addClass("ui-corner-left"); /* * Tab activation and element focus */ function activateTab(target_tab_id, focus) { var target_tab = $('.vertical_tabs ul:first li a[href="#' + target_tab_id + '"]'); var target_tab_index = target_tab.attr('data-tab-order'); $('.vertical_tabs').tabs('option', 'active', target_tab_index); if (focus) { focusOnElement($(focus)); } } @if (!Helpers::strIsEmpty($info['tab'])) var anchor = "{{ $info['tab'] }}"; @else var anchor = window.location.hash.substring(1); @endif var focus = false; if (anchor) { activateTab(anchor, false); focus = '#content'; } @if (!Helpers::strIsEmpty($info['focus'])) focus = "#{{ Session::get('focus') }}"; @endif function focusOnElement(focus_element) { var top = focus_element.offset().top - 45; setTimeout(function() { $('html, body').scrollTop(top); }, 100); } if (focus) { focusOnElement($(focus)); } @if (Auth::check() and Auth::user()->isOsaaUser()) $('a.files_link') .button() .css({'position' : 'absolute', 'top' : '10px', 'right' : '10px', 'font-size' : '8pt'}) .click(function(event) { event.preventDefault(); var button = $(this); var link = button.attr('data-files-link'); var committee = button.attr('data-committee'); // Files link $('
') .appendTo('body') .dialog( { draggable : true, resizable : false, height : 250, width : 600, modal : true, title : 'Files Link', dialogClass : 'help_dialog', open : function () { var dialog_object = $(this); var html = '

Link to Hidden Files for the ' + committee + '

'; html += 'Only share this link with committee members as these files are hidden from the public.

'; html += '' + link + ''; dialog_object.html(html); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); @endif @stop @section('page_functions') @stop @section('main_content')
{{-- Tab list of committees --}} {{-- List each tab --}} @foreach ($info['committees'] as $committee)
@if ($committee->files and Auth::check() and (Auth::user()->isOsaaUser())) Files Link @endif @if (!file_exists(app_path() . '/views/governance/committees/' . str_replace('-', '_', str_replace('-committee', '', $committee->id)) . '_slice.blade.php'))

Coming Soon...

@if (Auth::check() and Auth::user()->isOsaaUser()) To show information on this tab, you will need to create a file named:
{{ str_replace('-', '_', str_replace('-committee', '', $committee->id)) . '_slice.blade.php' }}

Save this file to:
app/views/governance/committees @endif @else @include ('governance.committees.' . str_replace('-', '_', str_replace('-committee', '', $committee->id)) . '_slice') @endif
@endforeach
@stop