@extends('layouts.master-1') @section('navigation') @if(Auth::user()->role==1) @include('local.managers.admins._navigation') @elseif(Auth::user()->role==2) @include('local.managers.sCoords._navigation') @elseif(Auth::user()->role==3) @include('local.managers.pCoords._navigation') @elseif(Auth::user()->role==4) @include('local.professors._navigation') @endif @stop @section('main') {{-- TODO: look where to place this script. if placed inside .ready() or before it, an error that the function is not defined occurs. --}} {{-- TODO: no reconoce acentos --}}
@foreach ($outcomes as $outcome) @foreach ($semesters as $semester) deactivation_date <= $semester->start) ; Log::info($outcome->deactivation_date); Log::info($semester->start) ?> @if(!$outcome->deleted_at && ( !$outcome->deactivation_date ||$outcome->deactivation_date >= $semester->start))
  • {{ $outcome->name }} [{{$semester->code}}]
  • @endif @endforeach @endforeach

    {{-- --}} {{--
    --}}
    {{-- tables are appended here --}} {{--
    --}}

    Select a Learning Outcome to view its information

    @stop @section('included-js') @include('global._datatables_js') @stop @section('javascript') /* $(document).ready(function() { // -------------------------------------------------------------------------- // Page load // -------------------------------------------------------------------------- // Hide accordion panel contents by default $('.panel-group .panel-body').hide(); $('#outcome-display').parent().hide(); // -------------------------------------------------------------------------- // Functions // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // Events // -------------------------------------------------------------------------- $('.view-scales').on('click', function() { var number_of_scales = this.value; $('.table-responsive').hide(); $('.table-responsive-0').show(); $('.table-'+number_of_scales).show(); }) // When export button is clicked, export all tables as PDF $(document).on('click', '.export-all', function() { var export_type = $(this).attr('class'); console.log('export_type'); console.log(export_type); var r = confirm("Are you sure you want to download all programs info as separate PDFs? \n It may take a moment to process."); if (r == true) { //var 'tables' is defined in master.blade.php console.log("export all"); $('table').each(function( t ) { var table = $(this).DataTable(); if(export_type =="export-all print-all"){ $('.table-responsive').show(); table.buttons('0-0').trigger(); } else if (export_type =="export-all excel-all"){ $('.table-responsive').show(); table.buttons('0-1').trigger(); } else if (export_type =="export-all pdf-all"){ $('.table-responsive').show(); table.buttons('0-2').trigger(); } }); var current = $('select').val(); $('.table-responsive').hide(); $('.table-responsive-0').show(); $('.table-'+current).show(); } }); // When list item is clicked, load corresponding info $('.list-group-item').on('click', function() { var id = $(this).data('outcome-id'); var tables = []; $.post( "{{ URL::action('OutcomesController@fetchOutcome') }}", { id: id }, function(data) { var outcome = data.outcome; var outcome_id = outcome.id; var name = outcome.name; var definition = outcome.definition; var criteria = outcome.criteria; $('#outcome-display').parent().show(); $('.no-outcome').parent().hide(); //Display title and definition $('#outcome-display .panel-title').html(name); $('#outcome-display .outcome-definition').html(definition); //Empty table $('.table-responsive-0').empty(); // Add new criteria if(criteria.length>0){ // populate the selector for viewing different levels var selector = $('.view-scales'); selector.empty(); $.each(criteria, function(index, criterion_info){ var criterions_levels = criterion_info.amount_of_levels; var new_option = $('