@extends('layouts.master') @section('navigation') @if(Auth::user()->role==1) @include('local.managers.admins._navigation') @elseif(Auth::user()->role==2) @include('local.managers.sCoords._new_navigation') @elseif(Auth::user()->role==3) @include('local.managers.pCoords._new_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 ($objectives as $objective)
  • {{ $objective->text }}
  • @endforeach

    Criteria

    Select a Learning Objective 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();- $('#objective-display').parent().hide(); // -------------------------------------------------------------------------- // Functions // -------------------------------------------------------------------------- /* */ function fetchObjectiveForCriteria(li){ { var id = $(li).data('objective-id'); $.post( "{{ URL::action('ObjectivesController@fetchObjectiveForCriteria') }}", { id: id, }, function(json) { var tables = []; // Retrieve datatable instance //var table = $('.table-responsive-0').; var name = json.objective.text; //var definition = json.objective.program.name; var criteria =json.objective.criteria; $('#objective-display').parent().show(); $('.no-objective').parent().hide(); //Display title and definition $('#objective-display .panel-title').html(name); // $('#objective-display .objective-definition').html(definition); //Empty table $('.table-responsive-0').empty(); // Add new criteria if(Object.keys(criteria).length !== 0) { var selector = $('.view-scales'); selector.empty(); $.each(criteria, function(num_scales){ var criterions_levels = num_scales; var new_option = $('