@extends('layouts.master') @section('navigation') @if($role==1) @include('local.managers.admins._navigation') @elseif($role==2) @include('local.managers.sCoords._navigation') @elseif($role==3) @include('local.managers.pCoords._navigation') @else @include('local.professors._navigation') @endif @stop @section('main')

You should establish at least one objective per Learning Outcome. Inactive objectives will not be available to new rubrics, but the criteria already associated to them will remain unaffected.

@foreach($objectives_by_outcome as $outcome) where('objective_id', $objective->objective_id) // ->where('criterion_objective_program.program_id', $program->id) // ->join('criteria', 'criterion_objective_program.criterion_id', '=', 'criteria.id') // ->get(); ?> @endforeach
Learning Outcome Objectives
{{ $outcome->outcome_name }} {{ json_encode($outcome) }}
Back to Program


Create
{{ Form::open(array('action' => 'ObjectivesController@create')) }}

Write the name or description of the objective you want to create. Then, select the Learning Outcome to which it be associated. Finally, click Create.

{{ Form::hidden('program_id', $program->id) }}
{{ Form::label('learning_objective', 'Objective') }} {{ Form::textarea('learning_objective', '', array('class' => 'form-control', 'rows'=>2)) }}
{{ Form::label('outcome_id', 'Select the Learning Outcome') }}
{{ Form::submit('Create', array('class' => 'btn btn-primary btn-block')) }} {{ Form::close() }}

Edit
{{ Form::open(array('action' => 'ObjectivesController@update')) }}

Select the objective you want to edit. Its information will be automatically loaded. You can change the name and select a different Learning Outcome if you wish. Click Update to save the changes.

{{ Form::hidden('edit_program_id', $program->id) }}
{{ Form::label('edit_objective_id', 'Objective Selection') }}
{{ Form::label('edit_learning_objective', 'Objective Name') }} {{ Form::textarea('edit_learning_objective', '', array('class' => 'form-control', 'rows'=>2)) }}
{{ Form::label('edit_outcome_id', 'Associated Learning Outcome') }}
{{ Form::label('edit_active', 'Status') }}
{{ Form::submit('Update', array('class' => 'btn btn-primary btn-block')) }} {{ Form::close() }}
@stop @section('javascript') // ---------------------------------------------------------------------------- // Page Load // ---------------------------------------------------------------------------- $('.panel-body').hide(); loadObjective(); // ---------------------------------------------------------------------------- // Events // ---------------------------------------------------------------------------- // Toggle visibility for accordion panels $('.panel-heading').on('click', function() { toggleTriangles($(this)); $(this).siblings('.panel-body').stop().slideToggle(); }); $('#edit_objective_id').on('change', function() { loadObjective(); }); // ---------------------------------------------------------------------------- // Functions // ---------------------------------------------------------------------------- function toggleTriangles(element) { if(element.find('.glyphicon').hasClass('glyphicon-triangle-right')) { element.find('.glyphicon').removeClass('glyphicon-triangle-right'); element.find('.glyphicon').addClass('glyphicon-triangle-bottom'); } else if(element.find('.glyphicon').hasClass('glyphicon-triangle-bottom')) { element.find('.glyphicon').removeClass('glyphicon-triangle-bottom'); element.find('.glyphicon').addClass('glyphicon-triangle-right'); } } function loadObjective() { $.post( '{{ action('ObjectivesController@fetchObjective') }}', { objective_id: $('#edit_objective_id').find(':selected').val() }, function(data) { if(data == '') return; objective = JSON.parse(data); $('#edit_learning_objective').text(objective.text); $('#edit_active').val(objective.active); $('#edit_outcome_id').val(objective.outcome_id); } ) } @stop