@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')
{{ HTML::linkAction('TemplatesController@printview', 'Print', array($template->id), array('class'=>'btn btn-default')) }}

Passing Criteria: {{{ $template->expected_percentage }}}% of students must obtain at least {{{$template->expected_points}}} points

@for($i = 0; $i <$template->num_scales; $i++) @endfor @foreach($template->criteria as $index=> $criterion) @if($criterion->notes) @else @endif @foreach ($criterion->scales as $scale) @endforeach @endforeach
Criterion{{$template->titles[$i]}} ({{1+($i*($template->max_score/$template->num_scales))}} - {{(1+$i)*($template->max_score/$template->num_scales)}})Learning Outcome
{{$index+1}}.{{$criterion->name}}{{$criterion->name}}{{$scale}}
    @foreach ($criterion->outcomes as $outcome)

    {{$outcome->name}}

    @endforeach





@stop @section('included-js') @include('global._datatables_js') @stop @section('javascript') // -------------------------------------------------------------------------- // Page load // -------------------------------------------------------------------------- buildCopyrightList(); // -------------------------------------------------------------------------- // Functions // -------------------------------------------------------------------------- // Build list from copyright info in template function buildCopyrightList() { // Empty the copyright list $('#copyright-list').empty(); $('tbody tr').each(function( index ) { var criterion = $(this); // If there's copyright info (in this particular view, it checks for empty strings) if(criterion.data('criterion-copyright')!='') { var copyright = criterion.data('criterion-copyright'); // If there is anything in the copyright list if($('#copyright-list li').length>0) { // Check copyright list for the same copyright text var found = false; $('#copyright-list li').each(function() { // If found, give the string its number if(copyright==$(this).find('span').text()) { copyrightNumber = Number.parseInt($(this).find('sup').text()); criterion.children('td:nth-child(2)').find('sup').text(copyrightNumber); found =true; //to break return false; } }); // Otherwise, give it the next number and append a new item to the // list if(!found) { var copyrightNumber = $('#copyright-list li').length+1; criterion.children('td:nth-child(2)').find('sup').text(copyrightNumber); $('#copyright-list').append('
  • '+copyrightNumber+' '+copyright+'
  • '); } } // Otherwise, give it number 1 and append it else { criterion.children('td:nth-child(2)').find('sup').text('1'); $('#copyright-list').append('
  • 1 '+copyright+'
  • '); } } }); if($('#copyright-info li').length>0) { $('#copyright-info').show(); } else { $('#copyright-info').hide(); } } @stop