Browse Source

rubricas solo con critrios pareados.

parent
commit
42de1ea6ca

+ 3
- 1
app/controllers/AnnualPlansController.php View File

@@ -129,8 +129,10 @@ class AnnualPlansController extends \BaseController
129 129
   }*/
130 130
   public function adminIndex()
131 131
   {
132
+  	Log::info("Entre".json_encode($this));
133
+
132 134
     $title = "Annual Plans";
133
-    $programs = Program::where("school_id", $school_id)->get();
135
+    $programs = Program::get();
134 136
 
135 137
     return View::make('local.managers.admins.appraisal-program', compact('title', 'programs'));
136 138
   }

+ 7
- 0
app/controllers/CriteriaController.php View File

@@ -124,6 +124,13 @@ class CriteriaController extends \BaseController
124 124
                     ->lists('program_id');
125 125
 
126 126
                 break;
127
+            case 4:
128
+
129
+                $program_ids = DB::table('program_user')
130
+                    ->where('user_id', Auth::user()->id)
131
+                    ->lists('program_id');
132
+
133
+                break;
127 134
         }
128 135
         $outcome_id = Input::get('outcomeID');
129 136
         Log::info($outcome_id);

+ 1
- 0
app/controllers/FeedbackController.php View File

@@ -80,6 +80,7 @@ class FeedbackController extends \BaseController {
80 80
           	Mail::send('emails.feedback-email-copy', $data, function($message){
81 81
         		$message
82 82
         		->to(Input::get('email'), Auth::user()->first_name.' '.Auth::user()->surnames)
83
+//                 ->cc('oeae.rrp@upr.edu')
83 84
                 ->cc('peticiones.diia@upr.edu')
84 85
         		->subject('Feedback for OLAS');
85 86
     		});

+ 44
- 4
app/controllers/OutcomesController.php View File

@@ -13,7 +13,8 @@ class OutcomesController extends \BaseController
13 13
     public function index()
14 14
     {
15 15
         $title = "Learning Outcomes";
16
-        $outcomes = Outcome::withTrashed()->orderBy('name', 'ASC')->get();
16
+        $outcomes = Outcome::withTrashed()->orderBy('id', 'ASC')->get();
17
+//         $outcomes = Outcome::withTrashed()->orderBy('name', 'ASC')->get();
17 18
         $schools = School::orderBy('name', 'ASC')->get();
18 19
         // $semesters_ids = Session::get('semesters_ids');
19 20
         // $semesters = Semester::whereIn('id',$semesters_ids)->get();
@@ -339,11 +340,31 @@ class OutcomesController extends \BaseController
339 340
     /**
340 341
      *Copy of update(), but also updates activation_date, deactivation_date and level
341 342
      */
343
+    public function delete()
344
+    {
345
+        $outcomeArray = json_decode(Input::get('outcomeArray'), true);
346
+// 		Log::info("delete".json_encode($outcomeArray));
347
+		$outcome = Outcome::withTrashed()
348
+			->where('id', '=', $outcomeArray['id'])
349
+			->firstOrFail();
350
+// 		Log::info("delete2".json_encode($outcome));
351
+		$outcome->forceDelete();
352
+// 		Log::info("sal".json_encode($sal));
353
+// 		if($sal)
354
+		{
355
+			Session::flash('status', 'success');
356
+			Session::flash('message', 'Learning Outcome deleted.');
357
+			
358
+		}
359
+
360
+	}
361
+    
342 362
     public function updateMore()
343 363
     {
344 364
         $outcomeArray = json_decode(Input::get('outcomeArray'), true);
345 365
         Session::flash('status', 'success');
346 366
         Session::flash('message', 'Learning Outcomes updated.');
367
+		Log::info("Ahora1".json_encode($outcomeArray));
347 368
 
348 369
         foreach ($outcomeArray as $outcomeObject) {
349 370
 
@@ -352,13 +373,21 @@ class OutcomesController extends \BaseController
352 373
                 array(
353 374
                     'name' => $outcomeObject['name'],
354 375
                     'definition' => $outcomeObject['definition'],
355
-                    'expected_outcome' => $outcomeObject['expected_outcome']
376
+                    'expected_outcome' => $outcomeObject['expected_outcome'],
377
+                    'activation_date' => $outcomeObject['activation_date'],
378
+//                     'deactivation_date' => (isset($outcomeObject['deactivation_date'])?$outcomeObject['deactivation_date']:NULL),
379
+                    'level' => $outcomeObject['level'],
380
+//                     'new_outcome_id'=>$outcomeObject['new_outcome_id']
356 381
                     // TODO- validar los otros 3 valores
357 382
                 ),
358 383
                 array(
359 384
                     'name' => 'required',
360 385
                     'definition' => 'required',
361
-                    'expected_outcome' => 'required|numeric'
386
+                    'expected_outcome' => 'required|numeric',
387
+                    'activation_date' => 'required|date',
388
+//                     'deactivation_date' => 'sometimes|required|date',
389
+                    'level' => 'required|numeric'
390
+//                     'new_outcome_id' => 'required|numeric'
362 391
                     // TODO- los requisitos de los otros 3 valores
363 392
                 )
364 393
             );
@@ -372,8 +401,19 @@ class OutcomesController extends \BaseController
372 401
                     $outcome->definition = $outcomeObject['definition'];
373 402
                     $outcome->expected_outcome = $outcomeObject['expected_outcome'];
374 403
                     $outcome->activation_date = $outcomeObject['activation_date'];
375
-                    $outcome->deactivation_date = $outcomeObject['deactivation_date'];
404
+                    if($outcomeObject['deactivation_date']!="")
405
+                    {
406
+                    	$outcome->deactivation_date = $outcomeObject['deactivation_date'];
407
+	                    if(isset($outcomeObject['new_outcome_id']))$outcome->new_outcome_id = $outcomeObject['new_outcome_id'];
408
+                    }
409
+                    else 
410
+                    {
411
+                    	$outcome->deactivation_date = NULL;
412
+                    	$outcome->new_outcome_id=NULL;
413
+                    }
376 414
                     $outcome->level = $outcomeObject['level'];
415
+		Log::info("Ahora2".json_encode($outcome));
416
+
377 417
                     $outcome->save();
378 418
 
379 419
                     // If delete is 1, and outcome isn't already trashed, delete

+ 2
- 0
app/controllers/RubricsController.php View File

@@ -21,7 +21,9 @@ class RubricsController extends \BaseController
21 21
         // Select templates that belong to everyone or belong to the activity's course's school
22 22
         $usable_templates = DB::table('templates')->join('template_criterion', 'template_criterion.template_id', '=', 'templates.id')
23 23
             ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'template_criterion.criterion_id')
24
+            ->join('program_criterion_objective_outcome', 'criterion_objective_outcome.id', '=', 'program_criterion_objective_outcome.cri_obj_out_id')
24 25
             ->where('objective_id', '<>', 0)
26
+            ->where('program_criterion_objective_outcome.program_id', $activity->course->program->id)
25 27
             ->groupBy('template_id')
26 28
             ->lists('template_id');
27 29
         $templates = Template::where('is_visible', '=', 1)

+ 24
- 1
app/controllers/TemplatesController.php View File

@@ -11,6 +11,7 @@ class TemplatesController extends \BaseController
11 11
 	{
12 12
 		return $this->show($template);
13 13
 	}
14
+
14 15
 	public function ProfIndex()
15 16
 	{
16 17
 		$title = 'Rubric List';
@@ -192,6 +193,11 @@ class TemplatesController extends \BaseController
192 193
 		return View::make('local.managers.shared.rubrics', compact('title', 'templates', 'outcomes', 'criteria', 'schools', 'programs'));
193 194
 	}
194 195
 
196
+	public function newTemplateProf()
197
+	{
198
+		return $this->newTemplate_new();
199
+			
200
+	}
195 201
 	public function newTemplate_new()
196 202
 	{
197 203
 		$title = "Rubric Builder";
@@ -218,6 +224,11 @@ class TemplatesController extends \BaseController
218 224
 				$programs = Auth::user()->programs()->get();
219 225
 				$school_id_user=Auth::user()->programs[0]->school->id;
220 226
 			}
227
+			if ($role == 4) {
228
+				$programs = Auth::user()->programs()->get();
229
+				$school_id_user=Auth::user()->programs[0]->school->id;
230
+			}
231
+			Log::info(json_encode($school_id_user));
221 232
 			$program_ids = array();
222 233
 			foreach ($programs as $program) {
223 234
 				$program_ids[] = $program->id;
@@ -227,11 +238,21 @@ class TemplatesController extends \BaseController
227 238
 				function ($q) use ($program_ids) {
228 239
 					$q->whereIn('program_id', $program_ids);
229 240
 				}
230
-			)->orderBy('name', 'ASC')->get();
241
+			)
242
+			->whereHas('getObjectivesAttribute', function ($q)
243
+				{
244
+					$q->where('objective_id','!=',0);
245
+				}
246
+			)
247
+			->orderBy('name', 'ASC')->get();
231 248
 			}
249
+// 			Log::info("aqui".(count($criteria)));
250
+// 			Log::info(json_encode(count($criteria)));
251
+			
232 252
 			$templates = Template::where('school_id', '=', $school_id_user)->orWhere('school_id', '=', NULL)
233 253
 				->orderBy('name', 'ASC')->get();
234 254
 			$criteria_ids = array();
255
+			
235 256
 			foreach ($criteria as $criterion) {
236 257
 				$criteria_ids[] = $criterion->id;
237 258
 			}
@@ -239,6 +260,8 @@ class TemplatesController extends \BaseController
239 260
 				$q->whereNotIn('criterion_id', $criteria_ids);
240 261
 			})
241 262
 				->orderBy('name', 'ASC')->get();
263
+				
264
+				
242 265
 			$templates_fuera_ids = array();
243 266
 			foreach ($templates_fuera as $tf) {
244 267
 				$templates_fuera_ids[] = $tf->id;

+ 22
- 0
app/controllers/ThreeYearPlanController.php View File

@@ -41,6 +41,28 @@ class ThreeYearPlanController extends \BaseController
41 41
       return Redirect::to("three-years-plan/{$program_id}");
42 42
     }
43 43
   }
44
+    public function adminIndex()
45
+  {
46
+  	Log::info("Entre".json_encode($this));
47
+
48
+    $title = "Three Years Plans";
49
+    $programs = Program::get();
50
+
51
+    return View::make('local.managers.admins.show-typ-program', compact('title', 'programs'));
52
+  }
53
+
54
+    public function manageSemesterCycle()
55
+  {
56
+//   	Log::info("Entre".json_encode($this));
57
+
58
+    $title = "Semesters Cycles";
59
+//     $programs = Program::get();
60
+
61
+		return $this->adminIndex();
62
+//     return View::make('local.managers.admins.show-typ-program', compact('title', 'programs'));
63
+  }
64
+
65
+
44 66
   // load the Three year Plan page
45 67
   public function threeYearsReport($program_id)
46 68
   {

+ 1
- 1
app/models/Criterion.php View File

@@ -29,7 +29,7 @@ class Criterion extends Eloquent
29 29
 
30 30
 	public function getObjectivesAttribute()
31 31
 	{
32
-		return $this->belongsToMany('Objective');
32
+		return $this->belongsToMany('Objective','criterion_objective_outcome');
33 33
 	}
34 34
 
35 35
 	public function rubrics()

+ 4
- 4
app/routes.php View File

@@ -407,8 +407,8 @@ Route::group(array('before' => 'auth|has_access'), function () {
407 407
 
408 408
 
409 409
         //Plans routes
410
-        Route::post('showThreeYearPlans', 'ThreeYearPlanController@adminIndex');
411
-        Route::post('showAnnualPlans', 'AnnualPlansController@adminIndex');
410
+        Route::get('showThreeYearPlans', 'ThreeYearPlanController@adminIndex');
411
+        Route::get('showAnnualPlans', 'AnnualPlansController@adminIndex');
412 412
 
413 413
 
414 414
         //endhere
@@ -421,7 +421,7 @@ Route::group(array('before' => 'auth|has_access'), function () {
421 421
         Route::get('new-learning-outcomes', 'OutcomesController@newIndex');
422 422
 
423 423
         Route::post('learning-outcomes/update', array('before' => 'csrf', 'uses' => 'OutcomesController@updateMore'));
424
-        Route::post('learning-outcomes/update', array('before' => 'csrf', 'uses' => 'OutcomesController@update'));
424
+        Route::post('learning-outcomes/delete', array('before' => 'csrf', 'uses' => 'OutcomesController@delete'));
425 425
         Route::post('criteria/update', array('before' => 'csrf', 'uses' => 'CriteriaController@update'));
426 426
         Route::delete('critteria/delete', array('before' => 'csrf', 'uses' => 'CriteriaController@destroy'));
427 427
 
@@ -634,7 +634,7 @@ Route::group(array('before' => 'auth|has_access'), function () {
634 634
      */
635 635
     Route::group(array('prefix' => 'professor', 'before' => 'prof'), function () {
636 636
 
637
-
637
+        Route::get('rubrics', 'TemplatesController@newTemplateProf');
638 638
         Route::get('templateForProfessor', 'TemplatesController@ProfIndex');
639 639
         Route::post('program', array('before' => 'csrf', 'uses' => 'ProfessorsController@program'));
640 640
         Route::get('activities/{activity_id}/rubrics', 'RubricsController@newRubric');

+ 16
- 0
app/views/global/agreement.blade.php View File

@@ -18,6 +18,22 @@ Your login to this platform and the reading of the information related to the ma
18 18
 <li>	you act within the framework of its role as coordinator of the learning assessment  and/or professor and
19 19
 <li>	you are committed to safeguarding the principle of privacy and confidentiality of the student.
20 20
 </ul>
21
+<hr>
22
+<p>
23
+La Ley federal de Derechos Educativos y Privacidad Familiar, 1974 (FERPA) establece los parámetros para la protección a la confidencialidad de la información académica de los estudiantes, reconociéndoles el derecho a inspeccionar y revisar sus expedientes académicos. En 2012 se aprobó una enmienda que amplía las condiciones de acceso a cualquier tercero designado, a la información privada de identificación personal y a la que se encuentra en los registros educativos, incluyendo las calificaciones, para propósito de evaluar el progreso educativo y en consecuencia mejorar, entre otras cosas, la efectividad de dicho programa educativo.
24
+</p><p>
25
+La evaluación del aprendizaje estudiantil es una actividad mandatada por la normativa institucional y una práctica atada al proceso de enseñanza que busca medir la efectividad y propiciar las transformaciones dirigidas a la excelencia. OLAS, plataforma en línea creada en el Recinto, recopila información sobre el desempeño de estudiantes a través de rúbricas de avalúo desarrolladas y utilizadas por los usuarios (coordinadores de avalúo de la DIIA y de las facultades; y profesores) que recogen y reciben datos.
26
+</p><p>
27
+FERPA define representante autorizado a cualquiera entidad o individuo designado por un estado o autoridad local, que lleva a cabo cualquier auditoría o evaluación o cualquier actividad de cumplimiento en conexión con requerimientos legales federales, que se relacionan con los programas. Puede ser un oficial o funcionario universitario que tenga interés educativo legítimo como parte de sus responsabilidades profesionales-administrativas, supervisión académica, de investigación o de apoyo-bajo las tareas que desempeña.
28
+</p><p>
29
+La DIIA durante el proceso de recibir, analizar y divulgar la información contenida en los informes de avalúo del aprendizaje generados por las facultades, utiliza métodos razonables, como monitoreo continuo en la plataforma en línea, acceso controlado al programado, entre otras medidas, para asegurar que se mantiene protegida la identidad del estudiante.
30
+</p><p>
31
+Su ingreso a esta plataforma y la lectura de la información relacionada al manejo del expediente del estudiante, arriba expuesta, implica que:
32
+</p><ul>
33
+<li>	concuerda con que los datos ubicados y extraídos de la plataforma tienen un propósito educativo
34
+<li>	actúa en el marco de su rol de coordinador de avalúo del aprendizaje y/o profesor y 
35
+<li>	se compromete a resguardar el principio de privacidad y confidencialidad que le asiste al estudiante.
36
+</ul>
21 37
 
22 38
             {{ Form::open(['action' => 'AgreementController@agree', 'class' => 'form-horizontal']) }}
23 39
             <div class="form-group">

+ 2
- 2
app/views/local/managers/admins/_new_navigation.blade.php View File

@@ -4,8 +4,8 @@
4 4
       {{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Online Learning Assessment System · Program Coordinator', [], ['class' => 'navbar-brand']) }}
5 5
     </div>-->
6 6
         <ul class="nav navbar-nav navbar-right ml-auto">
7
-            <li>{{ HTML::linkAction('AdministratorsController@overview', 'Overview') }}</li>
8
-            <li>{{ HTML::linkAction('AdministratorsController@overview2', 'Overview2') }}</li>
7
+       <!--      <li>{{ HTML::linkAction('AdministratorsController@overview', 'Overview') }}</li>-->
8
+            <li>{{ HTML::linkAction('AdministratorsController@overview2', 'Overview') }}</li>
9 9
 
10 10
             <li class="dropdown">
11 11
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"

+ 2
- 2
app/views/local/managers/admins/appraisal-program.blade.php View File

@@ -16,10 +16,10 @@
16 16
             <p>Click the links below to see annual appraisal plans for a specific program with assessed courses:</p>
17 17
 
18 18
 
19
-            <ol id="table-of-contents" class="upper-roman">
19
+            <ol id="table-of-contents">
20 20
                 @foreach ($programs as $program)
21 21
                     <li>
22
-                        <a href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">
22
+                        <a href="{{ URL::action('AnnualPlansController@annualPlansShow', ['plan',$program->id]) }}">
23 23
                             {{ $program->name }}
24 24
                         </a>
25 25
                     </li>

+ 64
- 26
app/views/local/managers/admins/learning-outcomes.blade.php View File

@@ -16,54 +16,55 @@
16 16
         <div class="col-md-12">
17 17
             <p>Click on the values you want to change. Invalid values will be rejected automatically. To save your changes,
18 18
                 click the 'Save' button at the bottom of the page.</p>
19
+                
19 20
             <table class="table table-striped table-condensed editable-table" id='outcomes_table'>
20 21
                 <thead>
21 22
                     <tr class="center-text">
23
+                        <th class="col-md-1">ID</th>
22 24
                         <th class="col-md-4">Learning Outcome</th>
23
-                        <th class="col-md-7">Definition</th>
25
+                        <th class="col-md-6">Definition</th>
24 26
                         <th class="col-md-1">Expected Value</th>
25 27
                         <th class="col-md-2">Activation date</th>
26 28
                         <th class="col-md-2">Deactivation date</th>
27
-                        <th class="col-md-1">Level</th>
29
+                        <th class="col-md-1">Level<br><font size="-5">1:undergrad, 2:grad, 3:both</font></th>
30
+                        <th class="col-md-1">Equivalent to</th>
28 31
 
29 32
                 </thead>
30 33
                 <tbody>
31 34
                     @foreach ($outcomes as $outcome)
32 35
                         {{-- @foreach ($semesters as $semester) --}}
33 36
                         {{-- display an outcome only if it is part of a currently selected semester --}}
34
-                        @if ($outcome->deactivation_date == '0000-00-00' or $outcome->deactivation_date == '';
35
-                        // and ($outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end))
37
+                        @if ($outcome->deactivation_date == '0000-00-00' or $outcome->deactivation_date == '')
38
+                         {{-- and ($outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end)) --}}
36 39
                             <tr data-id="{{ $outcome->id }}">
40
+                                <td class="id col-md-1">{{ $outcome->id }}</td>
37 41
                                 <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
38
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">
39
-                                    {{ $outcome->definition }}</td>
40
-                                <td contenteditable="true" class="expected-outcome col-md-1">
41
-                                    {{ $outcome->expected_outcome }}</td>
42
-                                <td contenteditable="true" class="activation-date col-md-2">
43
-                                    {{ $outcome->activation_date }}</td>
44
-                                <td contenteditable="true" class="deactivation-date col-md-2">
45
-                                    {{ $outcome->deactivation_date }}</td>
42
+                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">{{ $outcome->definition }}</td>
43
+                                <td contenteditable="true" class="expected-outcome col-md-1">{{ $outcome->expected_outcome }}</td>
44
+                                <td contenteditable="true" class="activation-date col-md-2">{{ $outcome->activation_date }}</td>
45
+                                <td contenteditable="true" class="deactivation-date col-md-2">{{ $outcome->deactivation_date }}</td>
46 46
                                 <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
47
-                            </tr>
47
+                                <td></td>
48
+                                <td><button class="btn btn-sm btn-primary center-block del" id='del{{ $outcome->id }}'>Del</button></td>
49
+                           </tr>
48 50
                         @endif
49 51
                         {{-- @endforeach --}}
50 52
                     @endforeach
51 53
                     @foreach ($outcomes as $outcome)
52 54
                         {{-- @foreach ($semesters as $semester) --}}
53 55
                         {{-- display an outcome only if it is part of a currently selected semester --}}
54
-                        @if ($outcome->deactivation_date != '0000-00-00' and $outcome->deactivation_date != '';
55
-                        // and ($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != ''))
56
+                        @if ($outcome->deactivation_date != '0000-00-00' and $outcome->deactivation_date != '')
57
+                         {{--  and ($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != '')) --}}
56 58
                             <tr data-id="{{ $outcome->id }}">
59
+                                <td class="id col-md-1">{{ $outcome->id }}</td>
57 60
                                 <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
58
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">
59
-                                    {{ $outcome->definition }}</td>
60
-                                <td contenteditable="true" class="expected-outcome col-md-1">
61
-                                    {{ $outcome->expected_outcome }}</td>
62
-                                <td contenteditable="true" class="activation-date col-md-2">
63
-                                    {{ $outcome->activation_date }}</td>
64
-                                <td contenteditable="true" class="deactivation-date col-md-2">
65
-                                    {{ $outcome->deactivation_date }}</td>
61
+                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">{{ $outcome->definition }}</td>
62
+                                <td contenteditable="true" class="expected-outcome col-md-1">{{ $outcome->expected_outcome }}</td>
63
+                                <td contenteditable="true" class="activation-date col-md-2">{{ $outcome->activation_date }}</td>
64
+                                <td contenteditable="true" class="deactivation-date col-md-2">{{ $outcome->deactivation_date }}</td>
66 65
                                 <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
66
+                                <td contenteditable="true" class="new_outcome_id col-md-1">{{ $outcome->new_outcome_id }}</td>
67
+                                <td><button class="btn btn-sm btn-primary center-block del" id='del{{ $outcome->id }}'>Del</button></td>
67 68
                             </tr>
68 69
                         @endif
69 70
                         {{-- @endforeach --}}
@@ -112,6 +113,40 @@
112 113
 @stop
113 114
 
114 115
 @section('javascript')
116
+@foreach ($outcomes as $outcome)
117
+     $('#del{{ $outcome->id }}').on('click', function(e)
118
+    {
119
+    	e.preventDefault();
120
+    	//outcomeObject.id= $(this).data('id');
121
+    	if(confirm("Are you sure you want to delete the outcome with id {{ $outcome->id }}"))
122
+    	{
123
+    		console.log("si");
124
+			var outcomeObject = new Object();
125
+
126
+			outcomeObject.id= {{ $outcome->id }};
127
+	    	outcomeObject.delete=1;
128
+	    	console.log("algo"+JSON.stringify({{ $outcome->id }}));
129
+	    	console.log("algo"+JSON.stringify(outcomeObject));
130
+			var clone = jQuery.extend({}, outcomeObject);
131
+		//	outcomeArray.push(clone);
132
+	    //	console.log("algo"+JSON.stringify(outcomeArray));
133
+			$.post(
134
+			"{{ URL::action('OutcomesController@delete') }}",
135
+			{ outcomeArray: JSON.stringify(outcomeObject)},
136
+			function(data)
137
+			{
138
+				location.reload();
139
+			}
140
+			);
141
+			
142
+   		}
143
+    	else 
144
+    	{
145
+	    	console.log("no");
146
+//			outcomeObject.delete=0;
147
+		}
148
+	});
149
+@endforeach
115 150
 
116 151
     $('#new_outcome_form').hide();
117 152
 
@@ -129,6 +164,7 @@
129 164
     $('#show').show();
130 165
     });
131 166
 
167
+	
132 168
     $('#save').on('click', function(e)
133 169
     {
134 170
     e.preventDefault();
@@ -147,15 +183,17 @@
147 183
     outcomeObject.activation_date= $(this).children('.activation-date').text();
148 184
     outcomeObject.deactivation_date= $(this).children('.deactivation-date').text();
149 185
     outcomeObject.level= $(this).children('.level').text();
186
+    if($(this).children('.new_outcome_id').text()!="")outcomeObject.new_outcome_id= $(this).children('.new_outcome_id').text();
150 187
 
151 188
     if($(this).find('.glyphicon-eye-close').length>0)
152 189
     {
153
-    outcomeObject.delete=1;
190
+    	outcomeObject.delete=1;
154 191
     }
155 192
 
156 193
     else
157
-    outcomeObject.delete=0;
158
-
194
+   	{
195
+	   	outcomeObject.delete=0;
196
+	}
159 197
     var clone = jQuery.extend({}, outcomeObject);
160 198
     outcomeArray.push(clone);
161 199
     });

+ 30
- 0
app/views/local/managers/admins/show-typ-program.blade.php View File

@@ -0,0 +1,30 @@
1
+@extends('layouts.master')
2
+
3
+@section('navigation')
4
+    @if (Auth::user()->role == 1)
5
+        @include('local.managers.admins._new_navigation')
6
+    @elseif(Auth::user()->role == 2)
7
+        @include('local.managers.sCoords._new_navigation')
8
+    @elseif(Auth::user()->role == 3)
9
+        @include('local.managers.pCoords._new_navigation')
10
+    @endif
11
+@stop
12
+
13
+@section('main')
14
+    <div class="row">
15
+        <div class="col-md-12">
16
+            <p>Click the links below to see annual appraisal plans for a specific program with assessed courses:</p>
17
+
18
+
19
+            <ol id="table-of-contents">
20
+                @foreach ($programs as $program)
21
+                    <li>
22
+                        <a href="{{ URL::action('ThreeYearPlanController@showPDFs', [$program->id]) }}">
23
+                            {{ $program->name }}
24
+                        </a>
25
+                    </li>
26
+                @endforeach
27
+            </ol>
28
+        </div>
29
+    </div>
30
+@stop

+ 18
- 25
app/views/local/managers/pCoords/_new_navigation.blade.php View File

@@ -112,7 +112,25 @@
112 112
             </li>
113 113
 
114 114
 
115
+            <li class="dropdown">
116
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
117
+                    Report<span class="caret"></span></a>
118
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
115 119
 
120
+                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
121
+                    @foreach (Auth::user()->programs as $program)
122
+                        <li><a
123
+                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
124
+                        </li>
125
+                    @endforeach
126
+                    <h6 class="dropdown-header">View Annual Report from:</h6>
127
+                    @foreach (Auth::user()->programs as $program)
128
+                        <li><a
129
+                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
130
+                        </li>
131
+                    @endforeach
132
+                </ul>
133
+            </li>
116 134
 
117 135
 
118 136
             @if (count(Auth::user()->courses))
@@ -137,31 +155,6 @@
137 155
 
138 156
 
139 157
 
140
-
141
-            <li class="dropdown">
142
-                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
143
-                    Report<span class="caret"></span></a>
144
-                <ul class="dropdown-menu dropdown-menu-left" role="menu">
145
-
146
-                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
147
-                    @foreach (Auth::user()->programs as $program)
148
-                        <li><a
149
-                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
150
-                        </li>
151
-                    @endforeach
152
-                    <h6 class="dropdown-header">View Annual Report from:</h6>
153
-                    @foreach (Auth::user()->programs as $program)
154
-                        <li><a
155
-                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
156
-                        </li>
157
-                    @endforeach
158
-                </ul>
159
-            </li>
160
-
161
-
162
-
163
-
164
-
165 158
             <li class="dropdown">
166 159
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
167 160
                         class="caret"></span></a>

+ 18
- 25
app/views/local/managers/sCoords/_new_navigation.blade.php View File

@@ -100,7 +100,25 @@
100 100
             <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Results') }}</li>
101 101
 
102 102
 
103
+            <li class="dropdown">
104
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
105
+                    Report<span class="caret"></span></a>
106
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
103 107
 
108
+                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
109
+                    @foreach (Auth::user()->school->programs as $program)
110
+                        <li><a
111
+                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
112
+                        </li>
113
+                    @endforeach
114
+                    <h6 class="dropdown-header">View Annual Report from:</h6>
115
+                    @foreach (Auth::user()->programs as $program)
116
+                        <li><a
117
+                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
118
+                        </li>
119
+                    @endforeach
120
+                </ul>
121
+            </li>
104 122
 
105 123
 
106 124
             @if (count(Auth::user()->courses))
@@ -125,31 +143,6 @@
125 143
 
126 144
 
127 145
 
128
-
129
-            <li class="dropdown">
130
-                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
131
-                    Report<span class="caret"></span></a>
132
-                <ul class="dropdown-menu dropdown-menu-left" role="menu">
133
-
134
-                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
135
-                    @foreach (Auth::user()->school->programs as $program)
136
-                        <li><a
137
-                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
138
-                        </li>
139
-                    @endforeach
140
-                    <h6 class="dropdown-header">View Annual Report from:</h6>
141
-                    @foreach (Auth::user()->programs as $program)
142
-                        <li><a
143
-                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
144
-                        </li>
145
-                    @endforeach
146
-                </ul>
147
-            </li>
148
-
149
-
150
-
151
-
152
-
153 146
             <li class="dropdown">
154 147
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
155 148
                         class="caret"></span></a>

+ 2
- 0
app/views/local/managers/shared/rubrics_new.blade.php View File

@@ -7,6 +7,8 @@
7 7
             @include('local.managers.sCoords._new_navigation')
8 8
         @elseif(Auth::user()->role==3)
9 9
             @include('local.managers.pCoords._new_navigation')
10
+        @elseif(Auth::user()->role==4)
11
+            @include('local.professors._navigation')
10 12
         @endif
11 13
 @stop
12 14
 

+ 9
- 1
app/views/local/professors/_navigation.blade.php View File

@@ -35,7 +35,14 @@
35 35
                 <li> {{ HTML::linkAction('ProfessorsController@program', 'Program') }}</li>
36 36
             @endif
37 37
             <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'Results') }}</li>
38
-            <li>{{ HTML::linkAction('TemplatesController@ProfIndex', 'Rubric List') }}</li>
38
+                      <li class="dropdown">
39
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
40
+                    aria-expanded="false">Rubrics<span class="caret"></span></a>
41
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
42
+                    <li>{{ HTML::linkAction('TemplatesController@newTemplateProf', 'Create/Edit Rubrics') }}</li>
43
+                    <li>{{ HTML::linkAction('TemplatesController@ProfIndex', 'View Rubric List') }}</li>
44
+                </ul>
45
+            </li>
39 46
             <li class="dropdown">
40 47
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
41 48
                     aria-expanded="false">Help<span class="caret"></span></a>
@@ -48,6 +55,7 @@
48 55
                     </li>
49 56
                 </ul>
50 57
             </li>
58
+ 
51 59
             <li class="dropdown">
52 60
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
53 61
                     aria-expanded="false">Account<span class="caret"></span></a>