@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') @endif @stop @section('main')

Click on the values you want to change. Invalid values will be rejected automatically. To save your changes, click the 'Save' button at the bottom of the page.

@foreach ($outcomes as $outcome) {{-- @foreach ($semesters as $semester) --}} {{-- display an outcome only if it is part of a currently selected semester --}} @if ((($outcome->deactivation_date == '0000-00-00') or ($outcome->deactivation_date == '')) // and ($outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end) ) @endif {{-- @endforeach --}} @endforeach @foreach ($outcomes as $outcome) {{-- @foreach ($semesters as $semester) --}} {{-- display an outcome only if it is part of a currently selected semester --}} @if ((($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != '')) // and ($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != '') ) @endif {{-- @endforeach --}} @endforeach
Learning Outcome Definition Expected Value Activation date Deactivation date Level
{{ $outcome->name }} {{ $outcome->definition }} {{ $outcome->expected_outcome }} {{ $outcome->activation_date }} {{ $outcome->deactivation_date }} {{ $outcome->level }}
{{ $outcome->name }} {{ $outcome->definition }} {{ $outcome->expected_outcome }} {{ $outcome->activation_date }} {{ $outcome->deactivation_date }} {{ $outcome->level }}

Add a new Learning Outcomes

{{-- For for adding a new outcome --}} {{ Form::open(array('action' => 'OutcomesController@create')) }}
{{ Form::label('name', 'Name') }} {{ Form::text('name', '', array('class' => 'form-control', 'id'=>'outcome_name')) }}
{{ Form::label('definition', 'Definition') }} {{ Form::textarea('definition', 'At least 10 characters long', array('class' => 'form-control', 'id'=>'outcome_definition')) }}
Due to technical limitationss, the following must be edited after adding the new Outcome: {{-- the technical limitation is: the Outcome Model has to be edited --}}
{{ Form::close() }}
@stop @section('javascript') $('#new_outcome_form').hide(); //show form $('#show').on('click', function(e) { $('#new_outcome_form').show(); $('#show').hide(); }); //hide form $('#hide').on('click', function(e) { $('#new_outcome_form').hide(); $('#show').show(); }); $('#save').on('click', function(e) { e.preventDefault(); var outcomeArray= new Array(); // For each learning outcome, get its value and put it into an array $('tbody tr').each(function( index ) { var outcomeObject = new Object(); outcomeObject.id= $(this).data('id'); outcomeObject.name= $(this).children('.name').text(); outcomeObject.definition= $(this).children('.definition').text(); outcomeObject.expected_outcome= $(this).children('.expected-outcome').text(); outcomeObject.activation_date= $(this).children('.activation-date').text(); outcomeObject.deactivation_date= $(this).children('.deactivation-date').text(); outcomeObject.level= $(this).children('.level').text(); if($(this).find('.glyphicon-eye-close').length>0) { outcomeObject.delete=1; } else outcomeObject.delete=0; var clone = jQuery.extend({}, outcomeObject); outcomeArray.push(clone); }); $.post( "{{ URL::action('OutcomesController@updateMore') }}", { outcomeArray: JSON.stringify(outcomeArray)}, function(data) { location.reload(); } ); }); $('span').on('click', function() { if($(this).hasClass('glyphicon-eye-open')) $(this).removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close'); else $(this).removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open'); }); @stop