Browse Source

PAL DE UPDATES

parent
commit
f234192cd0
100 changed files with 6790 additions and 6260 deletions
  1. 7
    2
      app/controllers/AnnualPlansController.php
  2. 40
    6
      app/controllers/Objective2Controller.php
  3. 3
    1
      app/controllers/OutcomesController.php
  4. 6
    3
      app/models/Objective.php
  5. 10
    0
      app/models/Outcome.php
  6. 20
    5
      app/routes.php
  7. BIN
      app/storage/three_year_plan_pdfs/13-05-2022-for-18-by-3402.pdf
  8. 52
    51
      app/views/global/feedback.blade.php
  9. 135
    80
      app/views/global/hello.blade.php
  10. 1
    1
      app/views/global/profile.blade.php
  11. 1
    1
      app/views/global/view-learning-outcomes-criteria.blade.php
  12. 143
    353
      app/views/global/view-objectives-criteria.blade.php
  13. 5
    4
      app/views/local/managers/admins/_navigation.blade.php
  14. 134
    0
      app/views/local/managers/admins/_new_navigation.blade.php
  15. 13
    13
      app/views/local/managers/admins/appraisal-program.blade.php
  16. 23
    23
      app/views/local/managers/admins/assessment_report.blade.php
  17. 11
    11
      app/views/local/managers/admins/assessment_reports.blade.php
  18. 16
    16
      app/views/local/managers/admins/criteria.blade.php
  19. 1
    1
      app/views/local/managers/admins/learning-outcome.blade.php
  20. 1
    1
      app/views/local/managers/admins/learning-outcome_new.blade.php
  21. 325
    310
      app/views/local/managers/admins/learning-outcomes-criteria.blade.php
  22. 87
    75
      app/views/local/managers/admins/learning-outcomes-grad-undergrad.blade.php
  23. 149
    138
      app/views/local/managers/admins/learning-outcomes.blade.php
  24. 57
    53
      app/views/local/managers/admins/learning-outcomes_new.blade.php
  25. 43
    40
      app/views/local/managers/admins/new-activity-create.blade.php
  26. 43
    40
      app/views/local/managers/admins/new-course-show.blade.php
  27. 10
    9
      app/views/local/managers/admins/new-learning-outcome.blade.php
  28. 10
    8
      app/views/local/managers/admins/new-learning-outcomes.blade.php
  29. 25
    21
      app/views/local/managers/admins/new-report-all.blade.php
  30. 21
    17
      app/views/local/managers/admins/new-report.blade.php
  31. 9
    9
      app/views/local/managers/admins/new_assessment_report.blade.php
  32. 3
    3
      app/views/local/managers/admins/objectives.blade.php
  33. 1
    1
      app/views/local/managers/admins/overview.blade.php
  34. 459
    444
      app/views/local/managers/admins/overview2.blade.php
  35. 94
    86
      app/views/local/managers/admins/reassign.blade.php
  36. 97
    94
      app/views/local/managers/admins/semesters.blade.php
  37. 145
    122
      app/views/local/managers/admins/total_assessment.blade.php
  38. 1
    1
      app/views/local/managers/admins/users.blade (4.29.2015 1.43.03 PM).php
  39. 519
    512
      app/views/local/managers/admins/users.blade.php
  40. 1
    1
      app/views/local/managers/admins/view_template.blade.php
  41. 2
    1
      app/views/local/managers/pCoords/_navigation.blade.php
  42. 1
    1
      app/views/local/managers/pCoords/_new_navigation.blade.php
  43. 130
    100
      app/views/local/managers/pCoords/assessment_report.blade.php
  44. 11
    9
      app/views/local/managers/pCoords/assessment_reports.blade.php
  45. 24
    23
      app/views/local/managers/pCoords/new_assessment_report.blade.php
  46. 2
    2
      app/views/local/managers/sCoords/_navigation.blade.php
  47. 1
    1
      app/views/local/managers/sCoords/_new_navigation.blade.php
  48. 5
    5
      app/views/local/managers/sCoords/assessment_report.blade.php
  49. 11
    11
      app/views/local/managers/sCoords/assessment_reports.blade.php
  50. 9
    9
      app/views/local/managers/sCoords/new_assessment_report.blade.php
  51. 1
    1
      app/views/local/managers/shared/annual-plans.blade.php
  52. 9
    9
      app/views/local/managers/shared/annual_report.blade.php
  53. 12
    12
      app/views/local/managers/shared/annual_select.blade.php
  54. 196
    152
      app/views/local/managers/shared/assessment_report_backup.blade.php
  55. 357
    350
      app/views/local/managers/shared/create_annual_plan.blade.php
  56. 368
    358
      app/views/local/managers/shared/create_five_year_plan.blade.php
  57. 14
    14
      app/views/local/managers/shared/criteria.blade.php
  58. 431
    409
      app/views/local/managers/shared/edit_five_year_plan.blade.php
  59. 115
    107
      app/views/local/managers/shared/edit_objectives_FOR_DELETION.blade.php
  60. 1
    1
      app/views/local/managers/shared/grouped_course.blade.php
  61. 71
    66
      app/views/local/managers/shared/index_annual_plans.blade.php
  62. 66
    61
      app/views/local/managers/shared/index_five_year_plans.blade.php
  63. 1
    1
      app/views/local/managers/shared/limited-course.blade.php
  64. 1
    1
      app/views/local/managers/shared/new_view_annual_plans.blade.php
  65. 1
    1
      app/views/local/managers/shared/new_view_three_year_plans.blade.php
  66. 5
    4
      app/views/local/managers/shared/objectives.blade.php
  67. 1
    1
      app/views/local/managers/shared/print_course.blade.php
  68. 1
    1
      app/views/local/managers/shared/program.blade.php
  69. 256
    257
      app/views/local/managers/shared/program_report.blade.php
  70. 1
    1
      app/views/local/managers/shared/program_student_result.blade.php
  71. 122
    113
      app/views/local/managers/shared/programs.blade.php
  72. 1
    1
      app/views/local/managers/shared/rubric_list.blade.php
  73. 1
    1
      app/views/local/managers/shared/rubrics-old.blade.php
  74. 1
    1
      app/views/local/managers/shared/rubrics.blade.php
  75. 1
    1
      app/views/local/managers/shared/rubrics_new.blade.php
  76. 1
    1
      app/views/local/managers/shared/school-uhs.blade.php
  77. 1
    1
      app/views/local/managers/shared/school.blade.php
  78. 1
    1
      app/views/local/managers/shared/school_student_result.blade.php
  79. 328
    309
      app/views/local/managers/shared/show_five_year_plan.blade.php
  80. 1252
    1084
      app/views/local/managers/shared/view-annual-plans.blade.php
  81. 13
    16
      app/views/local/managers/shared/view_formative.blade.php
  82. 1
    1
      app/views/local/managers/shared/view_rubric_limited.blade.php
  83. 2
    1
      app/views/local/professors/_navigation.blade.php
  84. 33
    24
      app/views/local/professors/activity.blade.php
  85. 1
    1
      app/views/local/professors/assessment(before change to handsontable).blade.php
  86. 1
    1
      app/views/local/professors/assessment.blade.php
  87. 1
    1
      app/views/local/professors/assessment_contenteditable.blade.php
  88. 142
    116
      app/views/local/professors/assessment_report.blade.php
  89. 12
    13
      app/views/local/professors/assessment_reports.blade.php
  90. 6
    6
      app/views/local/professors/compare_activities.blade.php
  91. 1
    1
      app/views/local/professors/course.blade.php
  92. 1
    1
      app/views/local/professors/edit_assessment.blade.php
  93. 1
    1
      app/views/local/professors/general_studies_overview.blade.php
  94. 36
    34
      app/views/local/professors/new_assessment_report.blade.php
  95. 1
    1
      app/views/local/professors/overview.blade.php
  96. 1
    1
      app/views/local/professors/program.blade.php
  97. 1
    1
      app/views/local/professors/rubrics.blade.php
  98. 1
    1
      app/views/local/professors/student.blade.php
  99. 1
    1
      app/views/local/professors/view_assessment.blade.php
  100. 0
    0
      app/views/local/professors/viewrubric.blade.php

+ 7
- 2
app/controllers/AnnualPlansController.php View File

126
 
126
 
127
     return View::make('local.managers.shared.index_annual_plans', compact('title', 'quinquenniums', 'programs', 'current_quinquennium'));
127
     return View::make('local.managers.shared.index_annual_plans', compact('title', 'quinquenniums', 'programs', 'current_quinquennium'));
128
   }*/
128
   }*/
129
-  public function adminIndex($school_id)
129
+  public function adminIndex()
130
   {
130
   {
131
     $title = "Annual Plans";
131
     $title = "Annual Plans";
132
     $programs = Program::where("school_id", $school_id)->get();
132
     $programs = Program::where("school_id", $school_id)->get();
1069
     return View::make('local.managers.shared.new_view_annual_plans', compact('paths_with_users', 'title', 'report', 'last', 'annual_report_or_plan', 'program_id'));
1069
     return View::make('local.managers.shared.new_view_annual_plans', compact('paths_with_users', 'title', 'report', 'last', 'annual_report_or_plan', 'program_id'));
1070
   }
1070
   }
1071
 
1071
 
1072
+  public function adminReportIndex()
1073
+  {
1074
+  }
1075
+
1076
+
1072
   public function downloadPDF($download, $path_id)
1077
   public function downloadPDF($download, $path_id)
1073
   {
1078
   {
1074
     $pdf = new PDF(app('config'), app("Filesystem"), app('view'), '/storage/plan_pdf');
1079
     $pdf = new PDF(app('config'), app("Filesystem"), app('view'), '/storage/plan_pdf');
1100
   public function checkIfPlanReady()
1105
   public function checkIfPlanReady()
1101
   {
1106
   {
1102
     $annual_plan = AnnualPlan::findOrFail(Input::get("annual_id"));
1107
     $annual_plan = AnnualPlan::findOrFail(Input::get("annual_id"));
1103
-      Log::info('annual_plan'.$annual_plan->courses);
1108
+    Log::info('annual_plan' . $annual_plan->courses);
1104
 
1109
 
1105
     /*
1110
     /*
1106
       error = [
1111
       error = [

+ 40
- 6
app/controllers/Objective2Controller.php View File

5
 class Objective2Controller extends \BaseController
5
 class Objective2Controller extends \BaseController
6
 {
6
 {
7
 
7
 
8
-	/**
9
-	 * Display a listing of the resource.
10
-	 *
11
-	 * @return Response
12
-	 */
13
 
8
 
14
 
9
 
10
+	// display index Objectives
11
+
12
+	public function viewObjectives()
13
+	{
14
+
15
+
16
+		$title = "Learning Objectives and Criteria";
17
+		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
18
+
15
 
19
 
20
+		return View::make('global.view-objectives-criteria', compact('title', 'outcomes'));
21
+	}
16
 
22
 
17
 	/**
23
 	/**
18
 	 * Show the form for creating a new resource.
24
 	 * Show the form for creating a new resource.
19
 	 *
25
 	 *
20
 	 * @return Response
26
 	 * @return Response
21
 	 */
27
 	 */
28
+
29
+	public function fetchObjectivesForOutcome()
30
+	{
31
+
32
+		$outcome = Outcome::find(Input::get('id'));
33
+
34
+
35
+		$role = Auth::user()->role;
36
+		switch ($role) {
37
+			case 1:
38
+				$programs = DB::table('programs')->lists('id');
39
+				break;
40
+
41
+			case 2:
42
+				$programs = DB::table('programs')
43
+					->where('school_id', Auth::user()->school_id)
44
+					->lists('id');
45
+				break;
46
+			case 3:
47
+				$programs = DB::table('program_user')
48
+					->where("user_id", Auth::user()->id)
49
+					->lists('program_id');
50
+		}
51
+		$objectives = $outcome->objectivesFromProgram($programs)->get();
52
+
53
+		return $objectives;
54
+	}
55
+
22
 	public function isObjectiveUnique($input, $existing_Objective = NULL)
56
 	public function isObjectiveUnique($input, $existing_Objective = NULL)
23
 	{
57
 	{
24
 
58
 
469
 
503
 
470
 		/** Validation rules */
504
 		/** Validation rules */
471
 		if ($clean_input['text'] == $Objective->text) {
505
 		if ($clean_input['text'] == $Objective->text) {
472
-			$validator = $this->makeValidator($clean_input, true);
506
+			$validator = $this->makeValidator($clean_input, false);
473
 		} else
507
 		} else
474
 			$validator = $this->makeValidator($clean_input, false);
508
 			$validator = $this->makeValidator($clean_input, false);
475
 
509
 

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

21
         return View::make('local.managers.admins.learning-outcomes', compact('title', 'outcomes', 'schools'));
21
         return View::make('local.managers.admins.learning-outcomes', compact('title', 'outcomes', 'schools'));
22
         //return View::make('local.managers.admins.learning-outcomes', compact('title', 'outcomes', 'schools','semesters'));
22
         //return View::make('local.managers.admins.learning-outcomes', compact('title', 'outcomes', 'schools','semesters'));
23
     }
23
     }
24
-
24
+    public function adminProgramIndex()
25
+    {
26
+    }
25
     // TODO: Change to home page
27
     // TODO: Change to home page
26
     public function newIndex()
28
     public function newIndex()
27
     {
29
     {

+ 6
- 3
app/models/Objective.php View File

7
     use SoftDeletingTrait;
7
     use SoftDeletingTrait;
8
     protected $fillable = array('text', 'outcome_id',  'active');
8
     protected $fillable = array('text', 'outcome_id',  'active');
9
     protected $table = 'objectives';
9
     protected $table = 'objectives';
10
-    protected $appends = array("grouped_annual_course");
10
+    protected $appends = array("grouped_annual_course", 'programs');
11
 
11
 
12
     /**
12
     /**
13
      * Return the program that the objective belongs to
13
      * Return the program that the objective belongs to
14
      *
14
      *
15
      * @return Illuminate\Database\Eloquent\Model
15
      * @return Illuminate\Database\Eloquent\Model
16
      */
16
      */
17
-    public function program()
17
+    public function getProgramsAttribute()
18
     {
18
     {
19
-        return $this->belongsTo('Program');
19
+        return Program::join('objective_program', 'programs.id', '=', 'objective_program.program_id')
20
+            ->where('objective_program.objective_id', $this->id)
21
+            ->get();
20
     }
22
     }
21
 
23
 
22
     //paired_outcome
24
     //paired_outcome
130
 
132
 
131
 
133
 
132
 
134
 
135
+
133
     /**
136
     /**
134
      * Return the program that the objective belongs to
137
      * Return the program that the objective belongs to
135
      *
138
      *

+ 10
- 0
app/models/Outcome.php View File

271
 		return $this->hasMany('Objective');
271
 		return $this->hasMany('Objective');
272
 		//		return $this->belongsToMany('Objective', 'objective_outcome');
272
 		//		return $this->belongsToMany('Objective', 'objective_outcome');
273
 	}
273
 	}
274
+
275
+	public function scopeObjectivesFromProgram($query, $programs)
276
+	{
277
+		return Objective::join('objective_program', 'objective_program.objective_id', '=', 'objectives.id')
278
+			//->join('programs', 'programs.id', '=', 'objective_program.program_id')
279
+			->whereIn("program_id", $programs)
280
+			->where('objective_program.objective_id', '<>', '0')
281
+			->select('objectives.*')
282
+			->groupBy('objectives.id');
283
+	}
274
 	// 	public function attempted($semester, $is_grad)
284
 	// 	public function attempted($semester, $is_grad)
275
 	// 	{
285
 	// 	{
276
 	// 		return DB::table('new_criteria')
286
 	// 		return DB::table('new_criteria')

+ 20
- 5
app/routes.php View File

30
 // Composers
30
 // Composers
31
 View::composer(array(
31
 View::composer(array(
32
     'local.professors._navigation',
32
     'local.professors._navigation',
33
-    'local.managers.admins._navigation',
33
+    'local.managers.admins._new_navigation',
34
     'local.managers.sCoords._new_navigation',
34
     'local.managers.sCoords._new_navigation',
35
     'local.managers.pCoords._new_navigation',
35
     'local.managers.pCoords._new_navigation',
36
 ), function ($view) {
36
 ), function ($view) {
43
 
43
 
44
 View::composer(array(
44
 View::composer(array(
45
     'local.professors.*',
45
     'local.professors.*',
46
-    'local.managers.admins._navigation',
46
+    'local.managers.admins._new_navigation',
47
     'local.managers.sCoords._new_navigation',
47
     'local.managers.sCoords._new_navigation',
48
     'local.managers.pCoords._new_navigation',
48
     'local.managers.pCoords._new_navigation',
49
     'local.managers.shared.limited-course',
49
     'local.managers.shared.limited-course',
215
         'uses' => 'AnnualPlansController@fetchAnnualReport'
215
         'uses' => 'AnnualPlansController@fetchAnnualReport'
216
     ));
216
     ));
217
 
217
 
218
+    //shared viewTransformativeActions
219
+
220
+    Route::get('viewTransformativeActions', 'TransformativeActionsController@viewTransformativeActions');
221
+    Route::get('viewProgramActivities', 'TransformativeActionsController@viewProgramActivities');
222
+
218
     //View Three year plan
223
     //View Three year plan
219
 
224
 
220
     Route::get('three-year-plan/show/{program_id}', "ThreeYearPlanController@showPDFs");
225
     Route::get('three-year-plan/show/{program_id}', "ThreeYearPlanController@showPDFs");
272
         'uses' => 'TransformativeActionsController@fetchCourses'
277
         'uses' => 'TransformativeActionsController@fetchCourses'
273
     ));
278
     ));
274
 
279
 
280
+    Route::post('fetchObjectivesForOutcome', "Objective2Controller@fetchObjectivesForOutcome");
281
+
275
     //Objectives and Criteria Shared Routes
282
     //Objectives and Criteria Shared Routes
276
     Route::get('criteria', array('uses' => 'CriteriaController@edit'));
283
     Route::get('criteria', array('uses' => 'CriteriaController@edit'));
277
     Route::get('objectives', array('uses' => 'Objective2Controller@edit'));
284
     Route::get('objectives', array('uses' => 'Objective2Controller@edit'));
341
     Route::get('learning-outcomes-criteria', 'CriteriaController@index');
348
     Route::get('learning-outcomes-criteria', 'CriteriaController@index');
342
     Route::post('fetchOutcome', array('before' => 'csrf', 'uses' => 'OutcomesController@fetchOutcome'));
349
     Route::post('fetchOutcome', array('before' => 'csrf', 'uses' => 'OutcomesController@fetchOutcome'));
343
     // Show users all objectives and criteria
350
     // Show users all objectives and criteria
344
-    Route::get('learning-objectives-criteria', 'CriteriaController@objectivesIndex');
351
+    Route::get('learning-objectives-criteria', 'objective2Controller@viewObjectives');
345
     Route::post('fetchObjectiveForCriteria', array('before' => 'csrf', 'uses' => 'ObjectivesController@fetchObjectiveForCriteria'));
352
     Route::post('fetchObjectiveForCriteria', array('before' => 'csrf', 'uses' => 'ObjectivesController@fetchObjectiveForCriteria'));
346
 
353
 
347
     // Show professor overview to users with courses
354
     // Show professor overview to users with courses
373
             'uses' => 'CriteriaController@fetch'
380
             'uses' => 'CriteriaController@fetch'
374
         ));
381
         ));
375
 
382
 
383
+
384
+        //New navigation routes
385
+
386
+        Route::get('campusAnnualReport', 'AnnualPlansController@adminReportIndex');
387
+        Route::get('campusResults', 'OutcomesController@adminProgramIndex');
388
+        Route::get('manageSemesterCycle', 'ThreeYearPlanController@manageSemesterCycle');
389
+
390
+
376
         //Plans routes
391
         //Plans routes
377
         Route::post('showThreeYearPlans', 'ThreeYearPlanController@adminIndex');
392
         Route::post('showThreeYearPlans', 'ThreeYearPlanController@adminIndex');
378
         Route::post('showAnnualPlans', 'AnnualPlansController@adminIndex');
393
         Route::post('showAnnualPlans', 'AnnualPlansController@adminIndex');
626
         Route::post('updateRubric', array('before' => 'csrf', 'uses' => 'RubricsController@update'));
641
         Route::post('updateRubric', array('before' => 'csrf', 'uses' => 'RubricsController@update'));
627
         Route::post('deleteRubric', array('before' => 'csrf', 'uses' => 'RubricsController@destroy'));
642
         Route::post('deleteRubric', array('before' => 'csrf', 'uses' => 'RubricsController@destroy'));
628
         Route::get('learning-outcomes-criteria', 'CriteriaController@index');
643
         Route::get('learning-outcomes-criteria', 'CriteriaController@index');
629
-        Route::get('learning-objectives-criteria', 'CriteriaController@objectivesIndex');
644
+        Route::get('learning-objectives-criteria', 'objective2Controller@viewObjectives');
630
         Route::get('export_grades/{id}', 'CoursesController@exportGrades');
645
         Route::get('export_grades/{id}', 'CoursesController@exportGrades');
631
-        Route::get('learning-objectives-criteria', 'CriteriaController@objectivesIndex');
646
+        Route::get('learning-objectives-criteria', 'objective2Controller@viewObjectives');
632
         Route::get('compare_activities/{activity_1}/{activity_2}', 'ActivitiesController@compareActivities');
647
         Route::get('compare_activities/{activity_1}/{activity_2}', 'ActivitiesController@compareActivities');
633
         // Assessment reports
648
         // Assessment reports
634
         //Route::get('professor-assessment-report/{outcome_id}', 'OutcomesController@professorAssessmentReport');
649
         //Route::get('professor-assessment-report/{outcome_id}', 'OutcomesController@professorAssessmentReport');

BIN
app/storage/three_year_plan_pdfs/13-05-2022-for-18-by-3402.pdf View File


+ 52
- 51
app/views/global/feedback.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 @section('navigation')
2
 @section('navigation')
3
-    @if($user->role==1)
4
-        @include('local.managers.admins._navigation')
5
-    @elseif($user->role==2)
3
+    @if ($user->role == 1)
4
+        @include('local.managers.admins._new_navigation')
5
+    @elseif($user->role == 2)
6
         @include('local.managers.sCoords._new_navigation')
6
         @include('local.managers.sCoords._new_navigation')
7
-    @elseif($user->role==3)
7
+    @elseif($user->role == 3)
8
         @include('local.managers.pCoords._new_navigation')
8
         @include('local.managers.pCoords._new_navigation')
9
     @else
9
     @else
10
         @include('local.professors._navigation')
10
         @include('local.professors._navigation')
13
 
13
 
14
 @section('main')
14
 @section('main')
15
 
15
 
16
-<div class="row">
17
-	<div class="col-md-12">
18
-		<p>Use this form to let us know of any comments you have about the application. Please note that all fields are required. When writing comments, be as descriptive as possible, especially when you want to report errors. Include the name of the page you are commenting about, if applicable. Once you are done, click 'Send'. A copy will be sent to your chosen email address.</p>
16
+    <div class="row">
17
+        <div class="col-md-12">
18
+            <p>Use this form to let us know of any comments you have about the application. Please note that all fields are
19
+                required. When writing comments, be as descriptive as possible, especially when you want to report errors.
20
+                Include the name of the page you are commenting about, if applicable. Once you are done, click 'Send'. A
21
+                copy will be sent to your chosen email address.</p>
19
 
22
 
20
-		{{ Form::open(array('action'=>'FeedbackController@send', 'class'=>'form-horizontal')) }}
21
-			<div class="form-group">
22
-				{{ Form::label('type', 'Type of Comment', array('class'=>'col-md-2')) }}
23
-				<div class="col-md-10">
24
-					{{ Form::select(
25
-						'type',
26
-						array(
27
-							'0' => 'Error Report',
28
-							'1' => 'Question',
29
-							'2'=>'Suggestion',
30
-							'3'=>'Other'),
31
-						null,
32
-						array('class'=>'form-control', 'name'=>'type'))
33
-					}}
34
-				</div>
35
-			</div>
23
+            {{ Form::open(['action' => 'FeedbackController@send', 'class' => 'form-horizontal']) }}
24
+            <div class="form-group">
25
+                {{ Form::label('type', 'Type of Comment', ['class' => 'col-md-2']) }}
26
+                <div class="col-md-10">
27
+                    {{ Form::select(
28
+                        'type',
29
+                        [
30
+                            '0' => 'Error Report',
31
+                            '1' => 'Question',
32
+                            '2' => 'Suggestion',
33
+                            '3' => 'Other',
34
+                        ],
35
+                        null,
36
+                        ['class' => 'form-control', 'name' => 'type'],
37
+                    ) }}
38
+                </div>
39
+            </div>
36
 
40
 
37
-			<div class="form-group">
38
-				{{ Form::label('email', 'Copy to', array('class'=>'col-md-2')) }}
39
-				<div class="col-md-10">
40
-					<select name="email" id="email" class="form-control" aria-labelledby="email">
41
-						<option value="{{ $user->email }}">{{ $user->email }}</option>
42
-						@if($user->alternate_email!=NULL)
43
-						<option value="{{ $user->alternate_email }}">{{ $user->alternate_email }}</option>
44
-						@endif
45
-					</select>
46
-				</div>
47
-			</div>
41
+            <div class="form-group">
42
+                {{ Form::label('email', 'Copy to', ['class' => 'col-md-2']) }}
43
+                <div class="col-md-10">
44
+                    <select name="email" id="email" class="form-control" aria-labelledby="email">
45
+                        <option value="{{ $user->email }}">{{ $user->email }}</option>
46
+                        @if ($user->alternate_email != null)
47
+                            <option value="{{ $user->alternate_email }}">{{ $user->alternate_email }}</option>
48
+                        @endif
49
+                    </select>
50
+                </div>
51
+            </div>
48
 
52
 
49
-			<div class="form-group">
50
-				<div class="col-md-12">
51
-					{{ Form::label( 'comment', 'Comment') }}
52
-					{{ Form::textarea('comment', '', array('class'=>'form-control', 'name'=>'comment')) }}
53
-				</div>
54
-			</div>
53
+            <div class="form-group">
54
+                <div class="col-md-12">
55
+                    {{ Form::label('comment', 'Comment') }}
56
+                    {{ Form::textarea('comment', '', ['class' => 'form-control', 'name' => 'comment']) }}
57
+                </div>
58
+            </div>
55
 
59
 
56
-			<div class="form-group">
57
-				<div class="col-md-12">
58
-					{{ Form::submit('Send', array('class'=>'btn btn-lg btn-primary pull-right'))}}
59
-				</div>
60
-			</div>
60
+            <div class="form-group">
61
+                <div class="col-md-12">
62
+                    {{ Form::submit('Send', ['class' => 'btn btn-lg btn-primary pull-right']) }}
63
+                </div>
64
+            </div>
61
 
65
 
62
-		{{ Form::close() }}
63
-	</div>
64
-</div>
66
+            {{ Form::close() }}
67
+        </div>
68
+    </div>
65
 
69
 
66
 @stop
70
 @stop
67
-
68
-
69
-

+ 135
- 80
app/views/global/hello.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @include('local.managers.admins._navigation')
4
+    @include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 
6
 
7
 
7
 
8
 @section('main')
8
 @section('main')
9
-<div class="container">
10
-  <div class="row">
11
-    <h2>Rubrics</h2>
12
-    <div class="well">
13
-      <form>
14
-        <div class="form-group">
15
-          <label for="exampleInputEmail1">Select a Template</label>
16
-          <select class="form-control"><option>One</option><option>Two</option><option>Three</option></select>
9
+    <div class="container">
10
+        <div class="row">
11
+            <h2>Rubrics</h2>
12
+            <div class="well">
13
+                <form>
14
+                    <div class="form-group">
15
+                        <label for="exampleInputEmail1">Select a Template</label>
16
+                        <select class="form-control">
17
+                            <option>One</option>
18
+                            <option>Two</option>
19
+                            <option>Three</option>
20
+                        </select>
21
+                    </div>
22
+                    <div class="form-group">
23
+                        <label for="exampleInputEmail1">Select a Learning Outcome</label>
24
+                        <select class="form-control">
25
+                            <option>One</option>
26
+                            <option>Two</option>
27
+                            <option>Three</option>
28
+                        </select>
29
+                    </div>
30
+                    <div class="form-group">
31
+                        <label for="exampleInputEmail1">Select a Criterion</label>
32
+                        <select class="form-control">
33
+                            <option>One</option>
34
+                            <option>Two</option>
35
+                            <option>Three</option>
36
+                        </select>
37
+                    </div>
38
+                </form>
39
+            </div>
17
         </div>
40
         </div>
18
-        <div class="form-group">
19
-          <label for="exampleInputEmail1">Select a Learning Outcome</label>
20
-          <select class="form-control"><option>One</option><option>Two</option><option>Three</option></select>
41
+
42
+        <div class="row">
43
+            <table class="table table-striped">
44
+                <thead>
45
+                    <tr>
46
+                        <th colspan="5"><input type="text" class="form-control input-xxl" placeholder="Rubric Name"></th>
47
+                    </tr>
48
+                </thead>
49
+                <thead>
50
+                    <tr>
51
+                        <th></th>
52
+                        <th>Beginning (1-2)</th>
53
+                        <th>Satisfactory (3-4)</th>
54
+                        <th>Good (6-7)</th>
55
+                        <th>Excellent (7-8)</th>
56
+                    </tr>
57
+                </thead>
58
+                <tbody>
59
+                    <tr>
60
+                        <td>Criterion 1</td>
61
+                        <td>..</td>
62
+                        <td>..</td>
63
+                        <td>..</td>
64
+                        <td>..</td>
65
+                    </tr>
66
+                    <tr>
67
+                        <td>Criterion 2</td>
68
+                        <td>..</td>
69
+                        <td>..</td>
70
+                        <td>..</td>
71
+                        <td>..</td>
72
+                    </tr>
73
+                    <tr>
74
+                        <td>Criterion 3</td>
75
+                        <td>..</td>
76
+                        <td>..</td>
77
+                        <td>..</td>
78
+                        <td>..</td>
79
+                    </tr>
80
+                    <tr>
81
+                        <td>Criterion 4</td>
82
+                        <td>..</td>
83
+                        <td>..</td>
84
+                        <td>..</td>
85
+                        <td>..</td>
86
+                    </tr>
87
+                    <tr>
88
+                        <td>Criterion 5</td>
89
+                        <td>..</td>
90
+                        <td>..</td>
91
+                        <td>..</td>
92
+                        <td>..</td>
93
+                    </tr>
94
+                </tbody>
95
+            </table>
21
         </div>
96
         </div>
22
-        <div class="form-group">
23
-          <label for="exampleInputEmail1">Select a Criterion</label>
24
-          <select class="form-control"><option>One</option><option>Two</option><option>Three</option></select>
97
+        <div class="row">
98
+            <div class="col-md-12"><button class="btn btn-md btn-block btn-primary center-block">Save</button></div>
25
         </div>
99
         </div>
26
-      </form>
27
     </div>
100
     </div>
28
-  </div>
29
-
30
-  <div class="row">
31
-    <table class="table table-striped">
32
-      <thead><tr><th colspan="5"><input type="text" class="form-control input-xxl" placeholder="Rubric Name"></th></tr></thead>
33
-      <thead><tr><th></th><th>Beginning (1-2)</th><th>Satisfactory (3-4)</th><th>Good (6-7)</th><th>Excellent (7-8)</th></tr></thead>
34
-      <tbody><tr><td>Criterion 1</td><td>..</td><td>..</td><td>..</td><td>..</td></tr>
35
-            <tr><td>Criterion 2</td><td>..</td><td>..</td><td>..</td><td>..</td></tr>
36
-            <tr><td>Criterion 3</td><td>..</td><td>..</td><td>..</td><td>..</td></tr>
37
-            <tr><td>Criterion 4</td><td>..</td><td>..</td><td>..</td><td>..</td></tr>
38
-            <tr><td>Criterion 5</td><td>..</td><td>..</td><td>..</td><td>..</td></tr>
39
-      </tbody>
40
-    </table>
41
-  </div>
42
-  <div class="row">
43
-    <div class="col-md-12"><button class="btn btn-md btn-block btn-primary center-block">Save</button></div>
44
-  </div>
45
-</div>
46
 @stop
101
 @stop
47
 
102
 
48
 @section('javascript')
103
 @section('javascript')
49
-  $(function () {
104
+    $(function () {
50
     $('#container').highcharts({
105
     $('#container').highcharts({
51
-        title: {
52
-            text: 'Monthly Average Temperature',
53
-            x: -20 //center
54
-        },
55
-        subtitle: {
56
-            text: 'Source: WorldClimate.com',
57
-            x: -20
58
-        },
59
-        xAxis: {
60
-            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
61
-                'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
62
-        },
63
-        yAxis: {
64
-            title: {
65
-                text: 'Temperature (°C)'
66
-            },
67
-            plotLines: [{
68
-                value: 0,
69
-                width: 1,
70
-                color: '#808080'
71
-            }]
72
-        },
73
-        tooltip: {
74
-            valueSuffix: '°C'
75
-        },
76
-        legend: {
77
-            layout: 'vertical',
78
-            align: 'right',
79
-            verticalAlign: 'middle',
80
-            borderWidth: 0
81
-        },
82
-        series: [{
83
-            name: 'Tokyo',
84
-            data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
85
-        }, {
86
-            name: 'New York',
87
-            data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
88
-        }, {
89
-            name: 'Berlin',
90
-            data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
91
-        }, {
92
-            name: 'London',
93
-            data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
94
-        }]
106
+    title: {
107
+    text: 'Monthly Average Temperature',
108
+    x: -20 //center
109
+    },
110
+    subtitle: {
111
+    text: 'Source: WorldClimate.com',
112
+    x: -20
113
+    },
114
+    xAxis: {
115
+    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
116
+    'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
117
+    },
118
+    yAxis: {
119
+    title: {
120
+    text: 'Temperature (°C)'
121
+    },
122
+    plotLines: [{
123
+    value: 0,
124
+    width: 1,
125
+    color: '#808080'
126
+    }]
127
+    },
128
+    tooltip: {
129
+    valueSuffix: '°C'
130
+    },
131
+    legend: {
132
+    layout: 'vertical',
133
+    align: 'right',
134
+    verticalAlign: 'middle',
135
+    borderWidth: 0
136
+    },
137
+    series: [{
138
+    name: 'Tokyo',
139
+    data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
140
+    }, {
141
+    name: 'New York',
142
+    data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
143
+    }, {
144
+    name: 'Berlin',
145
+    data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
146
+    }, {
147
+    name: 'London',
148
+    data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
149
+    }]
150
+    });
95
     });
151
     });
96
-});
97
 @stop
152
 @stop

+ 1
- 1
app/views/global/profile.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 @section('navigation')
2
 @section('navigation')
3
     @if($user->role==1)
3
     @if($user->role==1)
4
-        @include('local.managers.admins._navigation')
4
+        @include('local.managers.admins._new_navigation')
5
     @elseif($user->role==2)
5
     @elseif($user->role==2)
6
         @include('local.managers.sCoords._new_navigation')
6
         @include('local.managers.sCoords._new_navigation')
7
     @elseif($user->role==3)
7
     @elseif($user->role==3)

+ 1
- 1
app/views/global/view-learning-outcomes-criteria.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if(Auth::user()->role==1)
4
     @if(Auth::user()->role==1)
5
-      @include('local.managers.admins._navigation')
5
+      @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role==2)
6
     @elseif(Auth::user()->role==2)
7
       @include('local.managers.sCoords._new_navigation')
7
       @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role==3)
8
     @elseif(Auth::user()->role==3)

+ 143
- 353
app/views/global/view-objectives-criteria.blade.php
File diff suppressed because it is too large
View File


+ 5
- 4
app/views/local/managers/admins/_navigation.blade.php View File

24
                     and Criterias<span class="caret"></span></a>
24
                     and Criterias<span class="caret"></span></a>
25
                 <ul class="dropdown-menu" role="menu">
25
                 <ul class="dropdown-menu" role="menu">
26
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
26
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
27
-                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
27
+                    <li>{{ HTML::linkAction('objective2Controller@viewObjectives', 'Objectives and Criteria') }}
28
+                    </li>
28
                 </ul>
29
                 </ul>
29
             </li>
30
             </li>
30
             <li class="dropdown">
31
             <li class="dropdown">
64
                     @if (count(Auth::user()->courses))
65
                     @if (count(Auth::user()->courses))
65
                         <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Results') }}
66
                         <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Results') }}
66
                         </li>
67
                         </li>
67
-
68
                     @endif
68
                     @endif
69
                 </ul>
69
                 </ul>
70
             </li>
70
             </li>
71
             <li class="dropdown">
71
             <li class="dropdown">
72
-                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Program Plans
72
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Program
73
+                    Plans
73
                     <span class="caret"></span></a>
74
                     <span class="caret"></span></a>
74
                 <ul class="dropdown-menu" role="menu">
75
                 <ul class="dropdown-menu" role="menu">
75
                     <li>{{ HTML::linkAction('AnnualPlansController@adminIndex', 'Annual Plans') }}</li>
76
                     <li>{{ HTML::linkAction('AnnualPlansController@adminIndex', 'Annual Plans') }}</li>
98
                     <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
99
                     <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
99
                 </ul>
100
                 </ul>
100
             </li>
101
             </li>
101
-            <!-- 
102
+            <!--
102
           <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}
103
           <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}
103
       </li>
104
       </li>
104
  -->
105
  -->

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

1
+<div class="navbar navbar-inverse navbar-static-top">
2
+    <div class="container-fluid">
3
+        <!--<div class="navbar-header">
4
+      {{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Online Learning Assessment System · Program Coordinator', [], ['class' => 'navbar-brand']) }}
5
+    </div>-->
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>
9
+
10
+            <li class="dropdown">
11
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
12
+                    aria-expanded="false">Objectives<span class="caret"></span></a>
13
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
14
+                    <li>{{ HTML::linkAction('Objective2Controller@edit', 'Create/Edit Objectives') }}</li>
15
+                    <li>{{ HTML::linkAction('objective2Controller@viewObjectives', 'View Objectives and Criteria') }}
16
+                    </li>
17
+                </ul>
18
+            </li>
19
+            <li class='dropdown'>
20
+                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false">
21
+                    Criteria<span class="caret"></span></a>
22
+                <ul class='dropdown-menu dropdown-menu-left' role='menu'>
23
+
24
+                    <li>{{ HTML::linkAction('CriteriaController@edit', 'Create/Edit Criteria') }}</li>
25
+                    <li>{{ HTML::linkAction('CriteriaController@index', 'View Criteria') }}</li>
26
+
27
+                </ul>
28
+            </li>
29
+
30
+
31
+
32
+
33
+            <li class="dropdown">
34
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
35
+                    aria-expanded="false">Rubrics<span class="caret"></span></a>
36
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
37
+                    <li>{{ HTML::linkAction('TemplatesController@newTemplate_new', 'Create/Edit Rubrics') }}</li>
38
+                    <li>{{ HTML::linkAction('TemplatesController@index', 'View Rubric List') }}</li>
39
+                </ul>
40
+            </li>
41
+
42
+
43
+            <li class="dropdown">
44
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Colleges
45
+                    and Schools<span class="caret"></span></a>
46
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
47
+                    @foreach ($schools as $school)
48
+                        <li>{{ HTML::linkAction('SchoolsController@show', $school->name, [$school->id]) }}</li>
49
+                    @endforeach
50
+                </ul>
51
+            </li>
52
+            <li>{{ HTML::linkAction('ProgramsController@index', 'Programs') }}</li>
53
+            <li class='dropdown'>
54
+                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false">
55
+                    Assessment Cycle<span class="caret"></span></a>
56
+                <ul class='dropdown-menu dropdown-menu-left' role='menu'>
57
+
58
+                    <li>{{ HTML::linkAction('ThreeYearPlanController@adminIndex', 'View Three Year Plan') }}</li>
59
+                    <li>{{ HTML::linkAction('AnnualPlansController@adminIndex', 'View Annual Plan') }}</li>
60
+                    <li>{{ HTML::linkAction('AnnualPlansController@adminReportIndex', 'View Annual Report') }}</li>
61
+                    <li>{{ HTML::linkAction('OutcomesController@adminProgramIndex', 'View Program Courses Results') }}
62
+                    </li>
63
+                    <li>{{ HTML::linkAction('TransformativeActionsController@viewTransformativeActions', 'View Transformative Actions') }}
64
+                    </li>
65
+
66
+                    <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'View Formative Actions') }}
67
+
68
+                </ul>
69
+            </li>
70
+
71
+            <li class="dropdown">
72
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
73
+                    aria-expanded="false">Management<span class="caret"></span></a>
74
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
75
+                    <li>{{ HTML::linkAction('CoursesController@reassign', 'Courses') }}</li>
76
+
77
+                    <li>{{ HTML::linkAction('OutcomesController@index', 'Learning Outcomes') }}</li>
78
+
79
+                    <li>{{ HTML::linkAction('SemestersController@edit', 'Semesters') }}</li>
80
+                    <li>{{ HTML::linkAction('ThreeYearPlanController@manageSemesterCycle', 'Schedule Assessment Cycle') }}
81
+                    </li>
82
+
83
+                    <li>{{ HTML::linkAction('UsersController@index', 'Users') }}</li>
84
+                </ul>
85
+            </li>
86
+
87
+
88
+            @if (count(Auth::user()->courses))
89
+                <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', null) }}</li>
90
+                <li class="dropdown">
91
+                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
92
+                        aria-expanded="false">Sections<span class="caret"></span></a>
93
+                    <ul class="dropdown-menu" role="menu">
94
+                        @foreach ($courses as $course)
95
+                            <li> {{ HTML::linkAction('CoursesController@show', $course->code . $course->number . '-' . $course->section . ' (' . $course->semester->code . ')', ['id' => $course->id]) }}
96
+                            </li>
97
+                        @endforeach
98
+                    </ul>
99
+                </li>
100
+
101
+            @endif
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+            <li class="dropdown">
111
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
112
+                        class="caret"></span></a>
113
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
114
+                    <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
115
+                    <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
116
+                    <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
117
+                    <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
118
+                    <li><a
119
+                            href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a>
120
+                    </li>
121
+                </ul>
122
+            </li>
123
+            <li class="dropdown">
124
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
125
+                    aria-expanded="false">Account<span class="caret"></span></a>
126
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
127
+                    <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
128
+                    <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
129
+                </ul>
130
+            </li>
131
+            <li>
132
+        </ul>
133
+    </div>
134
+</div>

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

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

+ 23
- 23
app/views/local/managers/admins/assessment_report.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @include('local.managers.admins._navigation')
4
+    @include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 
6
 
7
 @section('main')
7
 @section('main')
22
             <!-- <h3>Table of Contents</h3> -->
22
             <!-- <h3>Table of Contents</h3> -->
23
             <!-- <ol id="table-of-contents" class="upper-roman">
23
             <!-- <ol id="table-of-contents" class="upper-roman">
24
 
24
 
25
-                    </ol> -->
25
+                        </ol> -->
26
 
26
 
27
 
27
 
28
             <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
28
             <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
66
                                             <?php
66
                                             <?php
67
                                             
67
                                             
68
                                             /* $sections_evaluating_outcome = Course::has('activities')
68
                                             /* $sections_evaluating_outcome = Course::has('activities')
69
-                                                                                        //                                             ->whereNotNull('outcomes_attempted')
70
-                                                                                        //                                             ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
71
-                                                                                                                                    ->with(array('activities'=>function($query) use(&$outcome){
72
-                                                                                        //                                                 $query->whereNotNull('outcomes_attempted');
73
-                                                                                        //                                                 $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
74
-                                                                                        //                                                 $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');
75
-                                                                                                                                        } ))
76
-                                                                                                                                    ->where('code', $course->code)->where('number',$course->number)
77
-                                                                                                                                    ->whereIn('semester_id', Session::get('semesters_ids'))
78
-                                                                                                                                    ->get();*/
69
+                                                                                                                                    //                                             ->whereNotNull('outcomes_attempted')
70
+                                                                                                                                    //                                             ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
71
+                                                                                                                                                                                ->with(array('activities'=>function($query) use(&$outcome){
72
+                                                                                                                                    //                                                 $query->whereNotNull('outcomes_attempted');
73
+                                                                                                                                    //                                                 $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
74
+                                                                                                                                    //                                                 $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');
75
+                                                                                                                                                                                    } ))
76
+                                                                                                                                                                                ->where('code', $course->code)->where('number',$course->number)
77
+                                                                                                                                                                                ->whereIn('semester_id', Session::get('semesters_ids'))
78
+                                                                                                                                                                                ->get();*/
79
                                             
79
                                             
80
                                             $sections_evaluating_outcome = Course::has('activities')
80
                                             $sections_evaluating_outcome = Course::has('activities')
81
                                             
81
                                             
120
                                                             <h5>Measure {{ $activity_index + 1 }}</h5>
120
                                                             <h5>Measure {{ $activity_index + 1 }}</h5>
121
                                                             <?php
121
                                                             <?php
122
                                                             /*
122
                                                             /*
123
-                                                                                                                                                                                var_dump($section->code);
124
-                                                                                                                                                                                var_dump($section->number);
125
-                                                                                                                                                                                var_dump($section->name);
126
-                                                                                                                                                                                var_dump($outcome->name);
127
-                                                                                                                                                                                var_dump(date('M Y', strtotime($activity->date)));
128
-                                                                                                                                                                                var_dump($activity->name);
129
-                                                                                                                                                                                var_dump(count($section->students));
130
-                                                                                                                                                                                print"<br>";
131
-                                                                                                                                                                                print "A rubric was used in the $section->code-$section->number ($section->name) course (". date('M Y', strtotime($activity->date)).") to assess students’ <u>". strtolower($outcome->name) ."</u> in the activity: '<strong>$activity->name </strong>'. N= ". count($section->students);
132
-                                                                                                                                                                                exit();
133
-                                                                                                                                                                                */
123
+                                                                                                                                                                                                                                            var_dump($section->code);
124
+                                                                                                                                                                                                                                            var_dump($section->number);
125
+                                                                                                                                                                                                                                            var_dump($section->name);
126
+                                                                                                                                                                                                                                            var_dump($outcome->name);
127
+                                                                                                                                                                                                                                            var_dump(date('M Y', strtotime($activity->date)));
128
+                                                                                                                                                                                                                                            var_dump($activity->name);
129
+                                                                                                                                                                                                                                            var_dump(count($section->students));
130
+                                                                                                                                                                                                                                            print"<br>";
131
+                                                                                                                                                                                                                                            print "A rubric was used in the $section->code-$section->number ($section->name) course (". date('M Y', strtotime($activity->date)).") to assess students’ <u>". strtolower($outcome->name) ."</u> in the activity: '<strong>$activity->name </strong>'. N= ". count($section->students);
132
+                                                                                                                                                                                                                                            exit();
133
+                                                                                                                                                                                                                                            */
134
                                                             ?>
134
                                                             ?>
135
 
135
 
136
 
136
 

+ 11
- 11
app/views/local/managers/admins/assessment_reports.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
22
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
22
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
23
 
23
 
24
             <ol id="table-of-contents" class="upper-roman">
24
             <ol id="table-of-contents" class="upper-roman">
25
-            @foreach($outcomes as $outcome)
26
-                <li>
27
-                    <a href="{{ URL::action('OutcomesController@assessmentReport', array($outcome->id))}}">
28
-                        {{ $outcome->name }}
29
-                    </a>
30
-                </li>
31
-            @endforeach
25
+                @foreach ($outcomes as $outcome)
26
+                    <li>
27
+                        <a href="{{ URL::action('OutcomesController@assessmentReport', [$outcome->id]) }}">
28
+                            {{ $outcome->name }}
29
+                        </a>
30
+                    </li>
31
+                @endforeach
32
             </ol>
32
             </ol>
33
         </div>
33
         </div>
34
     </div>
34
     </div>

+ 16
- 16
app/views/local/managers/admins/criteria.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
28
                             <div class="form-group col-md-12 selectOutcome">
28
                             <div class="form-group col-md-12 selectOutcome">
29
                                 <label>Learning Outcome 1</label>
29
                                 <label>Learning Outcome 1</label>
30
 
30
 
31
-                                {{ Form::select('outcome[]', $outcomes, reset($outcomes), ['class' => 'form-control selectpicker','id' => 'outcome0','onchange' => 'fetchObjectiveForSelect("outcome0", "objectiveGroupFor0")']) }}
31
+                                {{ Form::select('outcome[]', $outcomes, reset($outcomes), ['class' => 'form-control selectpicker', 'id' => 'outcome0', 'onchange' => 'fetchObjectiveForSelect("outcome0", "objectiveGroupFor0")']) }}
32
                             </div>
32
                             </div>
33
 
33
 
34
                             <div id='objectiveGroupFor0' class='createObjective' data-value='1'>
34
                             <div id='objectiveGroupFor0' class='createObjective' data-value='1'>
87
                     <div class="form-group">
87
                     <div class="form-group">
88
                         {{ Form::label('subcriteria', 'Subcriteria') }}
88
                         {{ Form::label('subcriteria', 'Subcriteria') }}
89
                         <p class="help-block"><strong>Manually add</strong> bullets or numbering.</p>
89
                         <p class="help-block"><strong>Manually add</strong> bullets or numbering.</p>
90
-                        {{ Form::textarea('subcriteria', '', ['class' => 'form-control','rows' => 3,'aria-labelledby' => 'subcriteria']) }}
90
+                        {{ Form::textarea('subcriteria', '', ['class' => 'form-control', 'rows' => 3, 'aria-labelledby' => 'subcriteria']) }}
91
                     </div>
91
                     </div>
92
                     <div class="form-group form_validation maximum_form ">
92
                     <div class="form-group form_validation maximum_form ">
93
                         {{ Form::label('maximum_score', 'Maximum Score') }}
93
                         {{ Form::label('maximum_score', 'Maximum Score') }}
94
-                        {{ Form::text('maximum_score', '8', ['class' => 'form-control','id' => 'maximum_score','oninput' => 'addOptions("Num_scale", "maximum_score", "Scales")']) }}
94
+                        {{ Form::text('maximum_score', '8', ['class' => 'form-control', 'id' => 'maximum_score', 'oninput' => 'addOptions("Num_scale", "maximum_score", "Scales")']) }}
95
                     </div>
95
                     </div>
96
                     <div class="form-group form_validation number_of_scales">
96
                     <div class="form-group form_validation number_of_scales">
97
                         {{ Form::label('scales', 'Number of Scales') }}
97
                         {{ Form::label('scales', 'Number of Scales') }}
105
                     </div>
105
                     </div>
106
                     <div class="form-group">
106
                     <div class="form-group">
107
                         {{ Form::label('copyright', 'Copyright') }}
107
                         {{ Form::label('copyright', 'Copyright') }}
108
-                        {{ Form::textarea('copyright', '', ['class' => 'form-control','rows' => 2,'placeholder' => '(optional)','aria-labelledby' => 'copyright']) }}
108
+                        {{ Form::textarea('copyright', '', ['class' => 'form-control', 'rows' => 2, 'placeholder' => '(optional)', 'aria-labelledby' => 'copyright']) }}
109
                     </div>
109
                     </div>
110
 
110
 
111
                     <div class="form-group">
111
                     <div class="form-group">
112
                         {{ Form::label('notes', 'Notes') }}
112
                         {{ Form::label('notes', 'Notes') }}
113
-                        {{ Form::textarea('notes', '', ['class' => 'form-control','rows' => 2,'placeholder' => '(optional)','aria-labelledby' => 'notes']) }}
113
+                        {{ Form::textarea('notes', '', ['class' => 'form-control', 'rows' => 2, 'placeholder' => '(optional)', 'aria-labelledby' => 'notes']) }}
114
                     </div>
114
                     </div>
115
 
115
 
116
-                    {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block','id' => 'create_the_criterion_button','data-form-id' => 'create_criterion']) }}
116
+                    {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block', 'id' => 'create_the_criterion_button', 'data-form-id' => 'create_criterion']) }}
117
                     {{ Form::close() }}
117
                     {{ Form::close() }}
118
                 </div>
118
                 </div>
119
             </div>
119
             </div>
125
                     Edit
125
                     Edit
126
                 </div>
126
                 </div>
127
                 <div class="panel-body">
127
                 <div class="panel-body">
128
-                    {{ Form::open(['action' => 'CriteriaController@update','id' => 'update_criterion','data-form-id' => 'update_criterion']) }}
128
+                    {{ Form::open(['action' => 'CriteriaController@update', 'id' => 'update_criterion', 'data-form-id' => 'update_criterion']) }}
129
                     <button class="btn btn-md btn-secondary filterButton">
129
                     <button class="btn btn-md btn-secondary filterButton">
130
                         <span class="glyphicon glyphicon-minus">
130
                         <span class="glyphicon glyphicon-minus">
131
                         </span>
131
                         </span>
144
                         </div>
144
                         </div>
145
                         <div class="form-group">
145
                         <div class="form-group">
146
                             <label>Associated Learning Outcome</label>
146
                             <label>Associated Learning Outcome</label>
147
-                            {{ Form::select('assoc_outcome_fetch', $outcomes, null, ['class' => 'form-control selectpicker','id' => 'assoc_outcomes_fetch','onchange' => 'fetchAllCriterion("select-program", "assoc_outcomes_fetch")']) }}
147
+                            {{ Form::select('assoc_outcome_fetch', $outcomes, null, ['class' => 'form-control selectpicker', 'id' => 'assoc_outcomes_fetch', 'onchange' => 'fetchAllCriterion("select-program", "assoc_outcomes_fetch")']) }}
148
 
148
 
149
                         </div>
149
                         </div>
150
                     </div>
150
                     </div>
155
                             onchange='fetchCriterionForEditing()'>
155
                             onchange='fetchCriterionForEditing()'>
156
                             @foreach ($criteria as $criterion)
156
                             @foreach ($criteria as $criterion)
157
                                 <option value="{{ $criterion->id }}" data-subtext="
157
                                 <option value="{{ $criterion->id }}" data-subtext="
158
-                                                                     @if ($criterion->program) &nbsp;&nbsp;&nbsp;[{{ $criterion->program->name }}] @endif
159
-                                ">
158
+                                                                         @if ($criterion->program) &nbsp;&nbsp;&nbsp;[{{ $criterion->program->name }}] @endif
159
+                                    ">
160
                                     {{ $criterion->name }}
160
                                     {{ $criterion->name }}
161
 
161
 
162
 
162
 
170
                         <div id='assocOutcomeGroup0' class='createOutcome' data-value="1">
170
                         <div id='assocOutcomeGroup0' class='createOutcome' data-value="1">
171
                             <div class="form-group col-md-12 selectOutcome">
171
                             <div class="form-group col-md-12 selectOutcome">
172
                                 <label>Learning Outcome 1</label>
172
                                 <label>Learning Outcome 1</label>
173
-                                {{ Form::select('outcome[]', $outcomes, null, ['class' => 'form-control selectpicker','id' => 'assoc_outcome_0','onchange' => 'fetchObjectiveForSelect("assoc_outcome_0", "assoc_objectiveGroupFor0")']) }}
173
+                                {{ Form::select('outcome[]', $outcomes, null, ['class' => 'form-control selectpicker', 'id' => 'assoc_outcome_0', 'onchange' => 'fetchObjectiveForSelect("assoc_outcome_0", "assoc_objectiveGroupFor0")']) }}
174
 
174
 
175
                             </div>
175
                             </div>
176
                             <div id='assoc_objectiveGroupFor0' class='createObjective' data-value="1">
176
                             <div id='assoc_objectiveGroupFor0' class='createObjective' data-value="1">
242
                     </div>
242
                     </div>
243
                     <div class="form-group  form_validation maximum_form">
243
                     <div class="form-group  form_validation maximum_form">
244
                         {{ Form::label('maximum_score', 'Maximum Score') }}
244
                         {{ Form::label('maximum_score', 'Maximum Score') }}
245
-                        {{ Form::text('maximum_score', '', ['class' => 'form-control','id' => 'assoc_maximum_score','oninput' => 'addOptions("Num_assoc_scale", "assoc_maximum_score", "Assoc_Scales")']) }}
245
+                        {{ Form::text('maximum_score', '', ['class' => 'form-control', 'id' => 'assoc_maximum_score', 'oninput' => 'addOptions("Num_assoc_scale", "assoc_maximum_score", "Assoc_Scales")']) }}
246
                     </div>
246
                     </div>
247
 
247
 
248
 
248
 
261
 
261
 
262
                     <div class="form-group">
262
                     <div class="form-group">
263
                         {{ Form::label('copyright', 'Copyright Information') }}
263
                         {{ Form::label('copyright', 'Copyright Information') }}
264
-                        {{ Form::textarea('copyright', Input::old('copyright'), ['class' => 'form-control','rows' => 2,'id' => 'criterion_copyright','placeholder' => '(optional)']) }}
264
+                        {{ Form::textarea('copyright', Input::old('copyright'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_copyright', 'placeholder' => '(optional)']) }}
265
                     </div>
265
                     </div>
266
 
266
 
267
                     <div class="form-group">
267
                     <div class="form-group">
268
                         {{ Form::label('notes', 'Additional Notes') }}
268
                         {{ Form::label('notes', 'Additional Notes') }}
269
-                        {{ Form::textarea('notes', Input::old('notes'), ['class' => 'form-control','rows' => 2,'id' => 'criterion_notes','placeholder' => '(optional)']) }}
269
+                        {{ Form::textarea('notes', Input::old('notes'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_notes', 'placeholder' => '(optional)']) }}
270
                     </div>
270
                     </div>
271
 
271
 
272
-                    {{ Form::submit('Update', ['class' => 'btn btn-primary btn-block','id' => 'update_the_criterion_button','data-form-id' => 'update_criterion']) }}
272
+                    {{ Form::submit('Update', ['class' => 'btn btn-primary btn-block', 'id' => 'update_the_criterion_button', 'data-form-id' => 'update_criterion']) }}
273
                     {{ Form::close() }}
273
                     {{ Form::close() }}
274
 
274
 
275
                     {{ Form::open(['action' => 'CriteriaController@delete']) }}
275
                     {{ Form::open(['action' => 'CriteriaController@delete']) }}

+ 1
- 1
app/views/local/managers/admins/learning-outcome.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if(Auth::user()->role==1)
4
     @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role==2)
6
     @elseif(Auth::user()->role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role==3)
8
     @elseif(Auth::user()->role==3)

+ 1
- 1
app/views/local/managers/admins/learning-outcome_new.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if(Auth::user()->role==1)
4
     @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role==2)
6
     @elseif(Auth::user()->role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role==3)
8
     @elseif(Auth::user()->role==3)

+ 325
- 310
app/views/local/managers/admins/learning-outcomes-criteria.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
 
14
 
15
-  <div class="row">
16
-    <div class="col-md-3">
17
-      <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
18
-
19
-        <!-- Form to add a new Learning Outcome -->
20
-<!--         <div class="panel panel-default">
21
-          <div class="panel-heading">
22
-            New Learning Outcome
23
-          </div>
24
-          <div class="panel-body">
25
-            {{ Form::open(array('action' => 'OutcomesController@create')) }}
26
-
27
-            <div class="form-group">
28
-              {{ Form::label('name', 'Name') }}
29
-              {{ Form::text('name', '', array('class' => 'form-control')) }}
30
-            </div>
31
-
32
-            <div class="form-group">
33
-              {{ Form::label('definition', 'Definition') }}
34
-              {{ Form::textarea('definition', '', array('class' => 'form-control', 'rows'=>2)) }}
35
-            </div>
36
-
37
-            {{ Form::submit('Submit', array('class' => 'btn btn-primary btn-block')) }}
38
-
39
-            {{ Form::close() }}
40
-          </div>
41
-        </div> -->
42
-
43
-        <!-- Form to add a new criterion -->
44
-        <div class="panel panel-default panel-button">
45
-          <div class="panel-heading">
46
-            Create
47
-          </div>
48
-          <div class="panel-body">
49
-            {{ Form::open(array('action' => 'CriteriaController@create')) }}
50
-
51
-              <div class="form-group">
52
-                {{ Form::label('outcome_id', 'Associated Learning Outcome') }}
53
-                <select name="outcome_id" class="form-control">
54
-                @foreach ($outcomes as $outcome)
55
-                  <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
56
-                @endforeach
57
-                </select>
58
-              </div>
59
-
60
-              <div class="form-group">
61
-                {{ Form::label('name', 'Name') }}
62
-                {{ Form::text('name', '', array('class' => 'form-control')) }}
63
-              </div>
64
-
65
-              <div class="form-group">
66
-                {{ Form::label('description12', 'Beginning (1-2)') }}
67
-                {{ Form::textarea('description12', '', array('class' => 'form-control', 'rows'=>2)) }}
68
-              </div>
69
-
70
-              <div class="form-group">
71
-                {{ Form::label('description34', 'In Progress (3-4)') }}
72
-                {{ Form::textarea('description34', '', array('class' => 'form-control', 'rows'=>2)) }}
73
-              </div>
74
-
75
-              <div class="form-group">
76
-                {{ Form::label('description56', 'Satisfactory (5-6)') }}
77
-                {{ Form::textarea('description56', '', array('class' => 'form-control', 'rows'=>2)) }}
78
-              </div>
79
-
80
-              <div class="form-group">
81
-                {{ Form::label('description78', 'Excellent (7-8)') }}
82
-                {{ Form::textarea('description78', '', array('class' => 'form-control', 'rows'=>2)) }}
83
-              </div>
84
-
85
-              {{ Form::submit('Create', array('class' => 'btn btn-primary btn-block')) }}
86
-            {{ Form::close() }}
87
-          </div>
88
-        </div>
15
+    <div class="row">
16
+        <div class="col-md-3">
17
+            <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
89
 
18
 
90
-        <div class="panel panel-default panel-button">
91
-          <div class="panel-heading">
92
-            Edit
93
-          </div>
94
-          <div class="panel-body">
95
-            {{ Form::open(array('action' => 'CriteriaController@update')) }}
96
-
97
-              <div class="form-group">
98
-                {{ Form::label('criterion_id', 'Criterion') }}
99
-                <select id="select-criterion" name="id" class="form-control">
100
-                @foreach ($criteria as $criterion)
101
-                  <option value="{{ $criterion->id }}">{{ $criterion->name }}</option>
102
-                @endforeach
103
-                </select>
19
+                <!-- Form to add a new Learning Outcome -->
20
+                <!--         <div class="panel panel-default">
21
+              <div class="panel-heading">
22
+                New Learning Outcome
104
               </div>
23
               </div>
24
+              <div class="panel-body">
25
+                {{ Form::open(['action' => 'OutcomesController@create']) }}
105
 
26
 
106
-              <div class="form-group">
107
-                {{ Form::label('assoc_outcome_id', 'Associated Learning Outcome') }}
108
-                <select id="assoc_outcome_id" name="outcome_id" class="form-control">
109
-                @foreach ($outcomes as $outcome)
110
-                  <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
111
-                @endforeach
112
-                </select>
113
-              </div>
27
+                <div class="form-group">
28
+                  {{ Form::label('name', 'Name') }}
29
+                  {{ Form::text('name', '', ['class' => 'form-control']) }}
30
+                </div>
114
 
31
 
115
-              <div class="form-group">
116
-                {{ Form::label('name', 'Name') }}
117
-                {{ Form::text('name', Input::old('name'), array('class' => 'form-control', 'id'=>'criterion_name')) }}
118
-              </div>
32
+                <div class="form-group">
33
+                  {{ Form::label('definition', 'Definition') }}
34
+                  {{ Form::textarea('definition', '', ['class' => 'form-control', 'rows' => 2]) }}
35
+                </div>
119
 
36
 
120
-              <div class="form-group">
121
-                {{ Form::label('description12', 'Beginning (1-2)') }}
122
-                {{ Form::textarea('description12', Input::old('description12'), array('class' => 'form-control', 'rows'=>2, 'id'=>'criterion_description12')) }}
123
-              </div>
37
+                {{ Form::submit('Submit', ['class' => 'btn btn-primary btn-block']) }}
124
 
38
 
125
-              <div class="form-group">
126
-                {{ Form::label('description34', 'In Progress (3-4)') }}
127
-                {{ Form::textarea('description34', Input::old('description34'), array('class' => 'form-control', 'rows'=>2, 'id'=>'criterion_description34')) }}
39
+                {{ Form::close() }}
128
               </div>
40
               </div>
129
-
130
-              <div class="form-group">
131
-                {{ Form::label('description56', 'Satisfactory (5-6)') }}
132
-                {{ Form::textarea('description56', Input::old('description56'), array('class' => 'form-control', 'rows'=>2, 'id'=>'criterion_description56')) }}
41
+            </div> -->
42
+
43
+                <!-- Form to add a new criterion -->
44
+                <div class="panel panel-default panel-button">
45
+                    <div class="panel-heading">
46
+                        Create
47
+                    </div>
48
+                    <div class="panel-body">
49
+                        {{ Form::open(['action' => 'CriteriaController@create']) }}
50
+
51
+                        <div class="form-group">
52
+                            {{ Form::label('outcome_id', 'Associated Learning Outcome') }}
53
+                            <select name="outcome_id" class="form-control">
54
+                                @foreach ($outcomes as $outcome)
55
+                                    <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
56
+                                @endforeach
57
+                            </select>
58
+                        </div>
59
+
60
+                        <div class="form-group">
61
+                            {{ Form::label('name', 'Name') }}
62
+                            {{ Form::text('name', '', ['class' => 'form-control']) }}
63
+                        </div>
64
+
65
+                        <div class="form-group">
66
+                            {{ Form::label('description12', 'Beginning (1-2)') }}
67
+                            {{ Form::textarea('description12', '', ['class' => 'form-control', 'rows' => 2]) }}
68
+                        </div>
69
+
70
+                        <div class="form-group">
71
+                            {{ Form::label('description34', 'In Progress (3-4)') }}
72
+                            {{ Form::textarea('description34', '', ['class' => 'form-control', 'rows' => 2]) }}
73
+                        </div>
74
+
75
+                        <div class="form-group">
76
+                            {{ Form::label('description56', 'Satisfactory (5-6)') }}
77
+                            {{ Form::textarea('description56', '', ['class' => 'form-control', 'rows' => 2]) }}
78
+                        </div>
79
+
80
+                        <div class="form-group">
81
+                            {{ Form::label('description78', 'Excellent (7-8)') }}
82
+                            {{ Form::textarea('description78', '', ['class' => 'form-control', 'rows' => 2]) }}
83
+                        </div>
84
+
85
+                        {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block']) }}
86
+                        {{ Form::close() }}
87
+                    </div>
88
+                </div>
89
+
90
+                <div class="panel panel-default panel-button">
91
+                    <div class="panel-heading">
92
+                        Edit
93
+                    </div>
94
+                    <div class="panel-body">
95
+                        {{ Form::open(['action' => 'CriteriaController@update']) }}
96
+
97
+                        <div class="form-group">
98
+                            {{ Form::label('criterion_id', 'Criterion') }}
99
+                            <select id="select-criterion" name="id" class="form-control">
100
+                                @foreach ($criteria as $criterion)
101
+                                    <option value="{{ $criterion->id }}">{{ $criterion->name }}</option>
102
+                                @endforeach
103
+                            </select>
104
+                        </div>
105
+
106
+                        <div class="form-group">
107
+                            {{ Form::label('assoc_outcome_id', 'Associated Learning Outcome') }}
108
+                            <select id="assoc_outcome_id" name="outcome_id" class="form-control">
109
+                                @foreach ($outcomes as $outcome)
110
+                                    <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
111
+                                @endforeach
112
+                            </select>
113
+                        </div>
114
+
115
+                        <div class="form-group">
116
+                            {{ Form::label('name', 'Name') }}
117
+                            {{ Form::text('name', Input::old('name'), ['class' => 'form-control', 'id' => 'criterion_name']) }}
118
+                        </div>
119
+
120
+                        <div class="form-group">
121
+                            {{ Form::label('description12', 'Beginning (1-2)') }}
122
+                            {{ Form::textarea('description12', Input::old('description12'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_description12']) }}
123
+                        </div>
124
+
125
+                        <div class="form-group">
126
+                            {{ Form::label('description34', 'In Progress (3-4)') }}
127
+                            {{ Form::textarea('description34', Input::old('description34'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_description34']) }}
128
+                        </div>
129
+
130
+                        <div class="form-group">
131
+                            {{ Form::label('description56', 'Satisfactory (5-6)') }}
132
+                            {{ Form::textarea('description56', Input::old('description56'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_description56']) }}
133
+                        </div>
134
+
135
+                        <div class="form-group">
136
+                            {{ Form::label('description78', 'Excellent (7-8)') }}
137
+                            {{ Form::textarea('description78', Input::old('description78'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_description78']) }}
138
+                        </div>
139
+
140
+                        {{ Form::submit('Update', ['class' => 'btn btn-primary btn-block']) }}
141
+                        {{ Form::close() }}
142
+                    </div>
143
+                </div>
144
+
145
+                <div class="panel panel-default panel-button">
146
+                    <div class="panel-heading">
147
+                        Change Status
148
+                    </div>
149
+                    <div class="panel-body">
150
+                        <p>Use this form to deactivate or reactivate criteria. Inactive criteria will
151
+                            stay in the system, but will not be available to use in new rubrics.</p>
152
+                        {{ Form::open(['action' => 'CriteriaController@destroy', 'method' => 'delete']) }}
153
+
154
+                        <div class="form-group">
155
+                            {{ Form::label('criterion_id', 'Criterion') }}
156
+                            <select id="select-criterion-with-status" name="id" class="form-control">
157
+                                @foreach ($criteria as $criterion)
158
+                                    <option data-status="{{ $criterion->trashed() }}" value="{{ $criterion->id }}">
159
+                                        {{ $criterion->name }}</option>
160
+                                @endforeach
161
+                            </select>
162
+                        </div>
163
+
164
+                        <div class="form-group">
165
+                            {{ Form::label('status', 'Status') }}
166
+                            <p name="status" id="status" class="form-control-static"></p>
167
+                        </div>
168
+
169
+                        {{ Form::submit('Change', ['class' => 'btn btn-primary btn-block']) }}
170
+                        {{ Form::close() }}
171
+                    </div>
172
+                </div>
173
+
174
+                <!-- Form to edit a Learning Outcome -->
175
+                <!--         <div class="panel panel-default">
176
+              <div class="panel-heading">
177
+                Edit a Learning Outcome
133
               </div>
178
               </div>
134
-
135
-              <div class="form-group">
136
-                {{ Form::label('description78', 'Excellent (7-8)') }}
137
-                {{ Form::textarea('description78', Input::old('description78'), array('class' => 'form-control', 'rows'=>2, 'id'=>'criterion_description78')) }}
179
+              <div class="panel-body">
180
+                {{ Form::open(['action' => 'OutcomesController@update']) }}
181
+
182
+                <div class="form-group">
183
+                    {{ Form::label('outcome_id', 'Learning Outcome') }}
184
+                    <select id="select-outcome" name="id" class="form-control">
185
+                    @foreach ($outcomes as $outcome)
186
+    <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
187
+    @endforeach
188
+                    </select>
189
+                </div>
190
+
191
+                <div class="form-group">
192
+                  {{ Form::label('name', 'Name') }}
193
+                  {{ Form::text('name', Input::old('name'), ['class' => 'form-control', 'id' => 'outcome_name']) }}
194
+                </div>
195
+
196
+                <div class="form-group">
197
+                  {{ Form::label('definition', 'Definition') }}
198
+                  {{ Form::textarea('definition', Input::old('definition'), ['class' => 'form-control', 'rows' => 2, 'id' => 'outcome_definition']) }}
199
+                </div>
200
+
201
+                {{ Form::submit('Update', ['class' => 'btn btn-primary btn-block']) }}
202
+
203
+                {{ Form::close() }}
138
               </div>
204
               </div>
205
+            </div> -->
139
 
206
 
140
-              {{ Form::submit('Update', array('class' => 'btn btn-primary btn-block')) }}
141
-            {{ Form::close() }}
142
-          </div>
143
-        </div>
144
-
145
-        <div class="panel panel-default panel-button">
146
-          <div class="panel-heading">
147
-            Change Status
148
-          </div>
149
-          <div class="panel-body">
150
-            <p>Use this form to deactivate or reactivate criteria. Inactive criteria will
151
-              stay in the system, but will not be available to use in new rubrics.</p>
152
-            {{ Form::open(array('action' => 'CriteriaController@destroy', 'method'=>'delete')) }}
153
-
154
-              <div class="form-group">
155
-                {{ Form::label('criterion_id', 'Criterion') }}
156
-                <select id="select-criterion-with-status" name="id" class="form-control">
157
-                @foreach ($criteria as $criterion)
158
-                  <option data-status="{{ $criterion->trashed() }}" value="{{ $criterion->id }}">{{ $criterion->name }}</option>
159
-                @endforeach
160
-                </select>
161
-              </div>
162
-
163
-              <div class="form-group">
164
-                {{ Form::label('status', 'Status') }}
165
-                <p name="status" id="status" class="form-control-static"></p>
166
-              </div>
167
-
168
-              {{ Form::submit('Change', array('class' => 'btn btn-primary btn-block')) }}
169
-            {{ Form::close() }}
170
-          </div>
171
-        </div>
207
+            </div>
172
 
208
 
173
-        <!-- Form to edit a Learning Outcome -->
174
-<!--         <div class="panel panel-default">
175
-          <div class="panel-heading">
176
-            Edit a Learning Outcome
177
-          </div>
178
-          <div class="panel-body">
179
-            {{ Form::open(array('action' => 'OutcomesController@update')) }}
180
-
181
-            <div class="form-group">
182
-                {{ Form::label('outcome_id', 'Learning Outcome') }}
183
-                <select id="select-outcome" name="id" class="form-control">
209
+            <ul class="list-group">
184
                 @foreach ($outcomes as $outcome)
210
                 @foreach ($outcomes as $outcome)
185
-                  <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
211
+                    <li data-outcome-id="{{ $outcome->id }}" class="list-group-item">{{ $outcome->name }}</li>
186
                 @endforeach
212
                 @endforeach
187
-                </select>
188
-            </div>
213
+            </ul>
214
+        </div>
189
 
215
 
190
-            <div class="form-group">
191
-              {{ Form::label('name', 'Name') }}
192
-              {{ Form::text('name', Input::old('name'), array('class' => 'form-control', 'id'=>'outcome_name')) }}
216
+        <div class="col-md-9">
217
+            <div id="outcome-display" class="panel panel-default">
218
+                <div class="panel-heading">
219
+                    <div class="panel-title"></div>
220
+                    </h4>
221
+                </div>
222
+                <div class="panel-body">
223
+                    <p class="outcome-definition"></p>
224
+                    <table class="table table-striped table-condensed">
225
+                        <thead>
226
+                            <tr>
227
+                                <th>Criterion</th>
228
+                                <th>Beginning (1-2)</th>
229
+                                <th>In Progress (3-4)</th>
230
+                                <th>Satisfactory (5-6)</th>
231
+                                <th>Excellent (7-8)</th>
232
+                            </tr>
233
+                        </thead>
234
+                        <tbody>
235
+                        </tbody>
236
+                    </table>
237
+                </div>
193
             </div>
238
             </div>
239
+        </div>
194
 
240
 
195
-            <div class="form-group">
196
-              {{ Form::label('definition', 'Definition') }}
197
-              {{ Form::textarea('definition', Input::old('definition'), array('class' => 'form-control', 'rows'=>2, 'id'=>'outcome_definition')) }}
241
+        <div class="col-md-9">
242
+            <div class="no-outcome alert alert-info">
243
+                <p>Select a Learning Outcome to view its criteria.</p>
198
             </div>
244
             </div>
199
-
200
-            {{ Form::submit('Update', array('class' => 'btn btn-primary btn-block')) }}
201
-
202
-            {{ Form::close() }}
203
-          </div>
204
-        </div> -->
205
-
206
-      </div>
207
-
208
-      <ul class="list-group">
209
-        @foreach ($outcomes as $outcome)
210
-          <li data-outcome-id="{{ $outcome->id }}"class="list-group-item">{{ $outcome->name }}</li>
211
-        @endforeach
212
-      </ul>
213
-    </div>
214
-
215
-    <div class="col-md-9">
216
-      <div id="outcome-display" class="panel panel-default">
217
-        <div class="panel-heading">
218
-          <div class="panel-title"></div>
219
-          </h4>
220
         </div>
245
         </div>
221
-        <div class="panel-body">
222
-          <p class="outcome-definition"></p>
223
-          <table class="table table-striped table-condensed">
224
-            <thead><tr><th>Criterion</th><th>Beginning (1-2)</th><th>In Progress (3-4)</th><th>Satisfactory (5-6)</th><th>Excellent (7-8)</th></tr></thead>
225
-            <tbody>
226
-            </tbody>
227
-          </table>
228
-        </div>
229
-      </div>
230
-    </div>
231
 
246
 
232
-    <div class="col-md-9">
233
-      <div class="no-outcome alert alert-info">
234
-        <p>Select a Learning Outcome to view its criteria.</p>
235
-      </div>
236
     </div>
247
     </div>
237
-
238
-  </div>
239
 @stop
248
 @stop
240
 
249
 
241
 @section('javascript')
250
 @section('javascript')
242
 
251
 
243
 
252
 
244
-  // --------------------------------------------------------------------------
245
-  // Page load
246
-  // --------------------------------------------------------------------------
253
+    // --------------------------------------------------------------------------
254
+    // Page load
255
+    // --------------------------------------------------------------------------
247
 
256
 
248
-  // Hide accordion panel contents by default
249
-  $('.panel-group .panel-body').hide();
257
+    // Hide accordion panel contents by default
258
+    $('.panel-group .panel-body').hide();
250
 
259
 
251
-  $('#outcome-display').parent().hide();
260
+    $('#outcome-display').parent().hide();
252
 
261
 
253
-  fetchOutcomeForEditing();
254
-  fetchCriterionForEditing();
255
-  setCriterionStatus();
262
+    fetchOutcomeForEditing();
263
+    fetchCriterionForEditing();
264
+    setCriterionStatus();
256
 
265
 
257
 
266
 
258
 
267
 
259
 
268
 
260
-  // --------------------------------------------------------------------------
261
-  // Functions
262
-  // --------------------------------------------------------------------------
269
+    // --------------------------------------------------------------------------
270
+    // Functions
271
+    // --------------------------------------------------------------------------
263
 
272
 
264
-  // Fetch outcome info for editing
265
-  function fetchOutcomeForEditing()
266
-  {
273
+    // Fetch outcome info for editing
274
+    function fetchOutcomeForEditing()
275
+    {
267
     var id = $('#select-outcome').find(':selected').val();
276
     var id = $('#select-outcome').find(':selected').val();
268
 
277
 
269
     $.post(
278
     $.post(
271
     { id: id },
280
     { id: id },
272
     function(json)
281
     function(json)
273
     {
282
     {
274
-      var name = json.outcome.name;
275
-      var definition = json.outcome.definition;
283
+    var name = json.outcome.name;
284
+    var definition = json.outcome.definition;
276
 
285
 
277
-      //Display title and definition
278
-      $('#outcome_name').val(name);
279
-      $('#outcome_definition').text(definition);
286
+    //Display title and definition
287
+    $('#outcome_name').val(name);
288
+    $('#outcome_definition').text(definition);
280
     },
289
     },
281
     'json'
290
     'json'
282
     );
291
     );
283
-  }
292
+    }
284
 
293
 
285
-  // Fetch criterion info for editing
286
-  function fetchCriterionForEditing()
287
-  {
294
+    // Fetch criterion info for editing
295
+    function fetchCriterionForEditing()
296
+    {
288
     var id = $('#select-criterion').find(':selected').val();
297
     var id = $('#select-criterion').find(':selected').val();
289
 
298
 
290
     $.post(
299
     $.post(
292
     { id: id },
301
     { id: id },
293
     function(json)
302
     function(json)
294
     {
303
     {
295
-      var name = json.name;
296
-      var description12 = json.description12;
297
-      var description34 = json.description34;
298
-      var description56 = json.description56;
299
-      var description78 = json.description78;
300
-
301
-      // Display title and definition
302
-      $('#criterion_name').val(name);
303
-      $('#criterion_description12').text(description12);
304
-      $('#criterion_description34').text(description34);
305
-      $('#criterion_description56').text(description56);
306
-      $('#criterion_description78').text(description78);
307
-
308
-      // Select associated outcome
309
-      $('#assoc_outcome_id').val(json.outcome_id);
304
+    var name = json.name;
305
+    var description12 = json.description12;
306
+    var description34 = json.description34;
307
+    var description56 = json.description56;
308
+    var description78 = json.description78;
309
+
310
+    // Display title and definition
311
+    $('#criterion_name').val(name);
312
+    $('#criterion_description12').text(description12);
313
+    $('#criterion_description34').text(description34);
314
+    $('#criterion_description56').text(description56);
315
+    $('#criterion_description78').text(description78);
316
+
317
+    // Select associated outcome
318
+    $('#assoc_outcome_id').val(json.outcome_id);
310
     },
319
     },
311
     'json'
320
     'json'
312
     );
321
     );
313
-  }
322
+    }
314
 
323
 
315
-  // Set criterion status
316
-  function setCriterionStatus()
317
-  {
324
+    // Set criterion status
325
+    function setCriterionStatus()
326
+    {
318
     $('#select-criterion-with-status').find(':selected').data('status')
327
     $('#select-criterion-with-status').find(':selected').data('status')
319
     switch($('#select-criterion-with-status').find(':selected').data('status'))
328
     switch($('#select-criterion-with-status').find(':selected').data('status'))
320
     {
329
     {
321
-      case 1:
322
-        $('#status').text('Inactive');
323
-        break;
324
-      default:
325
-        $('#status').text('Active');
326
-        break;
330
+    case 1:
331
+    $('#status').text('Inactive');
332
+    break;
333
+    default:
334
+    $('#status').text('Active');
335
+    break;
327
 
336
 
328
     }
337
     }
329
-  }
338
+    }
330
 
339
 
331
-  // --------------------------------------------------------------------------
332
-  // Events
333
-  // --------------------------------------------------------------------------
340
+    // --------------------------------------------------------------------------
341
+    // Events
342
+    // --------------------------------------------------------------------------
334
 
343
 
335
-  // When panel heading is clicked, toggle it
336
-  $('.panel-group .panel-heading').on('click', function()
337
-  {
344
+    // When panel heading is clicked, toggle it
345
+    $('.panel-group .panel-heading').on('click', function()
346
+    {
338
     $(this).next().stop().slideToggle();
347
     $(this).next().stop().slideToggle();
339
-  })
348
+    })
340
 
349
 
341
-  // When list item is clicked, load corresponding info
342
-  $('.list-group-item').on('click', function()
343
-  {
350
+    // When list item is clicked, load corresponding info
351
+    $('.list-group-item').on('click', function()
352
+    {
344
     var id = $(this).data('outcome-id');
353
     var id = $(this).data('outcome-id');
345
 
354
 
346
     $.post(
355
     $.post(
348
     { id: id },
357
     { id: id },
349
     function(json)
358
     function(json)
350
     {
359
     {
351
-      var name = json.outcome.name;
352
-      var definition = json.outcome.definition;
353
-      var criteria =json.outcome.criteria;
354
-      var deleted = json.outcome.deleted_at;
355
-
356
-
357
-      $('#outcome-display').parent().show();
358
-      $('.no-outcome').parent().hide();
359
-
360
-      //Display title and definition
361
-      $('#outcome-display .panel-title').html(name);
362
-      $('#outcome-display .outcome-definition').html(definition);
363
-
364
-
365
-      //Empty table body
366
-      $('tbody').empty();
367
-
368
-      if(criteria.length>0)
369
-      {
370
-        $('table').show();
371
-        $.each(criteria, function(index, value)
372
-        {
373
-          $('tbody').append('<tr><td >'+value.name+'</td><td >'+value.description12+'</td><td >'+value.description34+'</td><td >'+value.description56+'</td><td >'+value.description78+'</td></tr>');
374
-        });
375
-      }
376
-      else
377
-      {
378
-        $('table').hide();
379
-      }
360
+    var name = json.outcome.name;
361
+    var definition = json.outcome.definition;
362
+    var criteria =json.outcome.criteria;
363
+    var deleted = json.outcome.deleted_at;
364
+
365
+
366
+    $('#outcome-display').parent().show();
367
+    $('.no-outcome').parent().hide();
368
+
369
+    //Display title and definition
370
+    $('#outcome-display .panel-title').html(name);
371
+    $('#outcome-display .outcome-definition').html(definition);
372
+
373
+
374
+    //Empty table body
375
+    $('tbody').empty();
376
+
377
+    if(criteria.length>0)
378
+    {
379
+    $('table').show();
380
+    $.each(criteria, function(index, value)
381
+    {
382
+    $('tbody').append('<tr>
383
+        <td>'+value.name+'</td>
384
+        <td>'+value.description12+'</td>
385
+        <td>'+value.description34+'</td>
386
+        <td>'+value.description56+'</td>
387
+        <td>'+value.description78+'</td>
388
+    </tr>');
389
+    });
390
+    }
391
+    else
392
+    {
393
+    $('table').hide();
394
+    }
380
     },
395
     },
381
     'json'
396
     'json'
382
     );
397
     );
383
 
398
 
384
-  });
399
+    });
385
 
400
 
386
-  // When list item is clicked, load corresponding info
387
-  $('#select-outcome').on('change', function()
388
-  {
401
+    // When list item is clicked, load corresponding info
402
+    $('#select-outcome').on('change', function()
403
+    {
389
     fetchOutcomeForEditing();
404
     fetchOutcomeForEditing();
390
-  });
405
+    });
391
 
406
 
392
-  // When list item is clicked, load corresponding info
393
-  $('#select-criterion').on('change', function()
394
-  {
407
+    // When list item is clicked, load corresponding info
408
+    $('#select-criterion').on('change', function()
409
+    {
395
     fetchCriterionForEditing();
410
     fetchCriterionForEditing();
396
-  });
411
+    });
397
 
412
 
398
-  // When list item is clicked, load corresponding info
399
-  $('#select-criterion-with-status').on('change', function()
400
-  {
413
+    // When list item is clicked, load corresponding info
414
+    $('#select-criterion-with-status').on('change', function()
415
+    {
401
     setCriterionStatus();
416
     setCriterionStatus();
402
-  });
417
+    });
403
 
418
 
404
 @stop
419
 @stop

+ 87
- 75
app/views/local/managers/admins/learning-outcomes-grad-undergrad.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
14
 
14
 
15
     <div class="row">
15
     <div class="row">
16
         <div class="col-md-12">
16
         <div class="col-md-12">
17
-            <p>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.</p>
17
+            <p>Click on the values you want to change. Invalid values will be rejected automatically. To save your changes,
18
+                click the 'Save' button at the bottom of the page.</p>
18
             <!-- Nav tabs -->
19
             <!-- Nav tabs -->
19
             <ul class="nav nav-tabs" role="tablist">
20
             <ul class="nav nav-tabs" role="tablist">
20
-                <li role="presentation" class="active"><a href="#undergraduate" aria-controls="undergraduate" role="tab" data-toggle="tab"><h4>Undergraduate Program Participation</h4></a></li>
21
-                <li role="presentation"><a href="#graduate" aria-controls="graduate" role="tab" data-toggle="tab"><h4>Graduate Program Participation</h4></a></li>
21
+                <li role="presentation" class="active"><a href="#undergraduate" aria-controls="undergraduate"
22
+                        role="tab" data-toggle="tab">
23
+                        <h4>Undergraduate Program Participation</h4>
24
+                    </a></li>
25
+                <li role="presentation"><a href="#graduate" aria-controls="graduate" role="tab" data-toggle="tab">
26
+                        <h4>Graduate Program Participation</h4>
27
+                    </a></li>
22
             </ul>
28
             </ul>
23
             <!-- Tab panes -->
29
             <!-- Tab panes -->
24
             <div class="tab-content">
30
             <div class="tab-content">
25
                 <div role="tabpanel" class="tab-pane active" id="undergraduate">
31
                 <div role="tabpanel" class="tab-pane active" id="undergraduate">
26
                     <table class="table table-striped table-condensed editable-table">
32
                     <table class="table table-striped table-condensed editable-table">
27
-                        <thead><tr class="center-text">
28
-                            <th class="col-md-4">Learning Outcome</th>
29
-                            <th class="col-md-7">Definition</th>
30
-                            <th class="col-md-1">Expected Value</th>
33
+                        <thead>
34
+                            <tr class="center-text">
35
+                                <th class="col-md-4">Learning Outcome</th>
36
+                                <th class="col-md-7">Definition</th>
37
+                                <th class="col-md-1">Expected Value</th>
31
 
38
 
32
                         </thead>
39
                         </thead>
33
                         <tbody>
40
                         <tbody>
34
-                        @foreach ($outcomes as $outcome)
35
-                            <tr data-id="{{ $outcome->id }}">
36
-                                <td contenteditable="true" class="name col-md-4" >{{ $outcome->name }}</td>
37
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ $outcome->definition }}</td>
38
-                                <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
39
-                            </tr>
40
-                        @endforeach
41
+                            @foreach ($outcomes as $outcome)
42
+                                <tr data-id="{{ $outcome->id }}">
43
+                                    <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
44
+                                    <td contenteditable="true" data-type="textarea" class="definition col-md-6">
45
+                                        {{ $outcome->definition }}</td>
46
+                                    <td contenteditable="true" class="expected-outcome col-md-1">
47
+                                        {{ $outcome->expected_outcome }}</td>
48
+                                </tr>
49
+                            @endforeach
41
                         </tbody>
50
                         </tbody>
42
                     </table>
51
                     </table>
43
                 </div>
52
                 </div>
44
                 <div role="tabpanel" class="tab-pane" id="graduate">
53
                 <div role="tabpanel" class="tab-pane" id="graduate">
45
                     <table class="table table-striped table-condensed editable-table">
54
                     <table class="table table-striped table-condensed editable-table">
46
-                        <thead><tr class="center-text">
47
-                            <th class="col-md-4">Learning Outcome</th>
48
-                            <th class="col-md-7">Definition</th>
49
-                            <th class="col-md-1">Expected Value</th>
55
+                        <thead>
56
+                            <tr class="center-text">
57
+                                <th class="col-md-4">Learning Outcome</th>
58
+                                <th class="col-md-7">Definition</th>
59
+                                <th class="col-md-1">Expected Value</th>
50
 
60
 
51
                         </thead>
61
                         </thead>
52
                         <tbody>
62
                         <tbody>
53
-                        @foreach ($outcomes as $outcome)
54
-                            <tr data-id="{{ $outcome->id }}">
55
-                                <td contenteditable="true" class="name col-md-4" >{{ $outcome->name }}</td>
56
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ $outcome->definition }}</td>
57
-                                <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
58
-                            </tr>
59
-                        @endforeach
63
+                            @foreach ($outcomes as $outcome)
64
+                                <tr data-id="{{ $outcome->id }}">
65
+                                    <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
66
+                                    <td contenteditable="true" data-type="textarea" class="definition col-md-6">
67
+                                        {{ $outcome->definition }}</td>
68
+                                    <td contenteditable="true" class="expected-outcome col-md-1">
69
+                                        {{ $outcome->expected_outcome }}</td>
70
+                                </tr>
71
+                            @endforeach
60
                         </tbody>
72
                         </tbody>
61
                     </table>
73
                     </table>
62
                 </div>
74
                 </div>
70
 
82
 
71
 @section('javascript')
83
 @section('javascript')
72
 
84
 
73
-        $('button').on('click', function(e)
74
-        {
75
-            e.preventDefault();
76
-
77
-            var outcomeArray= new Array();
78
-
79
-            // For each learning outcome, get its value and put it into an array
80
-            $('tbody tr').each(function( index )
81
-            {
82
-                var outcomeObject = new Object();
83
-
84
-                outcomeObject.id= $(this).data('id');
85
-                outcomeObject.name= $(this).children('.name').text();
86
-                outcomeObject.definition= $(this).children('.definition').text();
87
-                outcomeObject.expected_outcome= $(this).children('.expected-outcome').text();
88
-
89
-                if($(this).find('.glyphicon-eye-close').length>0)
90
-                {
91
-                    outcomeObject.delete=1;
92
-                }
93
-
94
-                else
95
-                    outcomeObject.delete=0;
96
-
97
-                var clone = jQuery.extend({}, outcomeObject);
98
-                outcomeArray.push(clone);
99
-            });
100
-
101
-            $.post(
102
-                "{{ URL::action('OutcomesController@update') }}",
103
-                { outcomeArray: JSON.stringify(outcomeArray)},
104
-                function(data)
105
-                {
106
-                    location.reload();
107
-                }
108
-            );
109
-        });
110
-
111
-        $('span').on('click', function()
112
-        {
113
-            if($(this).hasClass('glyphicon-eye-open'))
114
-                $(this).removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close');
115
-            else
116
-                $(this).removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open');
117
-
118
-        });
85
+    $('button').on('click', function(e)
86
+    {
87
+    e.preventDefault();
88
+
89
+    var outcomeArray= new Array();
90
+
91
+    // For each learning outcome, get its value and put it into an array
92
+    $('tbody tr').each(function( index )
93
+    {
94
+    var outcomeObject = new Object();
95
+
96
+    outcomeObject.id= $(this).data('id');
97
+    outcomeObject.name= $(this).children('.name').text();
98
+    outcomeObject.definition= $(this).children('.definition').text();
99
+    outcomeObject.expected_outcome= $(this).children('.expected-outcome').text();
100
+
101
+    if($(this).find('.glyphicon-eye-close').length>0)
102
+    {
103
+    outcomeObject.delete=1;
104
+    }
105
+
106
+    else
107
+    outcomeObject.delete=0;
108
+
109
+    var clone = jQuery.extend({}, outcomeObject);
110
+    outcomeArray.push(clone);
111
+    });
112
+
113
+    $.post(
114
+    "{{ URL::action('OutcomesController@update') }}",
115
+    { outcomeArray: JSON.stringify(outcomeArray)},
116
+    function(data)
117
+    {
118
+    location.reload();
119
+    }
120
+    );
121
+    });
122
+
123
+    $('span').on('click', function()
124
+    {
125
+    if($(this).hasClass('glyphicon-eye-open'))
126
+    $(this).removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close');
127
+    else
128
+    $(this).removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open');
129
+
130
+    });
119
 @stop
131
 @stop

+ 149
- 138
app/views/local/managers/admins/learning-outcomes.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
14
 
14
 
15
     <div class="row">
15
     <div class="row">
16
         <div class="col-md-12">
16
         <div class="col-md-12">
17
-            <p>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.</p>
17
+            <p>Click on the values you want to change. Invalid values will be rejected automatically. To save your changes,
18
+                click the 'Save' button at the bottom of the page.</p>
18
             <table class="table table-striped table-condensed editable-table" id='outcomes_table'>
19
             <table class="table table-striped table-condensed editable-table" id='outcomes_table'>
19
-                <thead><tr class="center-text">
20
-                    <th class="col-md-4">Learning Outcome</th>
21
-                    <th class="col-md-7">Definition</th>
22
-                    <th class="col-md-1">Expected Value</th>
23
-                    <th class="col-md-2">Activation date</th>
24
-                    <th class="col-md-2">Deactivation date</th>
25
-                    <th class="col-md-1">Level</th>
20
+                <thead>
21
+                    <tr class="center-text">
22
+                        <th class="col-md-4">Learning Outcome</th>
23
+                        <th class="col-md-7">Definition</th>
24
+                        <th class="col-md-1">Expected Value</th>
25
+                        <th class="col-md-2">Activation date</th>
26
+                        <th class="col-md-2">Deactivation date</th>
27
+                        <th class="col-md-1">Level</th>
26
 
28
 
27
                 </thead>
29
                 </thead>
28
                 <tbody>
30
                 <tbody>
29
-                  @foreach ($outcomes as $outcome)
30
-                    {{-- @foreach ($semesters as $semester) --}}
31
-                      {{-- display an outcome only if it is part of a currently selected semester --}}
32
-                      @if ((($outcome->deactivation_date == '0000-00-00') or ($outcome->deactivation_date == ''))
33
-                            // and ($outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end)
34
-                            )
31
+                    @foreach ($outcomes as $outcome)
32
+                        {{-- @foreach ($semesters as $semester) --}}
33
+                        {{-- 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))
35
                             <tr data-id="{{ $outcome->id }}">
36
                             <tr data-id="{{ $outcome->id }}">
36
-                                <td contenteditable="true" class="name col-md-4" >{{ $outcome->name }}</td>
37
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ $outcome->definition }}</td>
38
-                                <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
39
-                                <td contenteditable="true" class="activation-date col-md-2" >{{ $outcome->activation_date }}</td>
40
-                                <td contenteditable="true" class="deactivation-date col-md-2" >{{ $outcome->deactivation_date }}</td>
41
-                                <td contenteditable="true" class="level col-md-1" >{{ $outcome->level }}</td>
37
+                                <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>
46
+                                <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
42
                             </tr>
47
                             </tr>
43
-                      @endif
44
-                    {{-- @endforeach --}}
45
-                  @endforeach
46
-                  @foreach ($outcomes as $outcome)
47
-                    {{-- @foreach ($semesters as $semester) --}}
48
-                      {{-- display an outcome only if it is part of a currently selected semester --}}
49
-                      @if ((($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != ''))
50
-                            // and ($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != '')
51
-                            )
48
+                        @endif
49
+                        {{-- @endforeach --}}
50
+                    @endforeach
51
+                    @foreach ($outcomes as $outcome)
52
+                        {{-- @foreach ($semesters as $semester) --}}
53
+                        {{-- 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 != ''))
52
                             <tr data-id="{{ $outcome->id }}">
56
                             <tr data-id="{{ $outcome->id }}">
53
-                                <td contenteditable="true" class="name col-md-4" >{{ $outcome->name }}</td>
54
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ $outcome->definition }}</td>
55
-                                <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
56
-                                <td contenteditable="true" class="activation-date col-md-2" >{{ $outcome->activation_date }}</td>
57
-                                <td contenteditable="true" class="deactivation-date col-md-2" >{{ $outcome->deactivation_date }}</td>
58
-                                <td contenteditable="true" class="level col-md-1" >{{ $outcome->level }}</td>
57
+                                <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>
66
+                                <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
59
                             </tr>
67
                             </tr>
60
-                      @endif
61
-                    {{-- @endforeach --}}
62
-                  @endforeach
68
+                        @endif
69
+                        {{-- @endforeach --}}
70
+                    @endforeach
63
                 </tbody>
71
                 </tbody>
64
             </table>
72
             </table>
65
         </div>
73
         </div>
66
     </div>
74
     </div>
67
     <div class="row">
75
     <div class="row">
68
-      <div class="col-md-6"><button class="btn btn-lg btn-secondary center-block" id='show'>New Outcome</button></div>
69
-      <div class="col-md-6"><button class="btn btn-lg btn-primary center-block" id='save'>Save</button></div>
76
+        <div class="col-md-6"><button class="btn btn-lg btn-secondary center-block" id='show'>New Outcome</button>
77
+        </div>
78
+        <div class="col-md-6"><button class="btn btn-lg btn-primary center-block" id='save'>Save</button></div>
70
     </div>
79
     </div>
71
 
80
 
72
-  <div class="" id='new_outcome_form'>
73
-    <h2>Add a new Learning Outcomes</h2>
74
-    {{-- For for adding a new outcome --}}
75
-    {{ Form::open(array('action' => 'OutcomesController@create')) }}
76
-      <div class="form-group">
77
-          {{ Form::label('name', 'Name') }}
78
-          {{ Form::text('name', '', array('class' => 'form-control', 'id'=>'outcome_name')) }}
79
-      </div>
80
-      <div class="form-group">
81
-          {{ Form::label('definition', 'Definition') }}
82
-          {{ Form::textarea('definition', 'At least 10 characters long', array('class' => 'form-control', 'id'=>'outcome_definition')) }}
83
-      </div>
84
-      Due to technical limitationss, the following must be edited after adding the new Outcome:
85
-      {{-- the technical limitation is: the Outcome Model has to be edited --}}
86
-      <ul>
87
-       <li>Expected Outcome</li>
88
-       <li>Activation Date</li>
89
-       <li>Deactivation Date</li>
90
-       <li>Level</li>
91
-      </ul>
92
-
93
-      <div class="row">
94
-        <div class="col-md-6"><button type="reset" class="btn btn-lg btn-secondary center-block" id='hide'>Hide Form</button></div>
95
-        <div class="col-md-6"><button type="submit" class="btn btn-lg btn-primary center-block">Submit New Outcome</button></div>
96
-      </div>
97
-      {{ Form::close() }}
98
-
99
-    <hr>
100
-  </div>
81
+    <div class="" id='new_outcome_form'>
82
+        <h2>Add a new Learning Outcomes</h2>
83
+        {{-- For for adding a new outcome --}}
84
+        {{ Form::open(['action' => 'OutcomesController@create']) }}
85
+        <div class="form-group">
86
+            {{ Form::label('name', 'Name') }}
87
+            {{ Form::text('name', '', ['class' => 'form-control', 'id' => 'outcome_name']) }}
88
+        </div>
89
+        <div class="form-group">
90
+            {{ Form::label('definition', 'Definition') }}
91
+            {{ Form::textarea('definition', 'At least 10 characters long', ['class' => 'form-control', 'id' => 'outcome_definition']) }}
92
+        </div>
93
+        Due to technical limitationss, the following must be edited after adding the new Outcome:
94
+        {{-- the technical limitation is: the Outcome Model has to be edited --}}
95
+        <ul>
96
+            <li>Expected Outcome</li>
97
+            <li>Activation Date</li>
98
+            <li>Deactivation Date</li>
99
+            <li>Level</li>
100
+        </ul>
101
+
102
+        <div class="row">
103
+            <div class="col-md-6"><button type="reset" class="btn btn-lg btn-secondary center-block" id='hide'>Hide
104
+                    Form</button></div>
105
+            <div class="col-md-6"><button type="submit" class="btn btn-lg btn-primary center-block">Submit New
106
+                    Outcome</button></div>
107
+        </div>
108
+        {{ Form::close() }}
109
+
110
+        <hr>
111
+    </div>
101
 @stop
112
 @stop
102
 
113
 
103
 @section('javascript')
114
 @section('javascript')
104
 
115
 
105
-        $('#new_outcome_form').hide();
106
-
107
-        //show form
108
-        $('#show').on('click', function(e)
109
-        {
110
-          $('#new_outcome_form').show();
111
-          $('#show').hide();
112
-        });
113
-
114
-        //hide form
115
-        $('#hide').on('click', function(e)
116
-        {
117
-          $('#new_outcome_form').hide();
118
-          $('#show').show();
119
-        });
120
-
121
-        $('#save').on('click', function(e)
122
-        {
123
-            e.preventDefault();
124
-
125
-            var outcomeArray= new Array();
126
-
127
-            // For each learning outcome, get its value and put it into an array
128
-            $('tbody tr').each(function( index )
129
-            {
130
-                var outcomeObject = new Object();
131
-
132
-                outcomeObject.id= $(this).data('id');
133
-                outcomeObject.name= $(this).children('.name').text();
134
-                outcomeObject.definition= $(this).children('.definition').text();
135
-                outcomeObject.expected_outcome= $(this).children('.expected-outcome').text();
136
-                outcomeObject.activation_date= $(this).children('.activation-date').text();
137
-                outcomeObject.deactivation_date= $(this).children('.deactivation-date').text();
138
-                outcomeObject.level= $(this).children('.level').text();
139
-
140
-                if($(this).find('.glyphicon-eye-close').length>0)
141
-                {
142
-                    outcomeObject.delete=1;
143
-                }
144
-
145
-                else
146
-                    outcomeObject.delete=0;
147
-
148
-                var clone = jQuery.extend({}, outcomeObject);
149
-                outcomeArray.push(clone);
150
-            });
151
-
152
-            $.post(
153
-                "{{ URL::action('OutcomesController@updateMore') }}",
154
-                { outcomeArray: JSON.stringify(outcomeArray)},
155
-                function(data)
156
-                {
157
-                    location.reload();
158
-                }
159
-            );
160
-        });
161
-
162
-        $('span').on('click', function()
163
-        {
164
-            if($(this).hasClass('glyphicon-eye-open'))
165
-                $(this).removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close');
166
-            else
167
-                $(this).removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open');
168
-
169
-        });
116
+    $('#new_outcome_form').hide();
117
+
118
+    //show form
119
+    $('#show').on('click', function(e)
120
+    {
121
+    $('#new_outcome_form').show();
122
+    $('#show').hide();
123
+    });
124
+
125
+    //hide form
126
+    $('#hide').on('click', function(e)
127
+    {
128
+    $('#new_outcome_form').hide();
129
+    $('#show').show();
130
+    });
131
+
132
+    $('#save').on('click', function(e)
133
+    {
134
+    e.preventDefault();
135
+
136
+    var outcomeArray= new Array();
137
+
138
+    // For each learning outcome, get its value and put it into an array
139
+    $('tbody tr').each(function( index )
140
+    {
141
+    var outcomeObject = new Object();
142
+
143
+    outcomeObject.id= $(this).data('id');
144
+    outcomeObject.name= $(this).children('.name').text();
145
+    outcomeObject.definition= $(this).children('.definition').text();
146
+    outcomeObject.expected_outcome= $(this).children('.expected-outcome').text();
147
+    outcomeObject.activation_date= $(this).children('.activation-date').text();
148
+    outcomeObject.deactivation_date= $(this).children('.deactivation-date').text();
149
+    outcomeObject.level= $(this).children('.level').text();
150
+
151
+    if($(this).find('.glyphicon-eye-close').length>0)
152
+    {
153
+    outcomeObject.delete=1;
154
+    }
155
+
156
+    else
157
+    outcomeObject.delete=0;
158
+
159
+    var clone = jQuery.extend({}, outcomeObject);
160
+    outcomeArray.push(clone);
161
+    });
162
+
163
+    $.post(
164
+    "{{ URL::action('OutcomesController@updateMore') }}",
165
+    { outcomeArray: JSON.stringify(outcomeArray)},
166
+    function(data)
167
+    {
168
+    location.reload();
169
+    }
170
+    );
171
+    });
172
+
173
+    $('span').on('click', function()
174
+    {
175
+    if($(this).hasClass('glyphicon-eye-open'))
176
+    $(this).removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close');
177
+    else
178
+    $(this).removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open');
179
+
180
+    });
170
 @stop
181
 @stop

+ 57
- 53
app/views/local/managers/admins/learning-outcomes_new.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
14
 
14
 
15
     <div class="row">
15
     <div class="row">
16
         <div class="col-md-12">
16
         <div class="col-md-12">
17
-            <p>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.</p>
17
+            <p>Click on the values you want to change. Invalid values will be rejected automatically. To save your changes,
18
+                click the 'Save' button at the bottom of the page.</p>
18
             <table class="table table-striped table-condensed editable-table">
19
             <table class="table table-striped table-condensed editable-table">
19
-                <thead><tr class="center-text">
20
-                    <th class="col-md-4">Learning Outcome</th>
21
-                    <th class="col-md-7">Definition</th>
22
-                    <th class="col-md-1">Expected Value</th>
20
+                <thead>
21
+                    <tr class="center-text">
22
+                        <th class="col-md-4">Learning Outcome</th>
23
+                        <th class="col-md-7">Definition</th>
24
+                        <th class="col-md-1">Expected Value</th>
23
 
25
 
24
                 </thead>
26
                 </thead>
25
                 <tbody>
27
                 <tbody>
26
-                @foreach ($outcomes as $outcome)
27
-                    <tr data-id="{{ $outcome->id }}">
28
-                        <td contenteditable="true" class="name col-md-4" >{{ $outcome->name }}</td>
29
-                        <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ $outcome->definition }}</td>
30
-                        <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
31
-                    </tr>
32
-                @endforeach
28
+                    @foreach ($outcomes as $outcome)
29
+                        <tr data-id="{{ $outcome->id }}">
30
+                            <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
31
+                            <td contenteditable="true" data-type="textarea" class="definition col-md-6">
32
+                                {{ $outcome->definition }}</td>
33
+                            <td contenteditable="true" class="expected-outcome col-md-1">{{ $outcome->expected_outcome }}
34
+                            </td>
35
+                        </tr>
36
+                    @endforeach
33
                 </tbody>
37
                 </tbody>
34
             </table>
38
             </table>
35
         </div>
39
         </div>
41
 
45
 
42
 @section('javascript')
46
 @section('javascript')
43
 
47
 
44
-        $('button').on('click', function(e)
45
-        {
46
-            e.preventDefault();
48
+    $('button').on('click', function(e)
49
+    {
50
+    e.preventDefault();
47
 
51
 
48
-            var outcomeArray= new Array();
52
+    var outcomeArray= new Array();
49
 
53
 
50
-            // For each learning outcome, get its value and put it into an array
51
-            $('tbody tr').each(function( index )
52
-            {
53
-                var outcomeObject = new Object();
54
+    // For each learning outcome, get its value and put it into an array
55
+    $('tbody tr').each(function( index )
56
+    {
57
+    var outcomeObject = new Object();
54
 
58
 
55
-                outcomeObject.id= $(this).data('id');
56
-                outcomeObject.name= $(this).children('.name').text();
57
-                outcomeObject.definition= $(this).children('.definition').text();
58
-                outcomeObject.expected_outcome= $(this).children('.expected-outcome').text();
59
+    outcomeObject.id= $(this).data('id');
60
+    outcomeObject.name= $(this).children('.name').text();
61
+    outcomeObject.definition= $(this).children('.definition').text();
62
+    outcomeObject.expected_outcome= $(this).children('.expected-outcome').text();
59
 
63
 
60
-                if($(this).find('.glyphicon-eye-close').length>0)
61
-                {
62
-                    outcomeObject.delete=1;
63
-                }
64
+    if($(this).find('.glyphicon-eye-close').length>0)
65
+    {
66
+    outcomeObject.delete=1;
67
+    }
64
 
68
 
65
-                else
66
-                    outcomeObject.delete=0;
69
+    else
70
+    outcomeObject.delete=0;
67
 
71
 
68
-                var clone = jQuery.extend({}, outcomeObject);
69
-                outcomeArray.push(clone);
70
-            });
72
+    var clone = jQuery.extend({}, outcomeObject);
73
+    outcomeArray.push(clone);
74
+    });
71
 
75
 
72
-            $.post(
73
-                "{{ URL::action('OutcomesController@update') }}",
74
-                { outcomeArray: JSON.stringify(outcomeArray)},
75
-                function(data)
76
-                {
77
-                    location.reload();
78
-                }
79
-            );
80
-        });
76
+    $.post(
77
+    "{{ URL::action('OutcomesController@update') }}",
78
+    { outcomeArray: JSON.stringify(outcomeArray)},
79
+    function(data)
80
+    {
81
+    location.reload();
82
+    }
83
+    );
84
+    });
81
 
85
 
82
-        $('span').on('click', function()
83
-        {
84
-            if($(this).hasClass('glyphicon-eye-open'))
85
-                $(this).removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close');
86
-            else
87
-                $(this).removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open');
86
+    $('span').on('click', function()
87
+    {
88
+    if($(this).hasClass('glyphicon-eye-open'))
89
+    $(this).removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close');
90
+    else
91
+    $(this).removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open');
88
 
92
 
89
-        });
93
+    });
90
 @stop
94
 @stop

+ 43
- 40
app/views/local/managers/admins/new-activity-create.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @include('local.managers.admins._navigation')
4
+    @include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 @section('main')
6
 @section('main')
7
 
7
 
8
     <!-- New Rubric Modal -->
8
     <!-- New Rubric Modal -->
9
-    <div class="modal fade" id="newRubricModal" tabindex="-1" role="dialog" aria-labelledby="newRubricModalLabel" aria-hidden="true">
9
+    <div class="modal fade" id="newRubricModal" tabindex="-1" role="dialog" aria-labelledby="newRubricModalLabel"
10
+        aria-hidden="true">
10
         <div class="modal-dialog modal-sm">
11
         <div class="modal-dialog modal-sm">
11
             <div class="modal-content">
12
             <div class="modal-content">
12
                 <div class="modal-header">
13
                 <div class="modal-header">
13
-                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
14
+                    <button type="button" class="close" data-dismiss="modal"><span
15
+                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
14
                     <h4 class="modal-title" id="newRubricModalLabel">New Instrument</h4>
16
                     <h4 class="modal-title" id="newRubricModalLabel">New Instrument</h4>
15
                 </div>
17
                 </div>
16
                 <div class="modal-body">
18
                 <div class="modal-body">
17
-                    {{ Form::open(array('action' => array('RubricsController@create'))) }}
19
+                    {{ Form::open(['action' => ['RubricsController@create']]) }}
18
                     <div class="form-group">
20
                     <div class="form-group">
19
                         {{ Form::label('name', 'Name') }}
21
                         {{ Form::label('name', 'Name') }}
20
-                        {{ Form::text('name', Input::old('name'), array('class' => 'form-control')) }}
22
+                        {{ Form::text('name', Input::old('name'), ['class' => 'form-control']) }}
21
                     </div>
23
                     </div>
22
                     <div class="form-group">
24
                     <div class="form-group">
23
                         {{ Form::label('criteria', 'Criteria') }}
25
                         {{ Form::label('criteria', 'Criteria') }}
24
                         <select id="criteria" name="criteria" class="form-control" multiple required>
26
                         <select id="criteria" name="criteria" class="form-control" multiple required>
25
                         </select>
27
                         </select>
26
-                        {{ Form::textarea('criteria', Input::old('description'), array('class' => 'form-control', 'rows'=> 5, 'placeholder'=>'Minimum 10 characters')) }}
28
+                        {{ Form::textarea('criteria', Input::old('description'), ['class' => 'form-control', 'rows' => 5, 'placeholder' => 'Minimum 10 characters']) }}
27
                     </div>
29
                     </div>
28
                     <div class="btn-group" role="group">
30
                     <div class="btn-group" role="group">
29
                         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
31
                         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
42
                     Create new activity
44
                     Create new activity
43
                 </div>
45
                 </div>
44
                 <div class="panel-body">
46
                 <div class="panel-body">
45
-                    {{ Form::open(array('action' => 'ActivitiesController@update')) }}
47
+                    {{ Form::open(['action' => 'ActivitiesController@update']) }}
46
                     <div class="form-group">
48
                     <div class="form-group">
47
                         {{ Form::label('activity_type', 'Activity Type') }}
49
                         {{ Form::label('activity_type', 'Activity Type') }}
48
                         <select id="activity_type" name="activity_type" class="form-control">
50
                         <select id="activity_type" name="activity_type" class="form-control">
49
                             @foreach ($activity_types as $activity_type)
51
                             @foreach ($activity_types as $activity_type)
50
-{{--                                @if(Input::old('activity_type')!=$activity_type)--}}
51
-{{--                                    <option value="{{ $activity_type }}">{{ $activity_type }} ({{ $program->school->name }})</option>--}}
52
-{{--                                @else--}}
53
-{{--                                    <option selected value="{{ $program->id }}">{{ $program->name }} ({{ $program->school->name }})</option>--}}
54
-{{--                                @endif--}}
52
+                                {{-- @if (Input::old('activity_type') != $activity_type) --}}
53
+                                {{-- <option value="{{ $activity_type }}">{{ $activity_type }} ({{ $program->school->name }})</option> --}}
54
+                                {{-- @else --}}
55
+                                {{-- <option selected value="{{ $program->id }}">{{ $program->name }} ({{ $program->school->name }})</option> --}}
56
+                                {{-- @endif --}}
55
                             @endforeach
57
                             @endforeach
56
                         </select>
58
                         </select>
57
-{{--                        {{ Form::text('activity_type', Input::old('activity_Type'), array('class' => 'form-control', 'placeholder'=>'TEST', 'maxLength'=>5)) }}--}}
59
+                        {{-- {{ Form::text('activity_type', Input::old('activity_Type'), array('class' => 'form-control', 'placeholder'=>'TEST', 'maxLength'=>5)) }} --}}
58
                     </div>
60
                     </div>
59
-                    
61
+
60
 
62
 
61
                     <div class="form-group">
63
                     <div class="form-group">
62
                         {{ Form::label('outcome', 'Learning Outcome') }}
64
                         {{ Form::label('outcome', 'Learning Outcome') }}
63
                         <select id="outcome" name="outcome" class="form-control">
65
                         <select id="outcome" name="outcome" class="form-control">
64
                             @foreach ($outcomes as $outcome)
66
                             @foreach ($outcomes as $outcome)
65
-                                @if(Input::old('outcome')!=$outcome->id)
67
+                                @if (Input::old('outcome') != $outcome->id)
66
                                     <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
68
                                     <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
67
                                 @else
69
                                 @else
68
                                     <option selected value="{{ $outcome->id }}">{{ $outcome->name }}</option>
70
                                     <option selected value="{{ $outcome->id }}">{{ $outcome->name }}</option>
73
                     <div class="form-group">
75
                     <div class="form-group">
74
                         {{ Form::label('objective', 'Learning Objective') }}
76
                         {{ Form::label('objective', 'Learning Objective') }}
75
                         <select id="objective" name="objective[]" class="form-control" multiple required>
77
                         <select id="objective" name="objective[]" class="form-control" multiple required>
76
-                            @if(Input::old('outcome')!=null)
78
+                            @if (Input::old('outcome') != null)
77
                                 @foreach ($objectives_by_outcome[Input::old('outcome')] as $objective)
79
                                 @foreach ($objectives_by_outcome[Input::old('outcome')] as $objective)
78
-                                    @if(Input::old('objective')!=$objective->id)
80
+                                    @if (Input::old('objective') != $objective->id)
79
                                         <option value="{{ $objective->id }}">{{ $objective->text }}</option>
81
                                         <option value="{{ $objective->id }}">{{ $objective->text }}</option>
80
                                     @else
82
                                     @else
81
                                         <option selected value="{{ $objective->id }}">{{ $objective->text }}</option>
83
                                         <option selected value="{{ $objective->id }}">{{ $objective->text }}</option>
92
                         {{ Form::label('instrument', 'Instrument') }}
94
                         {{ Form::label('instrument', 'Instrument') }}
93
                         <select id="instrument" name="instrument" class="form-control">
95
                         <select id="instrument" name="instrument" class="form-control">
94
                             @foreach ($instruments as $instrument)
96
                             @foreach ($instruments as $instrument)
95
-                                @if(Input::old('instrument')!=$instrument->id)
97
+                                @if (Input::old('instrument') != $instrument->id)
96
                                     <option value="{{ $instrument->id }}">{{ $instrument->name }}</option>
98
                                     <option value="{{ $instrument->id }}">{{ $instrument->name }}</option>
97
                                 @else
99
                                 @else
98
                                     <option selected value="{{ $instrument->id }}">{{ $instrument->name }}</option>
100
                                     <option selected value="{{ $instrument->id }}">{{ $instrument->name }}</option>
101
                         </select>
103
                         </select>
102
                     </div>
104
                     </div>
103
                     <div class="form-group">
105
                     <div class="form-group">
104
-                        <button type="button" data-toggle="modal" data-target="#newRubricModal" class="btn btn-sm btn-default">New Instrument</button>
106
+                        <button type="button" data-toggle="modal" data-target="#newRubricModal"
107
+                            class="btn btn-sm btn-default">New Instrument</button>
105
                     </div>
108
                     </div>
106
                     <div class="form-group">
109
                     <div class="form-group">
107
                         {{ Form::label('transforming_action', 'Transformative Actions') }}
110
                         {{ Form::label('transforming_action', 'Transformative Actions') }}
108
                         <select id="transforming_action" name="transforming_action[]" class="form-control" multiple>
111
                         <select id="transforming_action" name="transforming_action[]" class="form-control" multiple>
109
                             @foreach ($transforming_actions as $transforming_action)
112
                             @foreach ($transforming_actions as $transforming_action)
110
-{{--                                @if(Input::old('transforming_action')!=$transforming_action->id)--}}
111
-{{--                                    <option value="{{ $transforming_action->id }}">{{ $transforming_action->name }}</option>--}}
112
-{{--                                @else--}}
113
-{{--                                    <option selected value="{{ $transforming_action->id }}">{{ $transforming_action->name }}</option>--}}
114
-{{--                                @endif--}}
113
+                                {{-- @if (Input::old('transforming_action') != $transforming_action->id) --}}
114
+                                {{-- <option value="{{ $transforming_action->id }}">{{ $transforming_action->name }}</option> --}}
115
+                                {{-- @else --}}
116
+                                {{-- <option selected value="{{ $transforming_action->id }}">{{ $transforming_action->name }}</option> --}}
117
+                                {{-- @endif --}}
115
                             @endforeach
118
                             @endforeach
116
                         </select>
119
                         </select>
117
                     </div>
120
                     </div>
118
 
121
 
119
                     <br>
122
                     <br>
120
 
123
 
121
-                    {{ Form::submit('Submit', array('class' => 'btn btn-primary btn-block', 'name'=>'create_activity')) }}
124
+                    {{ Form::submit('Submit', ['class' => 'btn btn-primary btn-block', 'name' => 'create_activity']) }}
122
                     {{ Form::close() }}
125
                     {{ Form::close() }}
123
                 </div>
126
                 </div>
124
             </div>
127
             </div>
147
     // Events
150
     // Events
148
     // --------------------------------------------------------------------------
151
     // --------------------------------------------------------------------------
149
     outcomesSelect.addEventListener('change', (event) => {
152
     outcomesSelect.addEventListener('change', (event) => {
150
-        var objectivesSelectOptions = [];
151
-        objectives[event.target.value].forEach((objective) => {
152
-            objectivesSelectOptions.push(`<option value="${objective.id}">${objective.text}</option>`);
153
-        });
154
-        objectivesSelect.innerHTML = objectivesSelectOptions.join();
153
+    var objectivesSelectOptions = [];
154
+    objectives[event.target.value].forEach((objective) => {
155
+    objectivesSelectOptions.push(`<option value="${objective.id}">${objective.text}</option>`);
156
+    });
157
+    objectivesSelect.innerHTML = objectivesSelectOptions.join();
155
     });
158
     });
156
 
159
 
157
     objectivesSelect.addEventListener('change', (event) => {
160
     objectivesSelect.addEventListener('change', (event) => {
158
-        var criteriaSelectOptions = [];
159
-        var selectedObjectives = Array.from(objectivesSelect.selectedOptions).map(v => value);
160
-        selectedObjectives.forEach((objectiveId) => {
161
-            criteria[objectiveId].forEach((criteriaArray) => {
162
-                criteriaArray.forEach((criteria) => {
163
-                    criteriaSelectOptions.push(`<option value="${criteria.id}">${criteria.name}</option>`);
164
-                });
165
-            });
166
-        });
167
-        criteriaSelect.innerHTML = criteriaSelectOptions.join();
161
+    var criteriaSelectOptions = [];
162
+    var selectedObjectives = Array.from(objectivesSelect.selectedOptions).map(v => value);
163
+    selectedObjectives.forEach((objectiveId) => {
164
+    criteria[objectiveId].forEach((criteriaArray) => {
165
+    criteriaArray.forEach((criteria) => {
166
+    criteriaSelectOptions.push(`<option value="${criteria.id}">${criteria.name}</option>`);
167
+    });
168
+    });
169
+    });
170
+    criteriaSelect.innerHTML = criteriaSelectOptions.join();
168
     });
171
     });
169
 
172
 
170
 
173
 

+ 43
- 40
app/views/local/managers/admins/new-course-show.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @else
10
     @else
11
         @include('local.professors._navigation')
11
         @include('local.professors._navigation')
16
 
16
 
17
     <div class="row">
17
     <div class="row">
18
         <div class="col-md-12">
18
         <div class="col-md-12">
19
-            <p>{{$course->name}}</p>
19
+            <p>{{ $course->name }}</p>
20
         </div>
20
         </div>
21
     </div>
21
     </div>
22
 
22
 
25
         <div class="col-md-12">
25
         <div class="col-md-12">
26
             <h3>Activities</h3>
26
             <h3>Activities</h3>
27
 
27
 
28
-            @if(!$activities->isEmpty())
28
+            @if (!$activities->isEmpty())
29
 
29
 
30
                 @if ($is_active_semester)
30
                 @if ($is_active_semester)
31
-                    <a href="{{ URL::action('ActivitiesController@newCreate', ['course_id' => $course->id]) }}" class="btn btn-sm btn-default pull-right">New Activity</a>
31
+                    <a href="{{ URL::action('ActivitiesController@newCreate', ['course_id' => $course->id]) }}"
32
+                        class="btn btn-sm btn-default pull-right">New Activity</a>
32
                 @endif
33
                 @endif
33
 
34
 
34
                 <table class="table table-striped table-condensed">
35
                 <table class="table table-striped table-condensed">
35
                     <thead>
36
                     <thead>
36
-                    <tr>
37
-                        <th>Name</th>
38
-                        <th>Date</th>
39
-                        <th>Updated</th>
40
-                        <th>Assessed</th>
41
-                        <th>Published</th>
42
-                    </tr>
43
-                    </thead>
44
-                    <tbody>
45
-                    @foreach ($activities as $activity)
46
-                        <tr>
47
-                            <td>{{ link_to_action('ActivitiesController@show', $activity->name, $parameters = array('id'=>$activity->id)) }}</td>
48
-                            <td>{{ date('M d, Y', strtotime($activity->date)) }}</td>
49
-                            <td>{{ date('M d, Y', strtotime($activity->updated_at)) }}</td>
50
-                            <td>
51
-                                @if($activity->outcomes_attempted!=NULL)
52
-                                    <span class="glyphicon glyphicon-ok"></span>
53
-                                @endif
54
-                            </td>
55
-                            <td>
56
-                                @if($activity->outcomes_attempted!=NULL && !$activity->draft && !$activity->diagnostic)
57
-                                    <span class="glyphicon glyphicon-ok"></span>
58
-                                @endif
59
-                            </td>
60
-                        </tr>
61
-                    @endforeach
62
-
63
-                    @if (!$is_active_semester)
64
                         <tr>
37
                         <tr>
65
-                            <td colspan="3"><div class="alert alert-info">The semester for this course is inactive. You cannot create any more activities.</div></td>
38
+                            <th>Name</th>
39
+                            <th>Date</th>
40
+                            <th>Updated</th>
41
+                            <th>Assessed</th>
42
+                            <th>Published</th>
66
                         </tr>
43
                         </tr>
67
-                    @endif
44
+                    </thead>
45
+                    <tbody>
46
+                        @foreach ($activities as $activity)
47
+                            <tr>
48
+                                <td>{{ link_to_action('ActivitiesController@show', $activity->name, $parameters = ['id' => $activity->id]) }}
49
+                                </td>
50
+                                <td>{{ date('M d, Y', strtotime($activity->date)) }}</td>
51
+                                <td>{{ date('M d, Y', strtotime($activity->updated_at)) }}</td>
52
+                                <td>
53
+                                    @if ($activity->outcomes_attempted != null)
54
+                                        <span class="glyphicon glyphicon-ok"></span>
55
+                                    @endif
56
+                                </td>
57
+                                <td>
58
+                                    @if ($activity->outcomes_attempted != null && !$activity->draft && !$activity->diagnostic)
59
+                                        <span class="glyphicon glyphicon-ok"></span>
60
+                                    @endif
61
+                                </td>
62
+                            </tr>
63
+                        @endforeach
64
+
65
+                        @if (!$is_active_semester)
66
+                            <tr>
67
+                                <td colspan="3">
68
+                                    <div class="alert alert-info">The semester for this course is inactive. You cannot create
69
+                                        any more activities.</div>
70
+                                </td>
71
+                            </tr>
72
+                        @endif
68
                     </tbody>
73
                     </tbody>
69
                 </table>
74
                 </table>
70
 
75
 
71
                 <p>Unplublished activity results are <strong>not considered</strong> in the graph above.</p>
76
                 <p>Unplublished activity results are <strong>not considered</strong> in the graph above.</p>
72
-
73
             @else
77
             @else
74
                 <div class="alert alert-info">
78
                 <div class="alert alert-info">
75
-                    @if($is_active_semester)
79
+                    @if ($is_active_semester)
76
                         <p>
80
                         <p>
77
                             No activities.
81
                             No activities.
78
                             <a data-toggle="modal" data-target="#newActivityModal">
82
                             <a data-toggle="modal" data-target="#newActivityModal">
99
 
103
 
100
 
104
 
101
 @stop
105
 @stop
102
-

+ 10
- 9
app/views/local/managers/admins/new-learning-outcome.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
21
         </div>
21
         </div>
22
     </div>
22
     </div>
23
     <div class="row">
23
     <div class="row">
24
-        @foreach($courses as $course)
24
+        @foreach ($courses as $course)
25
             <div class="col-md-2">
25
             <div class="col-md-2">
26
-{{--                TODO: Add href --}}
27
-                <a href="{{ URL::action('CoursesController@newShow', ['id' => $course->id]) }}" style="text-decoration: none">
26
+                {{-- TODO: Add href --}}
27
+                <a href="{{ URL::action('CoursesController@newShow', ['id' => $course->id]) }}"
28
+                    style="text-decoration: none">
28
                     <div class="panel panel-default" style="height: 10rem">
29
                     <div class="panel panel-default" style="height: 10rem">
29
                         <div class="panel-heading">
30
                         <div class="panel-heading">
30
                             <h5 class="panel-title">{{ $course->code }}</h5>
31
                             <h5 class="panel-title">{{ $course->code }}</h5>
43
         </div>
44
         </div>
44
     </div>
45
     </div>
45
     <div class="row">
46
     <div class="row">
46
-        @foreach($activities as $activity)
47
+        @foreach ($activities as $activity)
47
             <div class="col-md-2">
48
             <div class="col-md-2">
48
-                {{--                TODO: Add href --}}
49
+                {{-- TODO: Add href --}}
49
                 <a href="" style="text-decoration: none">
50
                 <a href="" style="text-decoration: none">
50
                     <div class="panel panel-default" style="height: 10rem">
51
                     <div class="panel panel-default" style="height: 10rem">
51
                         <div class="panel-heading">
52
                         <div class="panel-heading">

+ 10
- 8
app/views/local/managers/admins/new-learning-outcomes.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
14
 
14
 
15
     <div class="row">
15
     <div class="row">
16
         <div class="col-md-6">
16
         <div class="col-md-6">
17
-            <a href="{{ URL::action('OutcomesController@newShow', ['id' => 'all']) }}" class="btn btn-lg btn-default">Show courses and activities for all domains</a>
17
+            <a href="{{ URL::action('OutcomesController@newShow', ['id' => 'all']) }}" class="btn btn-lg btn-default">Show
18
+                courses and activities for all domains</a>
18
         </div>
19
         </div>
19
     </div>
20
     </div>
20
     <br>
21
     <br>
21
     <div class="row">
22
     <div class="row">
22
         <div class="col-md-12">
23
         <div class="col-md-12">
23
-            @foreach($outcomes as $outcome)
24
+            @foreach ($outcomes as $outcome)
24
                 <div class="col-md-3">
25
                 <div class="col-md-3">
25
-                    <a href="{{ URL::action('OutcomesController@newShow', ['id' => $outcome->id]) }}" style="text-decoration: none">
26
+                    <a href="{{ URL::action('OutcomesController@newShow', ['id' => $outcome->id]) }}"
27
+                        style="text-decoration: none">
26
                         <div class="panel panel-default" style="height: 20rem">
28
                         <div class="panel panel-default" style="height: 20rem">
27
                             <div class="panel-heading">
29
                             <div class="panel-heading">
28
                                 <h5 class="panel-title">{{ $outcome->name }}</h5>
30
                                 <h5 class="panel-title">{{ $outcome->name }}</h5>
40
 @stop
42
 @stop
41
 
43
 
42
 @section('included-js')
44
 @section('included-js')
43
-{{--    @include('global._datatables_js')--}}
45
+    {{-- @include('global._datatables_js') --}}
44
 @stop
46
 @stop
45
 
47
 
46
 @section('javascript')
48
 @section('javascript')

+ 25
- 21
app/views/local/managers/admins/new-report-all.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
14
     <div class="row">
14
     <div class="row">
15
         <div class="col-md-12">
15
         <div class="col-md-12">
16
             <table class="table table-striped table-condensed editable-table">
16
             <table class="table table-striped table-condensed editable-table">
17
-                <thead><tr class="center-text">
18
-                    <th class="col-md-2">Outcomes</th>
19
-                    <th class="col-md-4">Learning Objectives</th>
20
-                    <th class="col-md-4">Transformative Actions</th>
21
-                    <th class="col-md-2">Expected Metric</th>
17
+                <thead>
18
+                    <tr class="center-text">
19
+                        <th class="col-md-2">Outcomes</th>
20
+                        <th class="col-md-4">Learning Objectives</th>
21
+                        <th class="col-md-4">Transformative Actions</th>
22
+                        <th class="col-md-2">Expected Metric</th>
22
                 </thead>
23
                 </thead>
23
                 <tbody>
24
                 <tbody>
24
-                @foreach ($outcomes as $outcome)
25
-                    @foreach ($outcome->objectives as $i => $objective)
26
-                        <tr data-id="{{$outcome->id}}">
27
-                            @if ($i == 0)
28
-                                <td contenteditable="true" class="name col-md-2" rowspan="{{ $outcome->objectives->count() }}">{{ $outcome->name }}</td>
29
-                            @endif
30
-                            <td contenteditable="true" class="name col-md-4" >{{ $objective->text }}</td>
31
-{{--                             TODO: Use correct data--}}
32
-                            <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ 'TODO' }}</td>
33
-                            <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
34
-                        </tr>
25
+                    @foreach ($outcomes as $outcome)
26
+                        @foreach ($outcome->objectives as $i => $objective)
27
+                            <tr data-id="{{ $outcome->id }}">
28
+                                @if ($i == 0)
29
+                                    <td contenteditable="true" class="name col-md-2"
30
+                                        rowspan="{{ $outcome->objectives->count() }}">{{ $outcome->name }}</td>
31
+                                @endif
32
+                                <td contenteditable="true" class="name col-md-4">{{ $objective->text }}</td>
33
+                                {{-- TODO: Use correct data --}}
34
+                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">
35
+                                    {{ 'TODO' }}</td>
36
+                                <td contenteditable="true" class="expected-outcome col-md-1">
37
+                                    {{ $outcome->expected_outcome }}</td>
38
+                            </tr>
39
+                        @endforeach
35
                     @endforeach
40
                     @endforeach
36
-                @endforeach
37
 
41
 
38
                 </tbody>
42
                 </tbody>
39
             </table>
43
             </table>

+ 21
- 17
app/views/local/managers/admins/new-report.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
13
 @section('main')
13
 @section('main')
14
     <div class="row">
14
     <div class="row">
15
         <div class="col-md-12">
15
         <div class="col-md-12">
16
-            <p>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.</p>
16
+            <p>Click on the values you want to change. Invalid values will be rejected automatically. To save your changes,
17
+                click the 'Save' button at the bottom of the page.</p>
17
             <table class="table table-striped table-condensed editable-table">
18
             <table class="table table-striped table-condensed editable-table">
18
-                <thead><tr class="center-text">
19
-                    <th class="col-md-4">Learning Objectives</th>
20
-                    <th class="col-md-6">Transformative Actions</th>
21
-                    <th class="col-md-2">Expected Metric</th>
19
+                <thead>
20
+                    <tr class="center-text">
21
+                        <th class="col-md-4">Learning Objectives</th>
22
+                        <th class="col-md-6">Transformative Actions</th>
23
+                        <th class="col-md-2">Expected Metric</th>
22
 
24
 
23
                 </thead>
25
                 </thead>
24
                 <tbody>
26
                 <tbody>
25
-                @foreach ($objectives as $objective)
26
-                    <tr data-id="{{ $objective->id }}">
27
-                        <td contenteditable="true" class="name col-md-4" >{{ $objective->text }}</td>
28
-                        {{-- TODO: Use correct data --}}
29
-                        <td contenteditable="true" data-type="textarea" class="definition col-md-6" >{{ 'TODO' }}</td>
30
-                        <td contenteditable="true" class="expected-outcome col-md-1" >{{ $outcome->expected_outcome }}</td>
31
-                    </tr>
32
-                @endforeach
27
+                    @foreach ($objectives as $objective)
28
+                        <tr data-id="{{ $objective->id }}">
29
+                            <td contenteditable="true" class="name col-md-4">{{ $objective->text }}</td>
30
+                            {{-- TODO: Use correct data --}}
31
+                            <td contenteditable="true" data-type="textarea" class="definition col-md-6">{{ 'TODO' }}
32
+                            </td>
33
+                            <td contenteditable="true" class="expected-outcome col-md-1">{{ $outcome->expected_outcome }}
34
+                            </td>
35
+                        </tr>
36
+                    @endforeach
33
                 </tbody>
37
                 </tbody>
34
             </table>
38
             </table>
35
         </div>
39
         </div>

+ 9
- 9
app/views/local/managers/admins/new_assessment_report.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
63
                                     <?php
63
                                     <?php
64
                                     
64
                                     
65
                                     /*$sections_evaluating = Course::has('activities')
65
                                     /*$sections_evaluating = Course::has('activities')
66
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereNotNull('outcomes_attempted')
67
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
68
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->with(array('activities'=>function($query) use(&$outcome){
69
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        $query->whereNotNull('outcomes_attempted');
70
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
71
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->where('code', $course->code)->where('number',$course->number)
72
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereIn('semester_id', Session::get('semesters_ids'))
73
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->get();*/
66
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->whereNotNull('outcomes_attempted')
67
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
68
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->with(array('activities'=>function($query) use(&$outcome){
69
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            $query->whereNotNull('outcomes_attempted');
70
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
71
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->where('code', $course->code)->where('number',$course->number)
72
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->whereIn('semester_id', Session::get('semesters_ids'))
73
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->get();*/
74
                                     
74
                                     
75
                                     $sections_evaluating = Course::has('activities')
75
                                     $sections_evaluating = Course::has('activities')
76
                                     
76
                                     

+ 3
- 3
app/views/local/managers/admins/objectives.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @include('local.managers.admins._navigation')
4
+    @include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 @section('main')
6
 @section('main')
7
     <div class="row">
7
     <div class="row">
119
                         <select id="select-objective" name="id" class="form-control selectpicker">
119
                         <select id="select-objective" name="id" class="form-control selectpicker">
120
                             @foreach ($objectives as $objective)
120
                             @foreach ($objectives as $objective)
121
                                 <option value="{{ $objective->id }}" data-subtext="
121
                                 <option value="{{ $objective->id }}" data-subtext="
122
-                                                 @if ($objective->program) &nbsp;&nbsp;&nbsp;[{{ $objective->program->name }}] @endif
123
-                                ">
122
+                                                     @if ($objective->program) &nbsp;&nbsp;&nbsp;[{{ $objective->program->name }}] @endif
123
+                                    ">
124
                                     {{ $objective->text }}
124
                                     {{ $objective->text }}
125
 
125
 
126
 
126
 

+ 1
- 1
app/views/local/managers/admins/overview.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-@include('local.managers.admins._navigation')
4
+@include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 
6
 
7
 @section('main')
7
 @section('main')

+ 459
- 444
app/views/local/managers/admins/overview2.blade.php View File

1
 @extends('layouts.master_sin_semesterbar')
1
 @extends('layouts.master_sin_semesterbar')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-@include('local.managers.admins._navigation')
4
+    @include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 
6
 
7
 @section('main')
7
 @section('main')
8
 
8
 
9
-<div>
10
-  <div class="">
11
-    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
12
-    <script type="text/javascript">
13
-
14
-    function make_chart(outcomes_info, semesters) {
15
-      //////// Get values ready for chart
16
-      var target_line = {{$target}};
17
-      var x_label = 'Learning Outcomes';
18
-      var y_label = 'Percent of students';
19
-      var outcomes_labels = Array();
20
-      var i = 0;
21
-      outcomes_info.forEach(eachOutcome);
22
-      function eachOutcome(outcome, index) {
23
-        outcomes_labels.push({v: (index+1), f: outcome.name});
24
-        i = i + 1;
25
-      }
26
-
27
-      //
28
-      var outcomes_data = Array();
29
-
30
-      var legend = Array();
31
-      legend.push('');
32
-      legend.push('Target');
33
-      $.each(semesters, function(index, semester){
34
-        var name = semester.name;
35
-        name = name.split(' ');
36
-        var semester_number = name[0];
37
-        var semester_year = name[2];
38
-
39
-        if (semester_number == 'First'){
40
-          semester_number = '1';
41
-        }
42
-        else if (semester_number == 'Second'){
43
-          semester_number = '2';
44
-        }
45
-
46
-        name = semester_year + " Sem " + semester_number;
47
-        legend.push(name);
48
-      });
49
-      outcomes_data.push(legend);
50
-
51
-      //
52
-      var hidden_values = Array();
53
-      hidden_values.push(0);
54
-      hidden_values.push(target_line);
55
-      var k = 0;
56
-      while (k < semesters.length){
57
-        hidden_values.push(null);
58
-        k = k + 1;
59
-      }
60
-
61
-      //
62
-      outcomes_data.push(hidden_values);
63
-// 		console.log(semesters)
64
-
65
-      $.each(outcomes_info, function(index, outcome){
66
-        var temp_outcome_grouping_info = Array();
67
-        temp_outcome_grouping_info.push({v:(index+1),f:"Students acheiving Learning Outcomes"});
68
-        temp_outcome_grouping_info.push(target_line);
69
-		
70
-// 		console.log(outcome.semesters)
71
-        var i = 0;
72
-        $.each(outcome.semesters, function(index, semester){
73
-
74
-          // if semester is not the same, insert null.
75
-          //  else, insert info from expected semester.
76
-          if(semester.name != semesters[i].name){
77
-            while(semester.name != semesters[i].name && i < semesters.length){
78
-              temp_outcome_grouping_info.push(null);
79
-              i = i + 1;
80
-            }
81
-          }
82
-          i = i + 1;
83
-
84
-          var total = semester.total_evaluated;
85
-          var achievers = semester.total_achieved;
86
-
87
-          var percentage = achievers/total;
88
-          var display_percentage = percentage*100;
89
-          temp_outcome_grouping_info.push({v:percentage,f:'\nAchieved by ' + display_percentage.toFixed(2) + '%\n(' + achievers + ' achievers and ' + total + ' participants)'});
90
-        });
91
-
92
-        var i = temp_outcome_grouping_info.length;
93
-        while(i < semesters.length+2){
94
-          temp_outcome_grouping_info.push(null);
95
-          i = i + 1;
96
-        }
97
-
98
-        outcomes_data.push(temp_outcome_grouping_info);
99
-      });
100
-      var last_hidden_values = [...hidden_values];
101
-      last_hidden_values[0] = i+1;
102
-      outcomes_data.push(last_hidden_values);
103
-
104
-      ////////
105
-      google.charts.load('current', {
106
-        packages: ['corechart']
107
-      }).then(function () {
108
-        var data = google.visualization.arrayToDataTable(outcomes_data);
109
-        // var data = google.visualization.arrayToDataTable([
110
-        //   ['', 'Target', '2020-21 Sem 2', '2021-22 Sem 1', '2021-22 Sem 2'],
111
-        //   [0, 0.80, null, null, null],
112
-        //   [{v:1,f:"Students acheiving Learning Outcomes"}, 0.80, {v:0.8275,f:82.75}, {v:0.9075,f:'\nAchieved by '+(90.75).toString()+'%\n(60 achievers and 80 participants)'}, {v:0.8475,f:84.75}],
113
-        //   [{v:2,f:"Students acheiving Learning Outcomes"}, 0.80, {v:0.7475,f:74.75}, {v:0.8775,f:87.75}, {v:0.9975,f:60.75}],
114
-        //   [{v:3,f:"Students acheiving Learning Outcomes"}, 0.80, {v:0.6875,f:68.75}, {v:0.9175,f:91.75}, {v:0.8475,f:84.75}],
115
-        //   [4, 0.80, null, null, null]
116
-        // ]);
117
-
118
-        var chartDiv = document.getElementById('chart_div');
119
-        var chart = new google.visualization.ColumnChart(chartDiv);
120
-        chart.draw(data, {
121
-          // colors: ['lime', 'magenta'],
122
-          hAxis: {
123
-            title: x_label,
124
-            ticks: outcomes_labels,
125
-            viewWindow: {
126
-              min: 0.5,
127
-              max: outcomes_info.length + 0.5 // el total de outcomes + 0.5
128
-            },
129
-            textStyle : {
130
-              fontSize: 10,
131
-              bold: true,
132
-            }
133
-          },
134
-          legend: 'right',
135
-          series: {
136
-            0: {
137
-              type: 'line'
138
-            }
139
-          },
140
-          title: ' ',
141
-          chartArea: {
142
-            width: '70%',
143
-            // top: 10,
144
-            // height: '50%'
145
-          },
146
-          vAxis: {
147
-            title: y_label,
148
-            format: 'percent',
149
-            viewWindow: {
150
-              min: 0,
151
-              max: 1
152
-            }
153
-          }
154
-        });
155
-      });
156
-    }
157
-
158
-
159
-    // labels for each outcome grouping
160
-    var outcomes_info = <?= json_encode($outcomes, JSON_HEX_TAG); ?>;
161
-    var semesters = <?= json_encode($semesters, JSON_HEX_TAG); ?>;
162
-
163
-// 	console.log(outcomes_info);
164
-    make_chart(outcomes_info,semesters);
165
-
166
-    </script>
167
-    <script src="https://www.gstatic.com/charts/loader.js"></script>
168
-    <div class="">
169
-      <div class="filters">
170
-        <div class="row" style="display: flex;">
171
-          <div class="category" >
172
-            <label for="is_graduate">Level</label>
173
-            <div class="select">
174
-              <select class="selectpicker" name="is_graduate" id="is_graduate">
175
-                <option value="0" selected="selected">Undergradute</option>
176
-                <option value="1">Graduate</option>
177
-              </select>
178
-            </div>
179
-          </div>
180
-        </div>
181
-        <div class="row" style="display: flex;">
182
-          <div class="category" >
183
-            <label for="school">School</label>
184
-            <div class="select">
185
-              <select multiple class="selectpicker" name="school" id="school">
186
-                <option value="0" selected="selected">All</option>
187
-                @foreach ($filters['school'] as $school)
188
-                  <option value="{{$school->id}}">{{$school->name}}</option>
189
-                @endforeach
190
-              </select>
9
+    <div>
10
+        <div class="">
11
+            <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
12
+            <script type="text/javascript">
13
+                function make_chart(outcomes_info, semesters) {
14
+                    //////// Get values ready for chart
15
+                    var target_line = {{ $target }};
16
+                    var x_label = 'Learning Outcomes';
17
+                    var y_label = 'Percent of students';
18
+                    var outcomes_labels = Array();
19
+                    var i = 0;
20
+                    outcomes_info.forEach(eachOutcome);
21
+
22
+                    function eachOutcome(outcome, index) {
23
+                        outcomes_labels.push({
24
+                            v: (index + 1),
25
+                            f: outcome.name
26
+                        });
27
+                        i = i + 1;
28
+                    }
29
+
30
+                    //
31
+                    var outcomes_data = Array();
32
+
33
+                    var legend = Array();
34
+                    legend.push('');
35
+                    legend.push('Target');
36
+                    $.each(semesters, function(index, semester) {
37
+                        var name = semester.name;
38
+                        name = name.split(' ');
39
+                        var semester_number = name[0];
40
+                        var semester_year = name[2];
41
+
42
+                        if (semester_number == 'First') {
43
+                            semester_number = '1';
44
+                        } else if (semester_number == 'Second') {
45
+                            semester_number = '2';
46
+                        }
47
+
48
+                        name = semester_year + " Sem " + semester_number;
49
+                        legend.push(name);
50
+                    });
51
+                    outcomes_data.push(legend);
52
+
53
+                    //
54
+                    var hidden_values = Array();
55
+                    hidden_values.push(0);
56
+                    hidden_values.push(target_line);
57
+                    var k = 0;
58
+                    while (k < semesters.length) {
59
+                        hidden_values.push(null);
60
+                        k = k + 1;
61
+                    }
62
+
63
+                    //
64
+                    outcomes_data.push(hidden_values);
65
+                    // 		console.log(semesters)
66
+
67
+                    $.each(outcomes_info, function(index, outcome) {
68
+                        var temp_outcome_grouping_info = Array();
69
+                        temp_outcome_grouping_info.push({
70
+                            v: (index + 1),
71
+                            f: "Students acheiving Learning Outcomes"
72
+                        });
73
+                        temp_outcome_grouping_info.push(target_line);
74
+
75
+                        // 		console.log(outcome.semesters)
76
+                        var i = 0;
77
+                        $.each(outcome.semesters, function(index, semester) {
78
+
79
+                            // if semester is not the same, insert null.
80
+                            //  else, insert info from expected semester.
81
+                            if (semester.name != semesters[i].name) {
82
+                                while (semester.name != semesters[i].name && i < semesters.length) {
83
+                                    temp_outcome_grouping_info.push(null);
84
+                                    i = i + 1;
85
+                                }
86
+                            }
87
+                            i = i + 1;
88
+
89
+                            var total = semester.total_evaluated;
90
+                            var achievers = semester.total_achieved;
91
+
92
+                            var percentage = achievers / total;
93
+                            var display_percentage = percentage * 100;
94
+                            temp_outcome_grouping_info.push({
95
+                                v: percentage,
96
+                                f: '\nAchieved by ' + display_percentage.toFixed(2) + '%\n(' + achievers +
97
+                                    ' achievers and ' + total + ' participants)'
98
+                            });
99
+                        });
100
+
101
+                        var i = temp_outcome_grouping_info.length;
102
+                        while (i < semesters.length + 2) {
103
+                            temp_outcome_grouping_info.push(null);
104
+                            i = i + 1;
105
+                        }
106
+
107
+                        outcomes_data.push(temp_outcome_grouping_info);
108
+                    });
109
+                    var last_hidden_values = [...hidden_values];
110
+                    last_hidden_values[0] = i + 1;
111
+                    outcomes_data.push(last_hidden_values);
112
+
113
+                    ////////
114
+                    google.charts.load('current', {
115
+                        packages: ['corechart']
116
+                    }).then(function() {
117
+                        var data = google.visualization.arrayToDataTable(outcomes_data);
118
+                        // var data = google.visualization.arrayToDataTable([
119
+                        //   ['', 'Target', '2020-21 Sem 2', '2021-22 Sem 1', '2021-22 Sem 2'],
120
+                        //   [0, 0.80, null, null, null],
121
+                        //   [{v:1,f:"Students acheiving Learning Outcomes"}, 0.80, {v:0.8275,f:82.75}, {v:0.9075,f:'\nAchieved by '+(90.75).toString()+'%\n(60 achievers and 80 participants)'}, {v:0.8475,f:84.75}],
122
+                        //   [{v:2,f:"Students acheiving Learning Outcomes"}, 0.80, {v:0.7475,f:74.75}, {v:0.8775,f:87.75}, {v:0.9975,f:60.75}],
123
+                        //   [{v:3,f:"Students acheiving Learning Outcomes"}, 0.80, {v:0.6875,f:68.75}, {v:0.9175,f:91.75}, {v:0.8475,f:84.75}],
124
+                        //   [4, 0.80, null, null, null]
125
+                        // ]);
126
+
127
+                        var chartDiv = document.getElementById('chart_div');
128
+                        var chart = new google.visualization.ColumnChart(chartDiv);
129
+                        chart.draw(data, {
130
+                            // colors: ['lime', 'magenta'],
131
+                            hAxis: {
132
+                                title: x_label,
133
+                                ticks: outcomes_labels,
134
+                                viewWindow: {
135
+                                    min: 0.5,
136
+                                    max: outcomes_info.length + 0.5 // el total de outcomes + 0.5
137
+                                },
138
+                                textStyle: {
139
+                                    fontSize: 10,
140
+                                    bold: true,
141
+                                }
142
+                            },
143
+                            legend: 'right',
144
+                            series: {
145
+                                0: {
146
+                                    type: 'line'
147
+                                }
148
+                            },
149
+                            title: ' ',
150
+                            chartArea: {
151
+                                width: '70%',
152
+                                // top: 10,
153
+                                // height: '50%'
154
+                            },
155
+                            vAxis: {
156
+                                title: y_label,
157
+                                format: 'percent',
158
+                                viewWindow: {
159
+                                    min: 0,
160
+                                    max: 1
161
+                                }
162
+                            }
163
+                        });
164
+                    });
165
+                }
166
+
167
+
168
+                // labels for each outcome grouping
169
+                var outcomes_info = <?= json_encode($outcomes, JSON_HEX_TAG) ?>;
170
+                var semesters = <?= json_encode($semesters, JSON_HEX_TAG) ?>;
171
+
172
+                // 	console.log(outcomes_info);
173
+                make_chart(outcomes_info, semesters);
174
+            </script>
175
+            <script src="https://www.gstatic.com/charts/loader.js"></script>
176
+            <div class="">
177
+                <div class="filters">
178
+                    <div class="row" style="display: flex;">
179
+                        <div class="category">
180
+                            <label for="is_graduate">Level</label>
181
+                            <div class="select">
182
+                                <select class="selectpicker" name="is_graduate" id="is_graduate">
183
+                                    <option value="0" selected="selected">Undergradute</option>
184
+                                    <option value="1">Graduate</option>
185
+                                </select>
186
+                            </div>
187
+                        </div>
188
+                    </div>
189
+                    <div class="row" style="display: flex;">
190
+                        <div class="category">
191
+                            <label for="school">School</label>
192
+                            <div class="select">
193
+                                <select multiple class="selectpicker" name="school" id="school">
194
+                                    <option value="0" selected="selected">All</option>
195
+                                    @foreach ($filters['school'] as $school)
196
+                                        <option value="{{ $school->id }}">{{ $school->name }}</option>
197
+                                    @endforeach
198
+                                </select>
199
+                            </div>
200
+                        </div>
201
+                        <div class="category">
202
+                            <label for="program">Academic Program</label>
203
+                            <div class="select">
204
+                                <select multiple class="selectpicker" name="program" id="program">
205
+                                    <option value="0" selected="selected">All</option>
206
+                                    @foreach ($filters['program'] as $program)
207
+                                        <option value="{{ $program->id }}">{{ $program->name }}</option>
208
+                                    @endforeach
209
+                                </select>
210
+                            </div>
211
+                        </div>
212
+                    </div>
213
+                    <div class="row" style="display: flex;">
214
+                        <div class="category">
215
+                            <label for="semester">Semester</label>
216
+                            <div class="select">
217
+                                <select multiple class="selectpicker" name="semester" id="semester">
218
+                                    <option value="0" selected="selected">All</option>
219
+                                    @foreach ($filters['semester'] as $semester)
220
+                                        <option value="{{ $semester->id }}">{{ $semester->name }}</option>
221
+                                    @endforeach
222
+                                </select>
223
+                            </div>
224
+                        </div>
225
+                        <div class="category">
226
+                            <label for="year">Academic Year</label>
227
+                            <div class="select">
228
+                                <select multiple class="selectpicker" name="year" id="year">
229
+                                    <option value="0" selected="selected">All</option>
230
+                                    @foreach ($filters['year'] as $year)
231
+                                        <option value="{{ $year->id }}">{{ $year->start }}</option>
232
+                                    @endforeach
233
+                                </select>
234
+                            </div>
235
+                        </div>
236
+                        <div class="category">
237
+                            <label for="outcome">Learning Outcomes</label>
238
+                            <div class="select">
239
+                                <select multiple class="selectpicker" name="outcome" id="outcome">
240
+                                    <option value="0" selected="selected">All</option>
241
+                                    @foreach ($filters['outcome'] as $outcome)
242
+                                        <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
243
+                                    @endforeach
244
+                                </select>
245
+                            </div>
246
+                        </div>
247
+                    </div>
248
+                </div>
249
+                <h4 class="container">
250
+                    <b>Percent of Students Achieving Learning Outcomes By Academic Session</b>
251
+                </h4>
252
+                <div class="container" style="height:500px; width:1300px;" id="chart_div"></div>
253
+                <div class="" style="padding-left: 25px;">
254
+                    <h5>
255
+                        <b>Annotation</b>
256
+                    </h5>
257
+                    The target line represents the expected percent of students achieving the learning
258
+                    outcome({{ $target * 100 }}%).
259
+                </div>
191
             </div>
260
             </div>
192
-          </div>
193
-          <div class="category" >
194
-            <label for="program" >Academic Program</label>
195
-            <div class="select">
196
-              <select multiple class="selectpicker" name="program" id="program">
197
-                <option value="0" selected="selected">All</option>
198
-                @foreach ($filters['program'] as $program)
199
-                  <option value="{{$program->id}}">{{$program->name}}</option>
200
-                @endforeach
201
-              </select>
202
-            </div>
203
-          </div>
204
-        </div>
205
-        <div class="row" style="display: flex;">
206
-          <div class="category" >
207
-            <label for="semester">Semester</label>
208
-            <div class="select">
209
-              <select multiple class="selectpicker" name="semester" id="semester">
210
-                <option value="0" selected="selected">All</option>
211
-                @foreach ($filters['semester'] as $semester)
212
-                  <option value="{{$semester->id}}">{{$semester->name}}</option>
213
-                @endforeach
214
-              </select>
215
-            </div>
216
-          </div>
217
-          <div class="category" >
218
-            <label for="year">Academic Year</label>
219
-            <div class="select">
220
-              <select multiple class="selectpicker" name="year" id="year">
221
-                <option value="0" selected="selected">All</option>
222
-                @foreach ($filters['year'] as $year)
223
-                  <option value="{{$year->id}}">{{$year->start}}</option>
224
-                @endforeach
225
-              </select>
226
-            </div>
227
-          </div>
228
-          <div class="category" >
229
-            <label for="outcome">Learning Outcomes</label>
230
-            <div class="select">
231
-              <select multiple class="selectpicker" name="outcome" id="outcome">
232
-                <option value="0" selected="selected">All</option>
233
-                @foreach ($filters['outcome'] as $outcome)
234
-                  <option value="{{$outcome->id}}">{{$outcome->name}}</option>
235
-                @endforeach
236
-              </select>
237
-            </div>
238
-          </div>
239
         </div>
261
         </div>
240
-      </div>
241
-      <h4 class="container">
242
-        <b>Percent of Students Achieving Learning Outcomes By Academic Session</b>
243
-      </h4>
244
-      <div class="container" style="height:500px; width:1300px;" id="chart_div"></div>
245
-      <div class="" style="padding-left: 25px;">
246
-        <h5>
247
-          <b>Annotation</b>
248
-        </h5>
249
-        The target line represents the expected percent of students achieving the learning outcome({{$target*100}}%).
250
-      </div>
251
     </div>
262
     </div>
252
-  </div>
253
-</div>
254
 
263
 
255
 @stop
264
 @stop
256
 
265
 
257
 @section('included-js')
266
 @section('included-js')
258
 
267
 
259
-<!-- HighCharts -->
260
-<script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
268
+    <!-- HighCharts -->
269
+    <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
261
 
270
 
262
 @stop
271
 @stop
263
 
272
 
264
 @section('javascript')
273
 @section('javascript')
265
 
274
 
266
 
275
 
267
-$(document).ready(function()
268
-{
269
-  $("#year").parent().parent().parent().hide();
276
+    $(document).ready(function()
277
+    {
278
+    $("#year").parent().parent().parent().hide();
270
 
279
 
271
 
280
 
272
 
281
 
273
-  // when a filter is focused
274
-  var previous;
275
-  $(".category").find("button").focus(function() {
282
+    // when a filter is focused
283
+    var previous;
284
+    $(".category").find("button").focus(function() {
276
     previous = Array();
285
     previous = Array();
277
     $(this).parent().find("select option:selected").each(function() {
286
     $(this).parent().find("select option:selected").each(function() {
278
-      previous.push(this.value);
287
+    previous.push(this.value);
288
+    });
279
     });
289
     });
280
-  });
281
 
290
 
282
-  // when a filter is changed
283
-  $(".category").find("select").change(function() {
291
+    // when a filter is changed
292
+    $(".category").find("select").change(function() {
284
     var new_value = Array();
293
     var new_value = Array();
285
     $(this).parent().find("select option:selected").each(function() {
294
     $(this).parent().find("select option:selected").each(function() {
286
-      new_value.push(this.value);
295
+    new_value.push(this.value);
287
     });
296
     });
288
 
297
 
289
     //if statements so that "All" only can be selected alone and dont allow selecting no options
298
     //if statements so that "All" only can be selected alone and dont allow selecting no options
290
     if(jQuery.inArray("0",new_value) !== -1 && jQuery.inArray("0",previous) === -1){
299
     if(jQuery.inArray("0",new_value) !== -1 && jQuery.inArray("0",previous) === -1){
291
-      $(this).parent().find("select option:selected").each(function() {
292
-        $(this).removeAttr('selected');
293
-        $(this).parent().val(0);
294
-        //$('.selectpicker').selectpicker('refresh');
295
-        new_value = ["0"];
296
-      });
297
-    }else if(jQuery.inArray("0",new_value) !== -1 && jQuery.inArray("0",previous) !== -1 && new_value.length > previous.length){
298
-      $(this).parent().find("select option:selected").each(function() {
299
-        if(this.value == "0"){
300
-          $(this).removeAttr('selected');
301
-          //$('.selectpicker').selectpicker('refresh');
302
-          new_value = Array(new_value[1]);
303
-        }
304
-      });
300
+    $(this).parent().find("select option:selected").each(function() {
301
+    $(this).removeAttr('selected');
302
+    $(this).parent().val(0);
303
+    //$('.selectpicker').selectpicker('refresh');
304
+    new_value = ["0"];
305
+    });
306
+    }else if(jQuery.inArray("0",new_value) !== -1 && jQuery.inArray("0",previous) !== -1 && new_value.length >
307
+    previous.length){
308
+    $(this).parent().find("select option:selected").each(function() {
309
+    if(this.value == "0"){
310
+    $(this).removeAttr('selected');
311
+    //$('.selectpicker').selectpicker('refresh');
312
+    new_value = Array(new_value[1]);
313
+    }
314
+    });
305
     }else if(new_value.length == 0){
315
     }else if(new_value.length == 0){
306
-      $(this).parent().find("select").val(0);
307
-      //$('.selectpicker').selectpicker('refresh');
308
-      new_value = ["0"];
316
+    $(this).parent().find("select").val(0);
317
+    //$('.selectpicker').selectpicker('refresh');
318
+    new_value = ["0"];
309
     }
319
     }
310
     previous = new_value;
320
     previous = new_value;
311
 
321
 
321
 
331
 
322
     // query the values and get new data for chart
332
     // query the values and get new data for chart
323
     $.post(
333
     $.post(
324
-        "{{ URL::action('AdministratorsController@overview2_filter_results') }}",
325
-      {
326
-        schools: (schools),
327
-        programs: (programs),
328
-        semesters: (semesters),
329
-        years: (years),
330
-        outcomes: (outcomes),
331
-        is_graduate: (is_graduate),
332
-      },
333
-      function(data)
334
-      {
335
-        var filters = data.filters;
336
-        var outcomes_info = data.outcomes_info;
337
-        var semesters = data.semesters;
338
-
339
-        //////// update chart
340
-        make_chart(outcomes_info,semesters);
341
-
342
-
343
-        ////////update filters
344
-        var new_all = $('<option/>',{
345
-          'value': "0",
346
-          'html': "All",
347
-        });;
348
-
349
-        {{--
350
-        //update school filter
334
+    "{{ URL::action('AdministratorsController@overview2_filter_results') }}",
335
+    {
336
+    schools: (schools),
337
+    programs: (programs),
338
+    semesters: (semesters),
339
+    years: (years),
340
+    outcomes: (outcomes),
341
+    is_graduate: (is_graduate),
342
+    },
343
+    function(data)
344
+    {
345
+    var filters = data.filters;
346
+    var outcomes_info = data.outcomes_info;
347
+    var semesters = data.semesters;
348
+
349
+    //////// update chart
350
+    make_chart(outcomes_info,semesters);
351
+
352
+
353
+    ////////update filters
354
+    var new_all = $('
355
+    <option />',{
356
+    'value': "0",
357
+    'html': "All",
358
+    });;
359
+
360
+    {{-- //update school filter
351
         var school_filter = $("#school");
361
         var school_filter = $("#school");
352
         var new_school_options = filters.school;
362
         var new_school_options = filters.school;
353
         school_filter.find("option").remove();
363
         school_filter.find("option").remove();
361
             'html': html,
371
             'html': html,
362
           });;
372
           });;
363
           school_filter.append(new_option);
373
           school_filter.append(new_option);
364
-        });
365
-        --}}
374
+        }); --}}
366
 
375
 
367
-        //update school filter
368
-        var school_filter = $("#school");
369
-        var school_selected_options = Array();
370
-        school_filter.find("option:selected").each(function() {
371
-          school_selected_options.push(this.value);
372
-        });
373
-        var new_school_options = filters.school;
374
-        school_filter.find("option").remove();
375
-        if(Array("0")[0] == school_selected_options[0]){
376
-          school_filter.append(new_all.clone(true).attr("selected","selected"));
377
-        } else{
378
-          school_filter.append(new_all.clone(true));
379
-        }
380
-        $.each(new_school_options, function(index, school)
381
-        {
382
-          var value = school.id.toString();
383
-          var html = school.name;
384
-          var new_option;
385
-          if(jQuery.inArray(value,school_selected_options) === -1){
386
-            new_option = $('<option/>',{
387
-              'value': value,
388
-              'html': html,
389
-            });;
390
-          }else{
391
-            new_option = $('<option/>',{
392
-              'value': value,
393
-              'html': html,
394
-              'selected': 'selected',
395
-            });;
396
-          }
397
-          school_filter.append(new_option);
398
-        });
376
+    //update school filter
377
+    var school_filter = $("#school");
378
+    var school_selected_options = Array();
379
+    school_filter.find("option:selected").each(function() {
380
+    school_selected_options.push(this.value);
381
+    });
382
+    var new_school_options = filters.school;
383
+    school_filter.find("option").remove();
384
+    if(Array("0")[0] == school_selected_options[0]){
385
+    school_filter.append(new_all.clone(true).attr("selected","selected"));
386
+    } else{
387
+    school_filter.append(new_all.clone(true));
388
+    }
389
+    $.each(new_school_options, function(index, school)
390
+    {
391
+    var value = school.id.toString();
392
+    var html = school.name;
393
+    var new_option;
394
+    if(jQuery.inArray(value,school_selected_options) === -1){
395
+    new_option = $('
396
+    <option />',{
397
+    'value': value,
398
+    'html': html,
399
+    });;
400
+    }else{
401
+    new_option = $('
402
+    <option />',{
403
+    'value': value,
404
+    'html': html,
405
+    'selected': 'selected',
406
+    });;
407
+    }
408
+    school_filter.append(new_option);
409
+    });
399
 
410
 
400
-        //update semester filter
401
-        var semester_filter = $("#semester");
402
-        var semester_selected_options = Array();
403
-        semester_filter.find("option:selected").each(function() {
404
-          semester_selected_options.push(this.value);
405
-        });
406
-        var new_semester_options = filters.semester;
407
-        semester_filter.find("option").remove();
408
-        if(Array("0")[0] == semester_selected_options[0]){
409
-          semester_filter.append(new_all.clone(true).attr("selected","selected"));
410
-        } else{
411
-          semester_filter.append(new_all.clone(true));
412
-        }
413
-        $.each(new_semester_options, function(index, semester)
414
-        {
415
-          var value = semester.id.toString();
416
-          var html = semester.name;
417
-          var new_option;
418
-          if(jQuery.inArray(value,semester_selected_options) === -1){
419
-            new_option = $('<option/>',{
420
-              'value': value,
421
-              'html': html,
422
-            });;
423
-          }else{
424
-            new_option = $('<option/>',{
425
-              'value': value,
426
-              'html': html,
427
-              'selected': 'selected',
428
-            });;
429
-          }
430
-          semester_filter.append(new_option);
431
-        });
432
-
433
-        //update program filter
434
-        var program_filter = $("#program");
435
-        var program_selected_options = Array();
436
-        program_filter.find("option:selected").each(function() {
437
-          program_selected_options.push(this.value);
438
-        });
439
-        var new_program_options = filters.program;
440
-        program_filter.find("option").remove();
441
-        if(Array("0")[0] == program_selected_options[0]){
442
-          program_filter.append(new_all.clone(true).attr("selected","selected"));
443
-        } else{
444
-          program_filter.append(new_all.clone(true));
445
-        }
446
-        $.each(new_program_options, function(index, program)
447
-        {
448
-          var value = program.id.toString();
449
-          var html = program.name;
450
-          var new_option;
451
-          if(jQuery.inArray(value,program_selected_options) === -1){
452
-            new_option = $('<option/>',{
453
-              'value': value,
454
-              'html': html,
455
-            });;
456
-          }else{
457
-            new_option = $('<option/>',{
458
-              'value': value,
459
-              'html': html,
460
-              'selected': 'selected',
461
-            });;
462
-          }
463
-          program_filter.append(new_option);
464
-        });
465
-
466
-
467
-        //update outcome filter
468
-        var outcome_filter = $("#outcome");
469
-        var outcome_selected_options = Array();
470
-        outcome_filter.find("option:selected").each(function() {
471
-          outcome_selected_options.push(this.value);
472
-        });
473
-        var new_outcome_options = filters.outcome;
474
-        outcome_filter.find("option").remove();
475
-        if(Array("0")[0] == outcome_selected_options[0]){
476
-          outcome_filter.append(new_all.clone(true).attr("selected","selected"));
477
-        } else{
478
-          outcome_filter.append(new_all.clone(true));
479
-        }
480
-        $.each(new_outcome_options, function(index, outcome)
481
-        {
482
-          var value = outcome.id.toString();
483
-          var html = outcome.name;
484
-          var new_option;
485
-          if(jQuery.inArray(value,outcome_selected_options) === -1){
486
-            new_option = $('<option/>',{
487
-              'value': value,
488
-              'html': html,
489
-            });;
490
-          }else{
491
-            new_option = $('<option/>',{
492
-              'value': value,
493
-              'html': html,
494
-              'selected': 'selected',
495
-            });;
496
-          }
497
-          outcome_filter.append(new_option);
498
-        });
499
-
500
-
501
-        {{--
502
-        //update semester filter
411
+    //update semester filter
412
+    var semester_filter = $("#semester");
413
+    var semester_selected_options = Array();
414
+    semester_filter.find("option:selected").each(function() {
415
+    semester_selected_options.push(this.value);
416
+    });
417
+    var new_semester_options = filters.semester;
418
+    semester_filter.find("option").remove();
419
+    if(Array("0")[0] == semester_selected_options[0]){
420
+    semester_filter.append(new_all.clone(true).attr("selected","selected"));
421
+    } else{
422
+    semester_filter.append(new_all.clone(true));
423
+    }
424
+    $.each(new_semester_options, function(index, semester)
425
+    {
426
+    var value = semester.id.toString();
427
+    var html = semester.name;
428
+    var new_option;
429
+    if(jQuery.inArray(value,semester_selected_options) === -1){
430
+    new_option = $('
431
+    <option />',{
432
+    'value': value,
433
+    'html': html,
434
+    });;
435
+    }else{
436
+    new_option = $('
437
+    <option />',{
438
+    'value': value,
439
+    'html': html,
440
+    'selected': 'selected',
441
+    });;
442
+    }
443
+    semester_filter.append(new_option);
444
+    });
445
+
446
+    //update program filter
447
+    var program_filter = $("#program");
448
+    var program_selected_options = Array();
449
+    program_filter.find("option:selected").each(function() {
450
+    program_selected_options.push(this.value);
451
+    });
452
+    var new_program_options = filters.program;
453
+    program_filter.find("option").remove();
454
+    if(Array("0")[0] == program_selected_options[0]){
455
+    program_filter.append(new_all.clone(true).attr("selected","selected"));
456
+    } else{
457
+    program_filter.append(new_all.clone(true));
458
+    }
459
+    $.each(new_program_options, function(index, program)
460
+    {
461
+    var value = program.id.toString();
462
+    var html = program.name;
463
+    var new_option;
464
+    if(jQuery.inArray(value,program_selected_options) === -1){
465
+    new_option = $('
466
+    <option />',{
467
+    'value': value,
468
+    'html': html,
469
+    });;
470
+    }else{
471
+    new_option = $('
472
+    <option />',{
473
+    'value': value,
474
+    'html': html,
475
+    'selected': 'selected',
476
+    });;
477
+    }
478
+    program_filter.append(new_option);
479
+    });
480
+
481
+
482
+    //update outcome filter
483
+    var outcome_filter = $("#outcome");
484
+    var outcome_selected_options = Array();
485
+    outcome_filter.find("option:selected").each(function() {
486
+    outcome_selected_options.push(this.value);
487
+    });
488
+    var new_outcome_options = filters.outcome;
489
+    outcome_filter.find("option").remove();
490
+    if(Array("0")[0] == outcome_selected_options[0]){
491
+    outcome_filter.append(new_all.clone(true).attr("selected","selected"));
492
+    } else{
493
+    outcome_filter.append(new_all.clone(true));
494
+    }
495
+    $.each(new_outcome_options, function(index, outcome)
496
+    {
497
+    var value = outcome.id.toString();
498
+    var html = outcome.name;
499
+    var new_option;
500
+    if(jQuery.inArray(value,outcome_selected_options) === -1){
501
+    new_option = $('
502
+    <option />',{
503
+    'value': value,
504
+    'html': html,
505
+    });;
506
+    }else{
507
+    new_option = $('
508
+    <option />',{
509
+    'value': value,
510
+    'html': html,
511
+    'selected': 'selected',
512
+    });;
513
+    }
514
+    outcome_filter.append(new_option);
515
+    });
516
+
517
+
518
+    {{-- //update semester filter
503
         var semester_filter = $("#semester");
519
         var semester_filter = $("#semester");
504
         var new_semester_options = filters.semester;
520
         var new_semester_options = filters.semester;
505
         semester_filter.find("option").remove();
521
         semester_filter.find("option").remove();
513
             'html': html,
529
             'html': html,
514
           });;
530
           });;
515
           semester_filter.append(new_option);
531
           semester_filter.append(new_option);
516
-        });
517
-        --}}
532
+        }); --}}
518
 
533
 
519
 
534
 
520
-        $('.selectpicker').selectpicker('refresh');
521
-      }
535
+    $('.selectpicker').selectpicker('refresh');
536
+    }
522
     );
537
     );
523
 
538
 
524
-  });
539
+    });
525
 
540
 
526
-});
541
+    });
527
 
542
 
528
 
543
 
529
 
544
 
530
-{{-- @include('global.dummy-outcomes') --}}
545
+    {{-- @include('global.dummy-outcomes') --}}
531
 
546
 
532
 @stop
547
 @stop

+ 94
- 86
app/views/local/managers/admins/reassign.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @include('local.managers.admins._navigation')
4
+    @include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 @section('main')
6
 @section('main')
7
 
7
 
13
                 </div>
13
                 </div>
14
                 <div class="panel-body">
14
                 <div class="panel-body">
15
 
15
 
16
-                    <p>Use this to reassign courses matching your specified criteria to the program of your choice. Use <strong>*</strong> (asterisk) to do a wildcard search at the beginning or end. At least <strong>one</strong> field is required.</p>
16
+                    <p>Use this to reassign courses matching your specified criteria to the program of your choice. Use
17
+                        <strong>*</strong> (asterisk) to do a wildcard search at the beginning or end. At least
18
+                        <strong>one</strong> field is required.</p>
17
 
19
 
18
-                    <p>As an example, the following will assign all courses with a code <strong>starting</strong> with 'MAT' and a number <strong>starting</strong> with '3' to the Mathematics Program.</p>
20
+                    <p>As an example, the following will assign all courses with a code <strong>starting</strong> with 'MAT'
21
+                        and a number <strong>starting</strong> with '3' to the Mathematics Program.</p>
19
                     <ul>
22
                     <ul>
20
                         <li>Code: MAT*</li>
23
                         <li>Code: MAT*</li>
21
                         <li>Number: 3*</li>
24
                         <li>Number: 3*</li>
22
                         <li>Program: Mathematics</li>
25
                         <li>Program: Mathematics</li>
23
                     </ul>
26
                     </ul>
24
 
27
 
25
-                    {{ Form::open(array('action' => 'CoursesController@update')) }}
26
-
27
-                        <div class="form-group">
28
-                            {{ Form::label('code', 'Code') }}
29
-                            {{ Form::text('code', Input::old('code'), array('class' => 'form-control', 'placeholder'=>'TEST', 'maxLength'=>5)) }}
30
-                        </div>
31
-
32
-                        <div class="form-group">
33
-                            {{ Form::label('number', 'Number') }}
34
-                            {{ Form::text('number', Input::old('number'), array('class' => 'form-control', 'placeholder'=>'3001', 'maxLength'=>5)) }}
35
-                        </div>
36
-
37
-                        <div class="form-group">
38
-                            {{ Form::label('section', 'Section') }}
39
-                            {{ Form::text('section', Input::old('section'), array('class' => 'form-control', 'placeholder'=>'001', 'maxLength'=>4)) }}
40
-                        </div>
41
-
42
-                        <!-- Program -->
43
-                        <div class="form-group">
44
-                            {{ Form::label('program', 'Program') }}
45
-                            <select id="program" name="program" class="form-control">
46
-                                @foreach ($programs as $program)
47
-                                    @if(Input::old('program')!=$program->id)
48
-                                        <option value="{{ $program->id }}">{{ $program->name }} ({{ $program->school->name }})</option>
49
-                                    @else
50
-                                        <option selected value="{{ $program->id }}">{{ $program->name }} ({{ $program->school->name }})</option>
51
-                                    @endif
52
-                                @endforeach
53
-                            </select>
54
-                        </div>
28
+                    {{ Form::open(['action' => 'CoursesController@update']) }}
29
+
30
+                    <div class="form-group">
31
+                        {{ Form::label('code', 'Code') }}
32
+                        {{ Form::text('code', Input::old('code'), ['class' => 'form-control', 'placeholder' => 'TEST', 'maxLength' => 5]) }}
33
+                    </div>
34
+
35
+                    <div class="form-group">
36
+                        {{ Form::label('number', 'Number') }}
37
+                        {{ Form::text('number', Input::old('number'), ['class' => 'form-control', 'placeholder' => '3001', 'maxLength' => 5]) }}
38
+                    </div>
39
+
40
+                    <div class="form-group">
41
+                        {{ Form::label('section', 'Section') }}
42
+                        {{ Form::text('section', Input::old('section'), ['class' => 'form-control', 'placeholder' => '001', 'maxLength' => 4]) }}
43
+                    </div>
44
+
45
+                    <!-- Program -->
46
+                    <div class="form-group">
47
+                        {{ Form::label('program', 'Program') }}
48
+                        <select id="program" name="program" class="form-control">
49
+                            @foreach ($programs as $program)
50
+                                @if (Input::old('program') != $program->id)
51
+                                    <option value="{{ $program->id }}">{{ $program->name }}
52
+                                        ({{ $program->school->name }})</option>
53
+                                @else
54
+                                    <option selected value="{{ $program->id }}">{{ $program->name }}
55
+                                        ({{ $program->school->name }})</option>
56
+                                @endif
57
+                            @endforeach
58
+                        </select>
59
+                    </div>
55
 
60
 
56
-                       <br>
61
+                    <br>
57
 
62
 
58
-                        {{ Form::submit('Submit', array('class' => 'btn btn-primary btn-block', 'name'=>'reassign_program')) }}
63
+                    {{ Form::submit('Submit', ['class' => 'btn btn-primary btn-block', 'name' => 'reassign_program']) }}
59
                     {{ Form::close() }}
64
                     {{ Form::close() }}
60
 
65
 
61
                     <br>
66
                     <br>
62
 
67
 
63
-                    @if(Session::has('courses'))
68
+                    @if (Session::has('courses'))
64
                         <p><strong>The following courses were updated:</strong></p>
69
                         <p><strong>The following courses were updated:</strong></p>
65
                         <ul>
70
                         <ul>
66
-                            @foreach(json_decode(Session::get('courses')) as $course)
71
+                            @foreach (json_decode(Session::get('courses')) as $course)
67
                                 <li>
72
                                 <li>
68
 
73
 
69
-                                    @if(Session::has('show_sections'))
74
+                                    @if (Session::has('show_sections'))
70
                                         {{ $course->code }}{{ $course->number }}-{{ $course->section }}
75
                                         {{ $course->code }}{{ $course->number }}-{{ $course->section }}
71
                                     @else
76
                                     @else
72
                                         {{ $course->code }}{{ $course->number }}
77
                                         {{ $course->code }}{{ $course->number }}
86
                 </div>
91
                 </div>
87
                 <div class="panel-body">
92
                 <div class="panel-body">
88
 
93
 
89
-                    <p>Use this to reassign a section to a specific professor. Write down the code, number and section of the course. Then, choose a professor from the list. <strong>All fields are required.</strong></p>
90
-
91
-                    {{ Form::open(array('action' => 'CoursesController@update')) }}
92
-
93
-                        <div class="form-group">
94
-                            {{ Form::label('code_prof', 'Code') }}
95
-                            {{ Form::text('code_prof', Input::old('code_prof'), array('class' => 'form-control', 'placeholder'=>'TEST', 'maxLength'=>4)) }}
96
-                        </div>
97
-
98
-                        <div class="form-group">
99
-                            {{ Form::label('number_prof', 'Number') }}
100
-                            {{ Form::text('number_prof', Input::old('number_prof'), array('class' => 'form-control', 'placeholder'=>'3001', 'maxLength'=>4)) }}
101
-                        </div>
102
-
103
-                        <div class="form-group">
104
-                            {{ Form::label('section_prof', 'Section') }}
105
-                            {{ Form::text('section_prof', Input::old('section_prof'), array('class' => 'form-control', 'placeholder'=>'001', 'maxLength'=>3)) }}
106
-                        </div>
107
-
108
-                        <!-- Program -->
109
-                        <div class="form-group">
110
-                            {{ Form::label('user_prof', 'User') }}
111
-                            <select id="user_prof" name="user_prof" class="form-control">
112
-                                @foreach ($users as $user)
113
-                                    @if(Input::old('user_prof')!=$user->id)
114
-                                        <option value="{{ $user->id }}">{{ $user->surnames }}, {{ $user->first_name }}</option>
115
-                                    @else
116
-                                        <option selected value="{{ $user->id }}">{{ $user->surnames }}, {{ $user->first_name }}</option>
117
-                                    @endif
118
-                                @endforeach
119
-                            </select>
120
-                        </div>
121
-
122
-                        <!-- Semester -->
123
-                        <div class="form-group">
124
-                            {{ Form::label('semester_prof', 'Semester') }}
125
-                            <select id="semester_prof" name="semester_prof" class="form-control">
126
-                                @foreach ($semesters as $semester)
127
-                                    @if(Input::old('semester_prof')!=$semester->id)
128
-                                        <option value="{{ $semester->id }}">{{ $semester->name }}</option>
129
-                                    @else
130
-                                        <option selected value="{{ $semester->id }}">{{ $semester->name }}</option>
131
-                                    @endif
132
-                                @endforeach
133
-                            </select>
134
-                        </div>
94
+                    <p>Use this to reassign a section to a specific professor. Write down the code, number and section of
95
+                        the course. Then, choose a professor from the list. <strong>All fields are required.</strong></p>
96
+
97
+                    {{ Form::open(['action' => 'CoursesController@update']) }}
98
+
99
+                    <div class="form-group">
100
+                        {{ Form::label('code_prof', 'Code') }}
101
+                        {{ Form::text('code_prof', Input::old('code_prof'), ['class' => 'form-control', 'placeholder' => 'TEST', 'maxLength' => 4]) }}
102
+                    </div>
103
+
104
+                    <div class="form-group">
105
+                        {{ Form::label('number_prof', 'Number') }}
106
+                        {{ Form::text('number_prof', Input::old('number_prof'), ['class' => 'form-control', 'placeholder' => '3001', 'maxLength' => 4]) }}
107
+                    </div>
108
+
109
+                    <div class="form-group">
110
+                        {{ Form::label('section_prof', 'Section') }}
111
+                        {{ Form::text('section_prof', Input::old('section_prof'), ['class' => 'form-control', 'placeholder' => '001', 'maxLength' => 3]) }}
112
+                    </div>
113
+
114
+                    <!-- Program -->
115
+                    <div class="form-group">
116
+                        {{ Form::label('user_prof', 'User') }}
117
+                        <select id="user_prof" name="user_prof" class="form-control">
118
+                            @foreach ($users as $user)
119
+                                @if (Input::old('user_prof') != $user->id)
120
+                                    <option value="{{ $user->id }}">{{ $user->surnames }},
121
+                                        {{ $user->first_name }}</option>
122
+                                @else
123
+                                    <option selected value="{{ $user->id }}">{{ $user->surnames }},
124
+                                        {{ $user->first_name }}</option>
125
+                                @endif
126
+                            @endforeach
127
+                        </select>
128
+                    </div>
129
+
130
+                    <!-- Semester -->
131
+                    <div class="form-group">
132
+                        {{ Form::label('semester_prof', 'Semester') }}
133
+                        <select id="semester_prof" name="semester_prof" class="form-control">
134
+                            @foreach ($semesters as $semester)
135
+                                @if (Input::old('semester_prof') != $semester->id)
136
+                                    <option value="{{ $semester->id }}">{{ $semester->name }}</option>
137
+                                @else
138
+                                    <option selected value="{{ $semester->id }}">{{ $semester->name }}</option>
139
+                                @endif
140
+                            @endforeach
141
+                        </select>
142
+                    </div>
135
 
143
 
136
-                       <br>
144
+                    <br>
137
 
145
 
138
-                        {{ Form::submit('Submit', array('class' => 'btn btn-primary btn-block', 'name'=>'reassign_professor')) }}
146
+                    {{ Form::submit('Submit', ['class' => 'btn btn-primary btn-block', 'name' => 'reassign_professor']) }}
139
                     {{ Form::close() }}
147
                     {{ Form::close() }}
140
 
148
 
141
                 </div>
149
                 </div>

+ 97
- 94
app/views/local/managers/admins/semesters.blade.php View File

2
 
2
 
3
 @section('css')
3
 @section('css')
4
 
4
 
5
-{{ HTML::style('vendor/datetimepicker-master/jquery.datetimepicker.css') }}
5
+    {{ HTML::style('vendor/datetimepicker-master/jquery.datetimepicker.css') }}
6
 
6
 
7
 @stop
7
 @stop
8
 
8
 
9
 @section('navigation')
9
 @section('navigation')
10
-    @include('local.managers.admins._navigation')
10
+    @include('local.managers.admins._new_navigation')
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
 
14
 
15
-<div class="row">
16
-    <div class="col-md-8">
17
-        <p>Use this page to change the available semesters' start dates, end dates, and visibility. Start dates and end dates determine the range of time within which users enter data for each semester. Visibility determines whether a user can select that semester for viewing and/or entering data. Users cannot enter new data in a closed semester, even if it is visible.</p>
18
-        <p><strong>Important: At least one semester must be visible, and must have started. While semesters may have overlapping dates, they cannot have the same dates.</strong></p>
19
-        <table class="table table-striped">
20
-            <thead>
21
-                <tr>
22
-                    <th>Code</th>
23
-                    <th>Name</th>
24
-                    <th>Start Date</th>
25
-                    <th>End Date</th>
26
-                    <th>Visible</th>
27
-                    <th>Save</th>
28
-                </tr>
29
-            </thead>
30
-            <tbody>
31
-
32
-            </tbody>
33
-            @foreach ($semesters as $semester)
34
-                <tr>
35
-                    <td data-id="{{ $semester->id }}" class="semester-code">{{ $semester->code }}</td>
36
-                    <td class="semester-name">{{ $semester->name }}</td>
37
-                    <td class="semester-start"><input class="datetimepicker" type="text" value="{{ date('m/d/y H:i:s', strtotime($semester->start)) }}"></td>
38
-                    <td class="semester-end"><input class="datetimepicker" type="text" value="{{ date('m/d/y H:i:s', strtotime($semester->end)) }}"></td>
39
-                    <td class="semester-visible">
40
-                        <select name="" id="">
41
-                            @if($semester->is_visible)
42
-                            <option selected="selected" value="1">Yes</option>
43
-                            <option value="0">No</option>
44
-                            @else
45
-                            <option value="1">Yes</option>
46
-                            <option selected="selected" value="0">No</option>
47
-                            @endif
48
-                        </select>
49
-                        
50
-                    </td>
51
-                    <td class="semester-save"><span class="glyphicon glyphicon-floppy-disk"></span></td>
52
-                </tr>
53
-
54
-            @endforeach
55
-        </table>
15
+    <div class="row">
16
+        <div class="col-md-8">
17
+            <p>Use this page to change the available semesters' start dates, end dates, and visibility. Start dates and end
18
+                dates determine the range of time within which users enter data for each semester. Visibility determines
19
+                whether a user can select that semester for viewing and/or entering data. Users cannot enter new data in a
20
+                closed semester, even if it is visible.</p>
21
+            <p><strong>Important: At least one semester must be visible, and must have started. While semesters may have
22
+                    overlapping dates, they cannot have the same dates.</strong></p>
23
+            <table class="table table-striped">
24
+                <thead>
25
+                    <tr>
26
+                        <th>Code</th>
27
+                        <th>Name</th>
28
+                        <th>Start Date</th>
29
+                        <th>End Date</th>
30
+                        <th>Visible</th>
31
+                        <th>Save</th>
32
+                    </tr>
33
+                </thead>
34
+                <tbody>
35
+
36
+                </tbody>
37
+                @foreach ($semesters as $semester)
38
+                    <tr>
39
+                        <td data-id="{{ $semester->id }}" class="semester-code">{{ $semester->code }}</td>
40
+                        <td class="semester-name">{{ $semester->name }}</td>
41
+                        <td class="semester-start"><input class="datetimepicker" type="text"
42
+                                value="{{ date('m/d/y H:i:s', strtotime($semester->start)) }}"></td>
43
+                        <td class="semester-end"><input class="datetimepicker" type="text"
44
+                                value="{{ date('m/d/y H:i:s', strtotime($semester->end)) }}"></td>
45
+                        <td class="semester-visible">
46
+                            <select name="" id="">
47
+                                @if ($semester->is_visible)
48
+                                    <option selected="selected" value="1">Yes</option>
49
+                                    <option value="0">No</option>
50
+                                @else
51
+                                    <option value="1">Yes</option>
52
+                                    <option selected="selected" value="0">No</option>
53
+                                @endif
54
+                            </select>
55
+
56
+                        </td>
57
+                        <td class="semester-save"><span class="glyphicon glyphicon-floppy-disk"></span></td>
58
+                    </tr>
59
+                @endforeach
60
+            </table>
61
+        </div>
56
     </div>
62
     </div>
57
-</div>
58
 
63
 
59
 @stop
64
 @stop
60
 
65
 
61
 @section('included-js')
66
 @section('included-js')
62
-<script src="{{ asset('vendor/datetimepicker-master/jquery.datetimepicker.js') }}"></script>
67
+    <script src="{{ asset('vendor/datetimepicker-master/jquery.datetimepicker.js') }}"></script>
63
 @stop
68
 @stop
64
 
69
 
65
 
70
 
68
     // ------------------------------------------------------------------------
73
     // ------------------------------------------------------------------------
69
     // Page Load
74
     // Page Load
70
     // ------------------------------------------------------------------------
75
     // ------------------------------------------------------------------------
71
-    
76
+
72
     $('.datetimepicker').datetimepicker({
77
     $('.datetimepicker').datetimepicker({
73
-        format: 'm/d/y H:i:s'
78
+    format: 'm/d/y H:i:s'
74
     });
79
     });
75
-    
80
+
76
 
81
 
77
     // ------------------------------------------------------------------------
82
     // ------------------------------------------------------------------------
78
     // Events
83
     // Events
80
 
85
 
81
     $('.semester-save').on('click', function(e)
86
     $('.semester-save').on('click', function(e)
82
     {
87
     {
83
-        e.preventDefault();
84
-
85
-        var id = ($(this).siblings('.semester-code').data('id'));
86
-        var start = ($(this).siblings('.semester-start').find('.datetimepicker').val());
87
-        var end = ($(this).siblings('.semester-end').find('.datetimepicker').val());
88
-        var visible = ($(this).siblings('.semester-visible').find(':selected').val());
89
-
90
-        $.post(
91
-            "{{ URL::action('SemestersController@update') }}",
92
-            { 
93
-                id: id,
94
-                start: start,
95
-                end: end,
96
-                visible: visible
97
-            },
98
-            function(data)
99
-            {
100
-               location.reload(true);
101
-            }
102
-        ).fail(function() {
103
-            alert( "error" );
104
-        });
88
+    e.preventDefault();
89
+
90
+    var id = ($(this).siblings('.semester-code').data('id'));
91
+    var start = ($(this).siblings('.semester-start').find('.datetimepicker').val());
92
+    var end = ($(this).siblings('.semester-end').find('.datetimepicker').val());
93
+    var visible = ($(this).siblings('.semester-visible').find(':selected').val());
94
+
95
+    $.post(
96
+    "{{ URL::action('SemestersController@update') }}",
97
+    {
98
+    id: id,
99
+    start: start,
100
+    end: end,
101
+    visible: visible
102
+    },
103
+    function(data)
104
+    {
105
+    location.reload(true);
106
+    }
107
+    ).fail(function() {
108
+    alert( "error" );
109
+    });
105
     });
110
     });
106
 
111
 
107
     // ------------------------------------------------------------------------
112
     // ------------------------------------------------------------------------
110
 
115
 
111
     function selectSchoolandProgram(semester, role)
116
     function selectSchoolandProgram(semester, role)
112
     {
117
     {
113
-        switch(role)
114
-        {
115
-            case 1:
116
-                $('#school option[value="0"]').prop('selected', true);
117
-                $('#program option[value="0"]').prop('selected', true);
118
-                break;
119
-            case 2:
120
-                var school_id = semester.find('.semester-school').data('school-id');
121
-                $('#school option[value="'+school_id+'"]').prop('selected', true);
122
-                fetchPrograms();
123
-                $('#program option[value="0"]').prop('selected', true);
124
-                break;
125
-            case 3:
126
-            case 4:
127
-                var school_id = semester.find('.semester-school').data('school-id');
128
-                var program_id = semester.find('.semester-program').data('program-id');
129
-
130
-                $('#school option[value="'+school_id+'"]').prop('selected', true);
131
-                fetchPrograms();
132
-                $('#program option[value="'+program_id+'"]').prop('selected', true);
133
-                break;
134
-        }
118
+    switch(role)
119
+    {
120
+    case 1:
121
+    $('#school option[value="0"]').prop('selected', true);
122
+    $('#program option[value="0"]').prop('selected', true);
123
+    break;
124
+    case 2:
125
+    var school_id = semester.find('.semester-school').data('school-id');
126
+    $('#school option[value="'+school_id+'"]').prop('selected', true);
127
+    fetchPrograms();
128
+    $('#program option[value="0"]').prop('selected', true);
129
+    break;
130
+    case 3:
131
+    case 4:
132
+    var school_id = semester.find('.semester-school').data('school-id');
133
+    var program_id = semester.find('.semester-program').data('program-id');
134
+
135
+    $('#school option[value="'+school_id+'"]').prop('selected', true);
136
+    fetchPrograms();
137
+    $('#program option[value="'+program_id+'"]').prop('selected', true);
138
+    break;
139
+    }
135
     }
140
     }
136
 
141
 
137
 
142
 
138
 @stop
143
 @stop
139
-
140
-

+ 145
- 122
app/views/local/managers/admins/total_assessment.blade.php View File

1
  @extends('layouts.master')
1
  @extends('layouts.master')
2
 
2
 
3
-@section('navigation')
4
-        @include('local.managers.admins._navigation')
5
-@stop
6
-
7
-@section('main')
8
-    <div class="row">
9
-        <div class="col-md-12">
10
-
11
-            <p>This report contains the Assessment for all Students for all Schools and Programs during the following semester(s):</p>
12
-            <ul>
13
-                @foreach (Session::get('semesters_info') as $semester_info)
14
-                    <li>{{ $semester_info }}</li>
15
-                @endforeach
16
-            </ul>
17
-
18
-
19
-            <!-- <h3>Table of Contents</h3> -->
20
-            <!-- <ol id="table-of-contents" class="upper-roman">
21
-
22
-            </ol> -->
23
-
24
-
25
-            <table class="table table-condensed table-bordered datatable">
26
-                <thead>
27
-                    <tr class="center-text">
28
-                        <th>Semester</th>
29
-                        <th>School or College</th>
30
-                        <th>Program ID</th>
31
-                        <th>Program Code</th>
32
-                        <th>Outcome</th>
33
-                        <th>Student Number</th>
34
-                        <th>Student Program</th>
35
-                        <th>Criteria</th>
36
-                        <th>Courses</th>
37
-                        <th>Expected Result For Achievement</th>
38
-                        <th>Student Result</th>
39
-                    </tr>
40
-                </thead>
41
-                <tfoot>
42
-                    <tr class="column-search">
43
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
44
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
45
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
46
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
47
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
48
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
49
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
50
-                        <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
51
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
52
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
53
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
54
-                    </tr>
55
-                </tfoot>
56
-                <tbody>
57
-                    @foreach ($total_assessments as $total_assessment)
58
-                                <tr>
59
-                                    <td>{{ $total_assessment->semester }}</td>
60
-                                    <td>{{ $total_assessment->school }}</td>
61
-                                    <td>{{ $total_assessment->program }}</td>
62
-                                    <td>{{ $total_assessment->program_code }}</td>
63
-                                    <td>{{ $total_assessment->outcome }}</td>
64
-                                    <td>{{ $total_assessment->student_number }}</td>
65
-                                    <td>{{ $total_assessment->student_conc_code }}</td>
66
-                                    <td>{{ $total_assessment->criterion }}</td>
67
-                                    <td>{{ $total_assessment->course }}</td>
68
-                                    <td>{{ $total_assessment->expected_result }}</td>
69
-                                    <td>{{ $total_assessment->result }}</td>
70
-                                </tr>
71
-                    @endforeach
72
-                </tbody>
73
-            </table>
74
-        </div>
75
-    </div>
76
-    <span class="js-vars"
77
-        data-pdf-url="{{ URL::action('OutcomesController@totalAssessmentReport') }}"
78
-    ></span>
79
-@stop
80
-
81
-@section('included-js')
82
-    @include('global._datatables_js')
83
-@stop
84
-
85
-
86
-@section('javascript')
87
-
88
-// Build table of contents
89
-var outcome = $('.outcome');
90
-var str ='';
91
-str+='<li><a href="#'+outcome.attr('id')+'">'+outcome.text()+'</a><ol class="schools upper-alpha">';
92
-
93
-/*$('[id^='+outcome.attr('id')+'-].school:visible').each(function(e){
94
-    var school = $(this);
95
-    str+='<li><a href="#'+school.attr('id')+'">'+school.text()+'</a><ol class="programs">';
96
-
97
-    $('[id^='+school.attr('id')+'-].program:visible').each(function(e){
98
-
99
-        var program = $(this);
100
-        if(!program.hasClass('no-courses'))
101
-            str+='<li><a href="#'+program.attr('id')+'">'+program.text()+'</a></li>';
102
-        else
103
-            str+='<li>'+program.text()+'</li>';
104
-
105
-    });
106
-
107
-    str+='</ol></li>';
108
-});*/
109
-
110
-str+='</ol></li>';
111
-
112
-//$('#table-of-contents').append(str);
113
-
114
-
115
-// ----------------------------------------------------------------------------
116
-// Events
117
-//
118
-
119
-$('.to-top').on('click', function(e) {
120
-    e.preventDefault();
3
+ @section('navigation')
4
+     @include('local.managers.admins._new_navigation')
5
+ @stop
6
+
7
+ @section('main')
8
+     <div class="row">
9
+         <div class="col-md-12">
10
+
11
+             <p>This report contains the Assessment for all Students for all Schools and Programs during the following
12
+                 semester(s):</p>
13
+             <ul>
14
+                 @foreach (Session::get('semesters_info') as $semester_info)
15
+                     <li>{{ $semester_info }}</li>
16
+                 @endforeach
17
+             </ul>
18
+
19
+
20
+             <!-- <h3>Table of Contents</h3> -->
21
+             <!-- <ol id="table-of-contents" class="upper-roman">
22
+
23
+                </ol> -->
24
+
25
+
26
+             <table class="table table-condensed table-bordered datatable">
27
+                 <thead>
28
+                     <tr class="center-text">
29
+                         <th>Semester</th>
30
+                         <th>School or College</th>
31
+                         <th>Program ID</th>
32
+                         <th>Program Code</th>
33
+                         <th>Outcome</th>
34
+                         <th>Student Number</th>
35
+                         <th>Student Program</th>
36
+                         <th>Criteria</th>
37
+                         <th>Courses</th>
38
+                         <th>Expected Result For Achievement</th>
39
+                         <th>Student Result</th>
40
+                     </tr>
41
+                 </thead>
42
+                 <tfoot>
43
+                     <tr class="column-search">
44
+                         <th><select class="column-search-select form-control">
45
+                                 <option value=""></option>
46
+                             </select></th>
47
+                         <th><select class="column-search-select form-control">
48
+                                 <option value=""></option>
49
+                             </select></th>
50
+                         <th><select class="column-search-select form-control">
51
+                                 <option value=""></option>
52
+                             </select></th>
53
+                         <th><select class="column-search-select form-control">
54
+                                 <option value=""></option>
55
+                             </select></th>
56
+                         <th><select class="column-search-select form-control">
57
+                                 <option value=""></option>
58
+                             </select></th>
59
+                         <th><select class="column-search-select form-control">
60
+                                 <option value=""></option>
61
+                             </select></th>
62
+                         <th><select class="column-search-select form-control">
63
+                                 <option value=""></option>
64
+                             </select></th>
65
+                         <th><input class="column-search-bar form-control" type="text" placeholder="Buscar" /></th>
66
+                         <th><select class="column-search-select form-control">
67
+                                 <option value=""></option>
68
+                             </select></th>
69
+                         <th><select class="column-search-select form-control">
70
+                                 <option value=""></option>
71
+                             </select></th>
72
+                         <th><select class="column-search-select form-control">
73
+                                 <option value=""></option>
74
+                             </select></th>
75
+                     </tr>
76
+                 </tfoot>
77
+                 <tbody>
78
+                     @foreach ($total_assessments as $total_assessment)
79
+                         <tr>
80
+                             <td>{{ $total_assessment->semester }}</td>
81
+                             <td>{{ $total_assessment->school }}</td>
82
+                             <td>{{ $total_assessment->program }}</td>
83
+                             <td>{{ $total_assessment->program_code }}</td>
84
+                             <td>{{ $total_assessment->outcome }}</td>
85
+                             <td>{{ $total_assessment->student_number }}</td>
86
+                             <td>{{ $total_assessment->student_conc_code }}</td>
87
+                             <td>{{ $total_assessment->criterion }}</td>
88
+                             <td>{{ $total_assessment->course }}</td>
89
+                             <td>{{ $total_assessment->expected_result }}</td>
90
+                             <td>{{ $total_assessment->result }}</td>
91
+                         </tr>
92
+                     @endforeach
93
+                 </tbody>
94
+             </table>
95
+         </div>
96
+     </div>
97
+     <span class="js-vars" data-pdf-url="{{ URL::action('OutcomesController@totalAssessmentReport') }}"></span>
98
+ @stop
99
+
100
+ @section('included-js')
101
+     @include('global._datatables_js')
102
+ @stop
103
+
104
+
105
+ @section('javascript')
106
+
107
+     // Build table of contents
108
+     var outcome = $('.outcome');
109
+     var str ='';
110
+     str+='<li><a href="#'+outcome.attr('id')+'">'+outcome.text()+'</a>
111
+         <ol class="schools upper-alpha">';
112
+
113
+             /*$('[id^='+outcome.attr('id')+'-].school:visible').each(function(e){
114
+             var school = $(this);
115
+             str+='<li><a href="#'+school.attr('id')+'">'+school.text()+'</a>
116
+                 <ol class="programs">';
117
+
118
+                     $('[id^='+school.attr('id')+'-].program:visible').each(function(e){
119
+
120
+                     var program = $(this);
121
+                     if(!program.hasClass('no-courses'))
122
+                     str+='<li><a href="#'+program.attr('id')+'">'+program.text()+'</a></li>';
123
+                     else
124
+                     str+='<li>'+program.text()+'</li>';
125
+
126
+                     });
127
+
128
+                     str+='</ol>
129
+             </li>';
130
+             });*/
131
+
132
+             str+='</ol>
133
+     </li>';
134
+
135
+     //$('#table-of-contents').append(str);
136
+
137
+
138
+     // ----------------------------------------------------------------------------
139
+     // Events
140
+     //
141
+
142
+     $('.to-top').on('click', function(e) {
143
+     e.preventDefault();
121
 
144
 
122
      $(this).scrollTop(0);
145
      $(this).scrollTop(0);
123
-    $('html').animate({scrollTop:0}, 1);
124
-    $('body').animate({scrollTop:0}, 1);
125
-})
146
+     $('html').animate({scrollTop:0}, 1);
147
+     $('body').animate({scrollTop:0}, 1);
148
+     })
126
 
149
 
127
-@stop
150
+ @stop

+ 1
- 1
app/views/local/managers/admins/users.blade (4.29.2015 1.43.03 PM).php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-@include('local.managers.admins._navigation')
4
+@include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 
6
 
7
 @section('main')
7
 @section('main')

+ 519
- 512
app/views/local/managers/admins/users.blade.php
File diff suppressed because it is too large
View File


+ 1
- 1
app/views/local/managers/admins/view_template.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
         @if(Auth::user()->role==1)
4
         @if(Auth::user()->role==1)
5
-            @include('local.managers.admins._navigation')
5
+            @include('local.managers.admins._new_navigation')
6
         @elseif(Auth::user()->role==2)
6
         @elseif(Auth::user()->role==2)
7
             @include('local.managers.sCoords._new_navigation')
7
             @include('local.managers.sCoords._new_navigation')
8
         @elseif(Auth::user()->role==3)
8
         @elseif(Auth::user()->role==3)

+ 2
- 1
app/views/local/managers/pCoords/_navigation.blade.php View File

34
                     and Criterias<span class="caret"></span></a>
34
                     and Criterias<span class="caret"></span></a>
35
                 <ul class="dropdown-menu" role="menu">
35
                 <ul class="dropdown-menu" role="menu">
36
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
36
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
37
-                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
37
+                    <li>{{ HTML::linkAction('objective2Controller@viewObjectives', 'Objectives and Criteria') }}
38
+                    </li>
38
                 </ul>
39
                 </ul>
39
             </li>
40
             </li>
40
             @if (count(Auth::user()->courses))
41
             @if (count(Auth::user()->courses))

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

11
                     aria-expanded="false">Objectives<span class="caret"></span></a>
11
                     aria-expanded="false">Objectives<span class="caret"></span></a>
12
                 <ul class="dropdown-menu dropdown-menu-left" role="menu">
12
                 <ul class="dropdown-menu dropdown-menu-left" role="menu">
13
                     <li>{{ HTML::linkAction('Objective2Controller@edit', 'Create/Edit Objectives') }}</li>
13
                     <li>{{ HTML::linkAction('Objective2Controller@edit', 'Create/Edit Objectives') }}</li>
14
-                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'View Objectives and Criteria') }}
14
+                    <li>{{ HTML::linkAction('objective2Controller@viewObjectives', 'View Objectives and Criteria') }}
15
                     </li>
15
                     </li>
16
                 </ul>
16
                 </ul>
17
             </li>
17
             </li>

+ 130
- 100
app/views/local/managers/pCoords/assessment_report.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
13
 @section('main')
13
 @section('main')
14
     <div class="row">
14
     <div class="row">
15
         <div class="col-md-12">
15
         <div class="col-md-12">
16
-            <p>This report contains performance information for all your Program's assessed courses during the following semester(s):</p>
16
+            <p>This report contains performance information for all your Program's assessed courses during the following
17
+                semester(s):</p>
17
             <ul>
18
             <ul>
18
                 @foreach (Session::get('semesters_info') as $semester_info)
19
                 @foreach (Session::get('semesters_info') as $semester_info)
19
                     <li>{{ $semester_info }}</li>
20
                     <li>{{ $semester_info }}</li>
20
                 @endforeach
21
                 @endforeach
21
             </ul>
22
             </ul>
22
 
23
 
23
-            @if($program)
24
+            @if ($program)
24
 
25
 
25
                 <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
26
                 <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
26
                 <table class="table table-condensed table-bordered">
27
                 <table class="table table-condensed table-bordered">
31
                                     {{ $program->school->name }}: {{ $program->name }}
32
                                     {{ $program->school->name }}: {{ $program->name }}
32
                                 </h4>
33
                                 </h4>
33
                             </th>
34
                             </th>
34
-                        </tr> 
35
+                        </tr>
35
                     </thead>
36
                     </thead>
36
                     <tbody>
37
                     <tbody>
37
-                        @if($program->assessesOutcome($outcome->id))
38
-                                <!-- For each grouped course -->
39
-                                @foreach($program->courses as $index2=>$course)
40
-                                    <!-- If grouped course has activities that evaluate the outcome -->
38
+                        @if ($program->assessesOutcome($outcome->id))
39
+                            <!-- For each grouped course -->
40
+                            @foreach ($program->courses as $index2 => $course)
41
+                                <!-- If grouped course has activities that evaluate the outcome -->
41
 
42
 
42
-                                    <?php
43
-
44
-                                        /*$sections_evaluating = Course::has('activities')
45
-                                        ->whereNotNull('outcomes_attempted')
46
-                                        ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
47
-                                        ->with(array('activities'=>function($query) use(&$outcome){
48
-                                            $query->whereNotNull('outcomes_attempted');
49
-                                            $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
50
-                                        ->where('code', $course->code)->where('number',$course->number)
51
-                                        ->whereIn('semester_id', Session::get('semesters_ids'))
52
-                                        ->get();*/
53
-
54
-
55
-                                        $sections_evaluating = Course::has('activities')
56
-                            
57
-                            //->whereNotNull('outcomes_attempted')
58
-                            //->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
59
-                            ->with(array('activities'=>function($query) use(&$outcome, &$course){
60
-                                $activities = DB::table('activities')
61
-                                ->join('activity_criterion', 'activity_criterion.activity_id', '=', 'activities.id')
62
-                                ->join('assessments', 'assessments.activity_criterion_id', '=','activity_criterion.id')
63
-                                ->join('criterion_objective_outcome', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id')
64
-                                ->where('course_id', $course->id)
65
-                                ->where('criterion_objective_outcome.outcome_id', $outcome->id)
66
-                                ->select('activity_id')
67
-                                ->lists('activity_id');
68
-
69
-                                //$query->whereNotNull('outcomes_attempted');
70
-                                //$query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');
71
-                            $query->whereIn('id', $activities);
72
-                        } ))
43
+                                <?php
73
                                 
44
                                 
74
-
75
-                            ->where('code', $course->code)->where('number',$course->number)
76
-                            ->whereIn('semester_id', Session::get('semesters_ids'))
77
-                            ->get();
78
-                            
79
-                            
80
-                                    ?>
81
-
82
-                                    @if(count($sections_evaluating))
83
-                                        <tr>
84
-                                            <td>
85
-                                                <h4>{{ $course->code}}-{{ $course->number }}</h4>
86
-                                            </td>
87
-                                            <td>
45
+                                /*$sections_evaluating = Course::has('activities')
46
+                                                                        ->whereNotNull('outcomes_attempted')
47
+                                                                        ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
48
+                                                                        ->with(array('activities'=>function($query) use(&$outcome){
49
+                                                                            $query->whereNotNull('outcomes_attempted');
50
+                                                                            $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
51
+                                                                        ->where('code', $course->code)->where('number',$course->number)
52
+                                                                        ->whereIn('semester_id', Session::get('semesters_ids'))
53
+                                                                        ->get();*/
54
+                                
55
+                                $sections_evaluating = Course::has('activities')
56
+                                
57
+                                    //->whereNotNull('outcomes_attempted')
58
+                                    //->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
59
+                                    ->with([
60
+                                        'activities' => function ($query) use (&$outcome, &$course) {
61
+                                            $activities = DB::table('activities')
62
+                                                ->join('activity_criterion', 'activity_criterion.activity_id', '=', 'activities.id')
63
+                                                ->join('assessments', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
64
+                                                ->join('criterion_objective_outcome', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id')
65
+                                                ->where('course_id', $course->id)
66
+                                                ->where('criterion_objective_outcome.outcome_id', $outcome->id)
67
+                                                ->select('activity_id')
68
+                                                ->lists('activity_id');
69
+                                
70
+                                            //$query->whereNotNull('outcomes_attempted');
71
+                                            //$query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');
72
+                                            $query->whereIn('id', $activities);
73
+                                        },
74
+                                    ])
75
+                                
76
+                                    ->where('code', $course->code)
77
+                                    ->where('number', $course->number)
78
+                                    ->whereIn('semester_id', Session::get('semesters_ids'))
79
+                                    ->get();
80
+                                
81
+                                ?>
82
+
83
+                                @if (count($sections_evaluating))
84
+                                    <tr>
85
+                                        <td>
86
+                                            <h4>{{ $course->code }}-{{ $course->number }}</h4>
87
+                                        </td>
88
+                                        <td>
88
                                             <!-- For each section -->
89
                                             <!-- For each section -->
89
-                                            @foreach($sections_evaluating as $index3 => $section)
90
-                                                <h5><u>Instance {{ $index3 + 1}}</u></h5>
90
+                                            @foreach ($sections_evaluating as $index3 => $section)
91
+                                                <h5><u>Instance {{ $index3 + 1 }}</u></h5>
91
 
92
 
92
                                                 <!-- For each activity in the section -->
93
                                                 <!-- For each activity in the section -->
93
-                                                @foreach($section->activities as $index4 => $activity)
94
-
94
+                                                @foreach ($section->activities as $index4 => $activity)
95
                                                     <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
95
                                                     <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
96
-                                                    @if($activity->draft ==0 && $activity->diagnostic == 0 && array_key_exists($outcome->id, (array)$activity->o_att_array) && $activity->o_att_array[$outcome->id] >=1)
96
+                                                    @if ($activity->draft == 0 && $activity->diagnostic == 0 && array_key_exists($outcome->id, (array) $activity->o_att_array) && $activity->o_att_array[$outcome->id] >= 1)
97
                                                         <h5>Measure {{ $index4 + 1 }}</h5>
97
                                                         <h5>Measure {{ $index4 + 1 }}</h5>
98
-                                                        <p>A rubric was used in the {{ $section->code }}-{{ $section->number }} ({{ $section->name }}) course ({{ date('M Y', strtotime($course->updated_at))}}) to assess students’ <u>{{ strtolower($outcome->name) }}</u> in the activity: "<strong>{{ $activity->name }}</strong>". N= {{ count($section->students) }}. </p>
99
-                                                        <p>The expected performance level was that <strong>{{ $activity->rubric[0]->expected_percentage }}%</strong> of students participating in the activity would score <strong>{{ $activity->rubric[0]->expected_points }} points</strong> or more in the 1-8 point scale used.</p>
98
+                                                        <p>A rubric was used in the
99
+                                                            {{ $section->code }}-{{ $section->number }}
100
+                                                            ({{ $section->name }}) course
101
+                                                            ({{ date('M Y', strtotime($course->updated_at)) }}) to assess
102
+                                                            students’ <u>{{ strtolower($outcome->name) }}</u> in the
103
+                                                            activity: "<strong>{{ $activity->name }}</strong>". N=
104
+                                                            {{ count($section->students) }}. </p>
105
+                                                        <p>The expected performance level was that
106
+                                                            <strong>{{ $activity->rubric[0]->expected_percentage }}%</strong>
107
+                                                            of students participating in the activity would score
108
+                                                            <strong>{{ $activity->rubric[0]->expected_points }}
109
+                                                                points</strong> or more in the 1-8 point scale used.</p>
100
                                                         <p>The results for each criterion were as follows:</p>
110
                                                         <p>The results for each criterion were as follows:</p>
101
 
111
 
102
                                                         <table class="table table-condensed table-bordered">
112
                                                         <table class="table table-condensed table-bordered">
103
-                                                            @foreach((array)$activity->cap_array as $criterion_id => $criterion)
104
-                                                                @if(in_array($outcome->id, json_decode($criterion->outcome_id))  /*== $outcome->id*/ && $criterion->score_percentage >= $activity->rubric[0]->expected_percentage )
113
+                                                            @foreach ((array) $activity->cap_array as $criterion_id => $criterion)
114
+                                                                @if (in_array($outcome->id, json_decode($criterion->outcome_id)) /*== $outcome->id*/ && $criterion->score_percentage >= $activity->rubric[0]->expected_percentage)
105
                                                                     <tr>
115
                                                                     <tr>
106
                                                                         <td>{{ $criterion->name }}</td>
116
                                                                         <td>{{ $criterion->name }}</td>
107
-                                                                        <td class="col-md-1 success">{{ $criterion->score_percentage }}%</td>
117
+                                                                        <td class="col-md-1 success">
118
+                                                                            {{ $criterion->score_percentage }}%</td>
108
                                                                     </tr>
119
                                                                     </tr>
109
-                                                                @elseif(in_array($outcome->id, json_decode($criterion->outcome_id)) && $criterion->score_percentage < $activity->rubric[0]->expected_percentage )
120
+                                                                @elseif(in_array($outcome->id, json_decode($criterion->outcome_id)) && $criterion->score_percentage < $activity->rubric[0]->expected_percentage)
110
                                                                     <tr>
121
                                                                     <tr>
111
                                                                         <td>{{ $criterion->name }}</td>
122
                                                                         <td>{{ $criterion->name }}</td>
112
-                                                                        <td class="col-md-1 danger">{{ $criterion->score_percentage }}%</td>
123
+                                                                        <td class="col-md-1 danger">
124
+                                                                            {{ $criterion->score_percentage }}%</td>
113
                                                                     </tr>
125
                                                                     </tr>
114
-                                                                @endif  
126
+                                                                @endif
115
                                                             @endforeach
127
                                                             @endforeach
116
                                                         </table>
128
                                                         </table>
117
 
129
 
120
                                                         </ul>
132
                                                         </ul>
121
                                                         <p>
133
                                                         <p>
122
 
134
 
123
-                                                        <?php
135
+                                                            <?php
124
                                                             $o_att_array = $activity->o_att_array;
136
                                                             $o_att_array = $activity->o_att_array;
125
                                                             $o_ach_array = $activity->o_ach_array;
137
                                                             $o_ach_array = $activity->o_ach_array;
126
-                                                            $percentage = ($o_ach_array[$outcome->id]/$o_att_array[$outcome->id])*100;
127
-                                                        ?>
128
-                                                        @if($percentage >= 100)
129
-                                                            The expected goal was reached in <strong>all</strong> (100%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>met</strong>.
130
-                                                        @elseif ($percentage < 1)
131
-                                                            The expected goal was reached in <strong>none</strong> (0%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>not met</strong>.
132
-                                                        @elseif ($percentage >= $outcome->expected_outcome)
133
-                                                            The expected goal was reached in <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the <strong>{{ $o_att_array[$outcome->id] }}</strong> ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>met</strong>.
134
-                                                        @elseif ($percentage < $outcome->expected_outcome)
135
-                                                            The expected goal was reached in <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the <strong>{{ $o_att_array[$outcome->id] }}</strong> ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong> not met</strong>.
136
-                                                        @endif
138
+                                                            $percentage = ($o_ach_array[$outcome->id] / $o_att_array[$outcome->id]) * 100;
139
+                                                            ?>
140
+                                                            @if ($percentage >= 100)
141
+                                                                The expected goal was reached in <strong>all</strong> (100%)
142
+                                                                of the criteria assessed. Therefore, the goal for this
143
+                                                                outcome ({{ $outcome->expected_outcome }}%) was
144
+                                                                <strong>met</strong>.
145
+                                                            @elseif ($percentage < 1)
146
+                                                                The expected goal was reached in <strong>none</strong> (0%)
147
+                                                                of the criteria assessed. Therefore, the goal for this
148
+                                                                outcome ({{ $outcome->expected_outcome }}%) was
149
+                                                                <strong>not met</strong>.
150
+                                                            @elseif ($percentage >= $outcome->expected_outcome)
151
+                                                                The expected goal was reached in
152
+                                                                <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of
153
+                                                                the <strong>{{ $o_att_array[$outcome->id] }}</strong>
154
+                                                                ({{ round($percentage, 2) }}%) criteria assessed.
155
+                                                                Therefore, the goal for this outcome
156
+                                                                ({{ $outcome->expected_outcome }}%) was
157
+                                                                <strong>met</strong>.
158
+                                                            @elseif ($percentage < $outcome->expected_outcome)
159
+                                                                The expected goal was reached in
160
+                                                                <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of
161
+                                                                the <strong>{{ $o_att_array[$outcome->id] }}</strong>
162
+                                                                ({{ round($percentage, 2) }}%) criteria assessed.
163
+                                                                Therefore, the goal for this outcome
164
+                                                                ({{ $outcome->expected_outcome }}%) was <strong> not
165
+                                                                    met</strong>.
166
+                                                            @endif
137
                                                         </p>
167
                                                         </p>
138
 
168
 
139
                                                         <h5><strong>Transformative Actions</strong></h5>
169
                                                         <h5><strong>Transformative Actions</strong></h5>
140
-                                                        @if($activity->transforming_actions)
170
+                                                        @if ($activity->transforming_actions)
141
                                                             {{ $activity->transforming_actions }}
171
                                                             {{ $activity->transforming_actions }}
142
                                                         @else
172
                                                         @else
143
                                                             None
173
                                                             None
144
                                                         @endif
174
                                                         @endif
145
                                                         <br><br>
175
                                                         <br><br>
146
-
147
-                                                    @elseif($activity->draft ==0)
176
+                                                    @elseif($activity->draft == 0)
148
                                                         <h5>Measure {{ $index4 + 1 }}</h5>
177
                                                         <h5>Measure {{ $index4 + 1 }}</h5>
149
                                                         <em>Outcome not measured.</em>
178
                                                         <em>Outcome not measured.</em>
150
                                                     @else
179
                                                     @else
151
-                                                    
152
                                                     @endif
180
                                                     @endif
153
                                                 @endforeach
181
                                                 @endforeach
154
                                             @endforeach
182
                                             @endforeach
155
-                                            </td>
156
-                                        </tr>
157
-                                    @else
158
-                                        <tr>
159
-                                            <td>
160
-                                                <h4>{{ $course->code}}-{{ $course->number }}</h4>
161
-                                            </td>
162
-                                            <td>
163
-                                                <h4>No assessment.</h4>
164
-                                            </td>
165
-                                        </tr>
166
-                                    @endif
167
-                                @endforeach
183
+                                        </td>
184
+                                    </tr>
185
+                                @else
186
+                                    <tr>
187
+                                        <td>
188
+                                            <h4>{{ $course->code }}-{{ $course->number }}</h4>
189
+                                        </td>
190
+                                        <td>
191
+                                            <h4>No assessment.</h4>
192
+                                        </td>
193
+                                    </tr>
194
+                                @endif
195
+                            @endforeach
168
                         @else
196
                         @else
169
                             <tr>
197
                             <tr>
170
-                                <td id="{{ $outcome->id }}-{{ $program->school->id }}-{{ $program->id }}" class="program no-courses col-md-3" >{{ $program->name }}</td>
198
+                                <td id="{{ $outcome->id }}-{{ $program->school->id }}-{{ $program->id }}"
199
+                                    class="program no-courses col-md-3">{{ $program->name }}</td>
171
                                 <td class="col-md-9">
200
                                 <td class="col-md-9">
172
                                     This program does not assess {{ $outcome->name }}.
201
                                     This program does not assess {{ $outcome->name }}.
173
                                 </td>
202
                                 </td>
176
                     </tbody>
205
                     </tbody>
177
                 </table>
206
                 </table>
178
             @else
207
             @else
179
-                <p class="lead">No professors have assessed courses for your program during the selected semesters.</p>
208
+                <p class="lead">No professors have assessed courses for your program during the selected
209
+                    semesters.</p>
180
             @endif
210
             @endif
181
         </div>
211
         </div>
182
     </div>
212
     </div>

+ 11
- 9
app/views/local/managers/pCoords/assessment_reports.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
13
 @section('main')
13
 @section('main')
14
     <div class="row">
14
     <div class="row">
15
         <div class="col-md-12">
15
         <div class="col-md-12">
16
-            <p>Click the links below to see reports for your program's assessed courses during the following semester(s):</p>
16
+            <p>Click the links below to see reports for your program's assessed courses during the following semester(s):
17
+            </p>
17
             <ul>
18
             <ul>
18
                 @foreach (Session::get('semesters_info') as $semester_info)
19
                 @foreach (Session::get('semesters_info') as $semester_info)
19
                     <li>{{ $semester_info }}</li>
20
                     <li>{{ $semester_info }}</li>
25
                 <thead>
26
                 <thead>
26
                     <tr>
27
                     <tr>
27
                         <td></td>
28
                         <td></td>
28
-                        @foreach($programs as $program)
29
+                        @foreach ($programs as $program)
29
                             <td><span class="active"></span> {{ $program->name }}</td>
30
                             <td><span class="active"></span> {{ $program->name }}</td>
30
                         @endforeach
31
                         @endforeach
31
                     </tr>
32
                     </tr>
32
                 </thead>
33
                 </thead>
33
-                @foreach($outcomes as $outcome)
34
+                @foreach ($outcomes as $outcome)
34
                     <tr>
35
                     <tr>
35
                         <td>
36
                         <td>
36
                             {{ $outcome->name }}
37
                             {{ $outcome->name }}
37
                         </td>
38
                         </td>
38
 
39
 
39
-                        @foreach($programs as $program)
40
+                        @foreach ($programs as $program)
40
                             <td>
41
                             <td>
41
-                                <a href="{{ URL::action('OutcomesController@programAssessmentReport', array($outcome->id, $program->id))}}">
42
+                                <a
43
+                                    href="{{ URL::action('OutcomesController@programAssessmentReport', [$outcome->id, $program->id]) }}">
42
                                     <span class="glyphicon glyphicon-eye-open icon-btn"></span> View
44
                                     <span class="glyphicon glyphicon-eye-open icon-btn"></span> View
43
                                 </a>
45
                                 </a>
44
                             </td>
46
                             </td>

+ 24
- 23
app/views/local/managers/pCoords/new_assessment_report.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
42
                         <?php
42
                         <?php
43
                         
43
                         
44
                         /*$sections_evaluating = Course::has('activities')
44
                         /*$sections_evaluating = Course::has('activities')
45
-                                                                                                                                                                                                                                                                                                                                                                ->whereNotNull('outcomes_attempted')
46
-                                                                                                                                                                                                                                                                                                                                                                ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
47
-                                                                                                                                                                                                                                                                                                                                                                ->with(array('activities'=>function($query) use(&$outcome){
48
-                                                                                                                                                                                                                                                                                                                                                                    $query->whereNotNull('outcomes_attempted');
49
-                                                                                                                                                                                                                                                                                                                                                                    $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
50
-                                                                                                                                                                                                                                                                                                                                                                ->where('code', $course->code)->where('number',$course->number)
51
-                                                                                                                                                                                                                                                                                                                                                                ->whereIn('semester_id', Session::get('semesters_ids'))
52
-                                                                                                                                                                                                                                                                                                                                                                ->get();*/
45
+                                                                                                                                                                                                                                                                                                                                                                                        ->whereNotNull('outcomes_attempted')
46
+                                                                                                                                                                                                                                                                                                                                                                                        ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
47
+                                                                                                                                                                                                                                                                                                                                                                                        ->with(array('activities'=>function($query) use(&$outcome){
48
+                                                                                                                                                                                                                                                                                                                                                                                            $query->whereNotNull('outcomes_attempted');
49
+                                                                                                                                                                                                                                                                                                                                                                                            $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
50
+                                                                                                                                                                                                                                                                                                                                                                                        ->where('code', $course->code)->where('number',$course->number)
51
+                                                                                                                                                                                                                                                                                                                                                                                        ->whereIn('semester_id', Session::get('semesters_ids'))
52
+                                                                                                                                                                                                                                                                                                                                                                                        ->get();*/
53
                         
53
                         
54
                         $sections_evaluating = Course::has('activities')
54
                         $sections_evaluating = Course::has('activities')
55
                         
55
                         
130
                                     <br>
130
                                     <br>
131
                                     <h4>Performance of Students by Learning Outcome Criteria</h4>
131
                                     <h4>Performance of Students by Learning Outcome Criteria</h4>
132
                                     <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
132
                                     <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
133
-                                    <p style="display: inline; margin:-30px"> <i>{{ $activity->rubric[0]->expected_points }} or
133
+                                    <p style="display: inline; margin:-30px">
134
+                                        <i>{{ $activity->rubric[0]->expected_points }} or
134
                                             more</i>
135
                                             more</i>
135
                                     </p>
136
                                     </p>
136
                                     <br>
137
                                     <br>
137
                                     <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
138
                                     <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
138
                                         target by criterion: </h5>
139
                                         target by criterion: </h5>
139
-                                    <p style="display: inline; margin:-30px"> <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
140
+                                    <p style="display: inline; margin:-30px">
141
+                                        <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
140
                                     </p>
142
                                     </p>
141
 
143
 
142
                                     <br>
144
                                     <br>
206
 
208
 
207
                                     </table>
209
                                     </table>
208
                                     <br>
210
                                     <br>
209
-<!--                                     <h5 style="display: inline; margin:30px;">Formative Actions: </h5> -->
211
+                                    <!--                                     <h5 style="display: inline; margin:30px;">Formative Actions: </h5> -->
210
                                     <h5>Formative Actions: </h5>
212
                                     <h5>Formative Actions: </h5>
211
                                     <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
213
                                     <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
212
                                     @if ($formative_actions)
214
                                     @if ($formative_actions)
213
                                         <p style="display: inline; margin:30px;">
215
                                         <p style="display: inline; margin:30px;">
214
-										@if ($formative_actions[0]->at_text!=$formative_actions[0]->description)
215
-
216
-                                            <u>{{ $formative_actions[0]->at_text }}:
217
-                                            </u>
218
-                                    @endif
216
+                                            @if ($formative_actions[0]->at_text != $formative_actions[0]->description)
217
+                                                <u>{{ $formative_actions[0]->at_text }}:
218
+                                                </u>
219
+                                            @endif
219
 
220
 
220
                                             <i>{{ $formative_actions[0]->description }}
221
                                             <i>{{ $formative_actions[0]->description }}
221
                                             </i>
222
                                             </i>
222
                                         </p>
223
                                         </p>
223
                                         <br>
224
                                         <br>
224
-<!--                                         <h5 style="display: inline; margin:30px;"> -->
225
+                                        <!--                                         <h5 style="display: inline; margin:30px;"> -->
225
                                         <h5>
226
                                         <h5>
226
-                                        Formative Action's Associated
227
+                                            Formative Action's Associated
227
                                             Criteria: </h5>
228
                                             Criteria: </h5>
228
                                         <ul>
229
                                         <ul>
229
                                             @foreach ($formative_actions as $criteria)
230
                                             @foreach ($formative_actions as $criteria)
232
                                         </ul>
233
                                         </ul>
233
                                     @endif
234
                                     @endif
234
 
235
 
235
-<!--                                     <h5 style="display: inline; margin:30px;"> -->
236
+                                    <!--                                     <h5 style="display: inline; margin:30px;"> -->
236
                                     <h5>
237
                                     <h5>
237
-                                    Assessment Comments: </h5>
238
+                                        Assessment Comments: </h5>
238
                                     @if ($activity->assessment_comments != null)
239
                                     @if ($activity->assessment_comments != null)
239
                                         <p style="display: inline; margin:30px;">{{ $activity->assessment_comments }}</p>
240
                                         <p style="display: inline; margin:30px;">{{ $activity->assessment_comments }}</p>
240
                                     @endif
241
                                     @endif
241
-<!--                                     <br> -->
242
+                                    <!--                                     <br> -->
242
                                     <hr>
243
                                     <hr>
243
-<!--                                     <br> -->
244
+                                    <!--                                     <br> -->
244
 
245
 
245
                                     <h4>Performance of Students by Learning Outcome</h4>
246
                                     <h4>Performance of Students by Learning Outcome</h4>
246
                                     <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
247
                                     <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>

+ 2
- 2
app/views/local/managers/sCoords/_navigation.blade.php View File

10
                     and Criterias<span class="caret"></span></a>
10
                     and Criterias<span class="caret"></span></a>
11
                 <ul class="dropdown-menu" role="menu">
11
                 <ul class="dropdown-menu" role="menu">
12
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
12
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
13
-                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
13
+                    <li>{{ HTML::linkAction('objective2Controller@viewObjectives', 'Objectives and Criteria') }}
14
+                    </li>
14
                 </ul>
15
                 </ul>
15
             </li>
16
             </li>
16
             <li class="dropdown">
17
             <li class="dropdown">
50
                     @if (count(Auth::user()->courses))
51
                     @if (count(Auth::user()->courses))
51
                         <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Results') }}
52
                         <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Results') }}
52
                         </li>
53
                         </li>
53
-
54
                     @endif
54
                     @endif
55
                     <li>{{ HTML::linkAction('AnnualPlansController@selectProgramPlan', 'Annual Reports') }}</li>
55
                     <li>{{ HTML::linkAction('AnnualPlansController@selectProgramPlan', 'Annual Reports') }}</li>
56
                     <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Formative Actions') }}
56
                     <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Formative Actions') }}

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

11
                     aria-expanded="false">Objectives<span class="caret"></span></a>
11
                     aria-expanded="false">Objectives<span class="caret"></span></a>
12
                 <ul class="dropdown-menu dropdown-menu-left" role="menu">
12
                 <ul class="dropdown-menu dropdown-menu-left" role="menu">
13
                     <li>{{ HTML::linkAction('Objective2Controller@edit', 'Create/Edit Objectives') }}</li>
13
                     <li>{{ HTML::linkAction('Objective2Controller@edit', 'Create/Edit Objectives') }}</li>
14
-                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'View Objectives and Criteria') }}
14
+                    <li>{{ HTML::linkAction('objective2Controller@viewObjectives', 'View Objectives and Criteria') }}
15
                     </li>
15
                     </li>
16
                 </ul>
16
                 </ul>
17
             </li>
17
             </li>

+ 5
- 5
app/views/local/managers/sCoords/assessment_report.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
88
 
88
 
89
                                                     <!-- For each activity in the section -->
89
                                                     <!-- For each activity in the section -->
90
                                                     @foreach ($section->activities as $index4 => $activity)
90
                                                     @foreach ($section->activities as $index4 => $activity)
91
-
92
                                                         <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
91
                                                         <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
93
                                                         @if (array_key_exists($outcome->id, (array) $activity->o_att_array) && $activity->o_att_array[$outcome->id] >= 1)
92
                                                         @if (array_key_exists($outcome->id, (array) $activity->o_att_array) && $activity->o_att_array[$outcome->id] >= 1)
94
                                                             <h5>Measure {{ $index4 + 1 }}</h5>
93
                                                             <h5>Measure {{ $index4 + 1 }}</h5>
95
                                                             <p>A rubric was used in the
94
                                                             <p>A rubric was used in the
96
                                                                 {{ $section->code }}-{{ $section->number }}
95
                                                                 {{ $section->code }}-{{ $section->number }}
97
-                                                                ({{ $section->name }}) course
96
+                                                                ({{ $section->name }})
97
+                                                                course
98
                                                                 ({{ date('M Y', strtotime($course->updated_at)) }}) to
98
                                                                 ({{ date('M Y', strtotime($course->updated_at)) }}) to
99
                                                                 assess students’ <u>{{ strtolower($outcome->name) }}</u>
99
                                                                 assess students’ <u>{{ strtolower($outcome->name) }}</u>
100
                                                                 in the activity:
100
                                                                 in the activity:
104
                                                                 <strong>{{ $activity->rubric->expected_percentage }}%</strong>
104
                                                                 <strong>{{ $activity->rubric->expected_percentage }}%</strong>
105
                                                                 of students participating in the activity would score
105
                                                                 of students participating in the activity would score
106
                                                                 <strong>{{ $activity->rubric->expected_points }}
106
                                                                 <strong>{{ $activity->rubric->expected_points }}
107
-                                                                    points</strong> or more in the 1-8 point scale used.</p>
107
+                                                                    points</strong> or more in the 1-8 point scale used.
108
+                                                            </p>
108
                                                             <p>The results for each criterion were as follows:</p>
109
                                                             <p>The results for each criterion were as follows:</p>
109
 
110
 
110
                                                             <table class="table table-condensed table-bordered">
111
                                                             <table class="table table-condensed table-bordered">
177
                                                                 None
178
                                                                 None
178
                                                             @endif
179
                                                             @endif
179
                                                             <br><br>
180
                                                             <br><br>
180
-
181
                                                         @else
181
                                                         @else
182
                                                             <h5>Measure {{ $index4 + 1 }}</h5>
182
                                                             <h5>Measure {{ $index4 + 1 }}</h5>
183
                                                             <em>Outcome not measured.</em>
183
                                                             <em>Outcome not measured.</em>

+ 11
- 11
app/views/local/managers/sCoords/assessment_reports.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
22
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
22
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
23
 
23
 
24
             <ol id="table-of-contents" class="upper-roman">
24
             <ol id="table-of-contents" class="upper-roman">
25
-            @foreach($outcomes as $outcome)
26
-                <li>
27
-                    <a href="{{ URL::action('OutcomesController@schoolAssessmentReport', array($outcome->id))}}">
28
-                        {{ $outcome->name }}
29
-                    </a>
30
-                </li>
31
-            @endforeach
25
+                @foreach ($outcomes as $outcome)
26
+                    <li>
27
+                        <a href="{{ URL::action('OutcomesController@schoolAssessmentReport', [$outcome->id]) }}">
28
+                            {{ $outcome->name }}
29
+                        </a>
30
+                    </li>
31
+                @endforeach
32
             </ol>
32
             </ol>
33
         </div>
33
         </div>
34
     </div>
34
     </div>

+ 9
- 9
app/views/local/managers/sCoords/new_assessment_report.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
64
                                     <?php
64
                                     <?php
65
                                     
65
                                     
66
                                     /*$sections_evaluating = Course::has('activities')
66
                                     /*$sections_evaluating = Course::has('activities')
67
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereNotNull('outcomes_attempted')
68
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
69
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->with(array('activities'=>function($query) use(&$outcome){
70
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    $query->whereNotNull('outcomes_attempted');
71
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
72
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->where('code', $course->code)->where('number',$course->number)
73
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereIn('semester_id', Session::get('semesters_ids'))
74
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->get();*/
67
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereNotNull('outcomes_attempted')
68
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
69
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->with(array('activities'=>function($query) use(&$outcome){
70
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        $query->whereNotNull('outcomes_attempted');
71
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
72
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->where('code', $course->code)->where('number',$course->number)
73
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereIn('semester_id', Session::get('semesters_ids'))
74
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->get();*/
75
                                     
75
                                     
76
                                     $sections_evaluating = Course::has('activities')
76
                                     $sections_evaluating = Course::has('activities')
77
                                     
77
                                     

+ 1
- 1
app/views/local/managers/shared/annual-plans.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)

+ 9
- 9
app/views/local/managers/shared/annual_report.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
68
 
68
 
69
 
69
 
70
                     <!-- <div class="table-responsive">
70
                     <!-- <div class="table-responsive">
71
-                                                                                                                                                                                                                                                                                                                    <table class="table table-striped table-condensed datatable" style="table-layout: fixed ; width : 100%">
72
-                                                                                                                                                                                                                                                                                                                      <thead><tr><th>Objectives for courses</th><th>Criteria per Course</th><th>Transformative Actions</th></tr></thead>
73
-                                                                                                                                                                                                                                                                                                                      <tbody>
74
-                                                                                                                                                                                                                                                                                                                      </tbody>
75
-
76
-                                                                                                                                                                                                                                                                                                                    </table>
77
-                                                                                                                                                                                                                                                                                                                    
78
-                                                                                                                                                                                                                                                                                                                </div>-->
71
+                                                                                                                                                                                                                                                                                                                        <table class="table table-striped table-condensed datatable" style="table-layout: fixed ; width : 100%">
72
+                                                                                                                                                                                                                                                                                                                          <thead><tr><th>Objectives for courses</th><th>Criteria per Course</th><th>Transformative Actions</th></tr></thead>
73
+                                                                                                                                                                                                                                                                                                                          <tbody>
74
+                                                                                                                                                                                                                                                                                                                          </tbody>
75
+
76
+                                                                                                                                                                                                                                                                                                                        </table>
77
+                                                                                                                                                                                                                                                                                                                        
78
+                                                                                                                                                                                                                                                                                                                    </div>-->
79
 
79
 
80
                 </div>
80
                 </div>
81
             </div>
81
             </div>

+ 12
- 12
app/views/local/managers/shared/annual_select.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
14
     <div class="row">
14
     <div class="row">
15
         <div class="col-md-12">
15
         <div class="col-md-12">
16
             <p>Click the links below to see the reports on Annual Plans </p>
16
             <p>Click the links below to see the reports on Annual Plans </p>
17
-           
17
+
18
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
18
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
19
 
19
 
20
             <ol id="table-of-contents" class="upper-roman">
20
             <ol id="table-of-contents" class="upper-roman">
21
-            @foreach($programs as $program)
22
-                <li>
23
-                    <a href="{{ URL::action('OutcomesController@annualReport', array($program->id))}}">
24
-                        {{ $program->name }}
25
-                    </a>
26
-                </li>
27
-            @endforeach
21
+                @foreach ($programs as $program)
22
+                    <li>
23
+                        <a href="{{ URL::action('OutcomesController@annualReport', [$program->id]) }}">
24
+                            {{ $program->name }}
25
+                        </a>
26
+                    </li>
27
+                @endforeach
28
             </ol>
28
             </ol>
29
         </div>
29
         </div>
30
     </div>
30
     </div>

+ 196
- 152
app/views/local/managers/shared/assessment_report_backup.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-        @include('local.managers.admins._navigation')
4
+    @include('local.managers.admins._new_navigation')
5
 @stop
5
 @stop
6
 
6
 
7
 @section('main')
7
 @section('main')
8
     <div class="row">
8
     <div class="row">
9
         <div class="col-md-12">
9
         <div class="col-md-12">
10
-            <p>This report contains performance information for all Schools and Programs with assessed courses during the following semester(s):</p>
10
+            <p>This report contains performance information for all Schools and Programs with assessed courses during the
11
+                following semester(s):</p>
11
             <ul>
12
             <ul>
12
                 @foreach (Session::get('semesters_info') as $semester_info)
13
                 @foreach (Session::get('semesters_info') as $semester_info)
13
                     <li>{{ $semester_info }}</li>
14
                     <li>{{ $semester_info }}</li>
16
 
17
 
17
             <p>Unlinked programs did not assess this outcome.</p>
18
             <p>Unlinked programs did not assess this outcome.</p>
18
 
19
 
19
-            
20
+
20
             <h3>Table of Contents</h3>
21
             <h3>Table of Contents</h3>
21
             <ol id="table-of-contents" class="upper-roman">
22
             <ol id="table-of-contents" class="upper-roman">
22
-                
23
+
23
             </ol>
24
             </ol>
24
 
25
 
25
             <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
26
             <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
26
             @foreach ($schools as $school)
27
             @foreach ($schools as $school)
27
-            <table class="table table-condensed table-bordered">
28
-                <thead>
29
-                    <tr>
30
-                        <th colspan="12">
31
-                            <h4 id="{{ $outcome->id }}-{{ $school->id }}" class="school table-header" >{{ $school->name }}
32
-                                </h4>
33
-                            <a class="to-top" href="">
34
-                                <span class="glyphicon glyphicon-arrow-up hidden-print"></span>
35
-                                To Top
36
-                            </a>
37
-
38
-                        </th>
39
-                    </tr>
40
-                    <tr class="center-text">
41
-                        <th>Academic Program</th>
42
-                        <th>Findings</th>
43
-                    </tr
44
-                </thead>
45
-                <tbody>
46
-                @foreach ($school->programs as $program)
47
-                    @if($program->assessesOutcome($outcome->id))
28
+                <table class="table table-condensed table-bordered">
29
+                    <thead>
48
                         <tr>
30
                         <tr>
49
-                            <td id="{{ $outcome->id }}-{{ $school->id }}-{{ $program->id }}" class="program col-md-3" >{{ $program->name }}</td>
50
-                            <td class="col-md-9">
51
-
52
-                            <!-- For each grouped course -->
53
-                            @foreach($program->courses as $index2=>$course)
54
-                                <!-- If grouped course has activities that evaluate the outcome -->
55
-
56
-                                <?php
57
-
58
-                                    $sections_evaluating = Course::has('activities')
59
-                                    ->whereNotNull('outcomes_attempted')
60
-                                    ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
61
-                                    ->with(array('activities'=>function($query) use(&$outcome){
62
-                                        $query->whereNotNull('outcomes_attempted');
63
-                                        $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
64
-                                    ->where('code', $course->code)->where('number',$course->number)
65
-                                    ->get();
66
-                                ?>
67
-
68
-                                @if(count($sections_evaluating))
69
-                                    <h4>Instance {{ $index2 +1 }}: {{ $course->code}}-{{ $course->number }}</h4>
70
-
71
-                                    <!-- For each section -->
72
-                                    @foreach($sections_evaluating as $index3 => $section)
73
-                                        <h5><u>Section {{ $index3 + 1}}</u></h5>
74
-
75
-                                        <!-- For each activity in the section -->
76
-                                        @foreach($section->activities as $index4 => $activity)
77
-
78
-                                            <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
79
-                                            @if($activity->rubric_id != NULL && array_key_exists($outcome->id, (array)$activity->o_att_array) && $activity->o_att_array[$outcome->id] >=1)
80
-                                                <h5>Activity {{ $index4 + 1 }}</h5>
81
-                                                <p>A rubric was used in the {{ $section->code }}-{{ $section->number }} ({{ $section->name }}) course ({{ date('M Y', strtotime($course->updated_at))}}) to assess students’ <u>{{ strtolower($outcome->name) }}</u> in the activity: "{{ $activity->name }}". N= {{ count($section->students) }}. </p>  
82
-                                                <p>The expected performance level was that {{ $activity->rubric->expected_percentage }}% of students participating in the activity would score {{ $activity->rubric->expected_points }} points or more in the 1-8 point scale used.</p>
83
-                                                <p>The results for each criterion were as follows:</p>
84
-                                                
85
-                                                <table class="table table-condensed table-bordered">
86
-                                                    <tbody>
87
-                                                        @foreach((array)$activity->cap_array as $index5 => $cap)
88
-                                                            <tr>
89
-                                                            @if(Criterion::find($index5)['outcome_id'] == $outcome->id && $cap >= $activity->rubric->expected_percentage )
90
-                                                                <td>{{ Criterion::find($index5)['name'] }}</td>
91
-                                                                <td class="col-md-1 success">{{ $cap }}%</td>
92
-                                                            @elseif(Criterion::find($index5)['outcome_id'] == $outcome->id && $cap < $activity->rubric->expected_percentage )
93
-                                                                <td>{{ Criterion::find($index5)['name'] }}</td>
94
-                                                                <td class="col-md-1 danger">{{ $cap }}%</td>
31
+                            <th colspan="12">
32
+                                <h4 id="{{ $outcome->id }}-{{ $school->id }}" class="school table-header">
33
+                                    {{ $school->name }}
34
+                                </h4>
35
+                                <a class="to-top" href="">
36
+                                    <span class="glyphicon glyphicon-arrow-up hidden-print"></span>
37
+                                    To Top
38
+                                </a>
39
+
40
+                            </th>
41
+                        </tr>
42
+                        <tr class="center-text">
43
+                            <th>Academic Program</th>
44
+                            <th>Findings</th>
45
+                        </tr </thead>
46
+                    <tbody>
47
+                        @foreach ($school->programs as $program)
48
+                            @if ($program->assessesOutcome($outcome->id))
49
+                                <tr>
50
+                                    <td id="{{ $outcome->id }}-{{ $school->id }}-{{ $program->id }}"
51
+                                        class="program col-md-3">{{ $program->name }}</td>
52
+                                    <td class="col-md-9">
53
+
54
+                                        <!-- For each grouped course -->
55
+                                        @foreach ($program->courses as $index2 => $course)
56
+                                            <!-- If grouped course has activities that evaluate the outcome -->
57
+
58
+                                            <?php
59
+                                            
60
+                                            $sections_evaluating = Course::has('activities')
61
+                                                ->whereNotNull('outcomes_attempted')
62
+                                                ->whereRaw('outcomes_attempted not like \'%"' . $outcome->id . '":0%\'')
63
+                                                ->with([
64
+                                                    'activities' => function ($query) use (&$outcome) {
65
+                                                        $query->whereNotNull('outcomes_attempted');
66
+                                                        $query->whereRaw('outcomes_attempted not like \'%"' . $outcome->id . '":0%\'');
67
+                                                    },
68
+                                                ])
69
+                                                ->where('code', $course->code)
70
+                                                ->where('number', $course->number)
71
+                                                ->get();
72
+                                            ?>
73
+
74
+                                            @if (count($sections_evaluating))
75
+                                                <h4>Instance {{ $index2 + 1 }}:
76
+                                                    {{ $course->code }}-{{ $course->number }}</h4>
77
+
78
+                                                <!-- For each section -->
79
+                                                @foreach ($sections_evaluating as $index3 => $section)
80
+                                                    <h5><u>Section {{ $index3 + 1 }}</u></h5>
81
+
82
+                                                    <!-- For each activity in the section -->
83
+                                                    @foreach ($section->activities as $index4 => $activity)
84
+                                                        <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
85
+                                                        @if ($activity->rubric_id != null && array_key_exists($outcome->id, (array) $activity->o_att_array) && $activity->o_att_array[$outcome->id] >= 1)
86
+                                                            <h5>Activity {{ $index4 + 1 }}</h5>
87
+                                                            <p>A rubric was used in the
88
+                                                                {{ $section->code }}-{{ $section->number }}
89
+                                                                ({{ $section->name }}) course
90
+                                                                ({{ date('M Y', strtotime($course->updated_at)) }}) to
91
+                                                                assess students’ <u>{{ strtolower($outcome->name) }}</u>
92
+                                                                in the activity: "{{ $activity->name }}". N=
93
+                                                                {{ count($section->students) }}. </p>
94
+                                                            <p>The expected performance level was that
95
+                                                                {{ $activity->rubric->expected_percentage }}% of students
96
+                                                                participating in the activity would score
97
+                                                                {{ $activity->rubric->expected_points }} points or more
98
+                                                                in the 1-8 point scale used.</p>
99
+                                                            <p>The results for each criterion were as follows:</p>
100
+
101
+                                                            <table class="table table-condensed table-bordered">
102
+                                                                <tbody>
103
+                                                                    @foreach ((array) $activity->cap_array as $index5 => $cap)
104
+                                                                        <tr>
105
+                                                                            @if (Criterion::find($index5)['outcome_id'] == $outcome->id && $cap >= $activity->rubric->expected_percentage)
106
+                                                                                <td>{{ Criterion::find($index5)['name'] }}
107
+                                                                                </td>
108
+                                                                                <td class="col-md-1 success">
109
+                                                                                    {{ $cap }}%</td>
110
+                                                                            @elseif(Criterion::find($index5)['outcome_id'] == $outcome->id && $cap < $activity->rubric->expected_percentage)
111
+                                                                                <td>{{ Criterion::find($index5)['name'] }}
112
+                                                                                </td>
113
+                                                                                <td class="col-md-1 danger">
114
+                                                                                    {{ $cap }}%</td>
115
+                                                                            @endif
116
+                                                                        </tr>
117
+                                                                    @endforeach
118
+                                                                </tbody>
119
+                                                            </table>
120
+
121
+                                                            <ul>
122
+
123
+                                                            </ul>
124
+                                                            <p>
125
+
126
+                                                                <?php
127
+                                                                $o_att_array = $activity->o_att_array;
128
+                                                                $o_ach_array = $activity->o_ach_array;
129
+                                                                $percentage = ($o_ach_array[$outcome->id] / $o_att_array[$outcome->id]) * 100;
130
+                                                                ?>
131
+                                                                @if ($percentage >= 100)
132
+                                                                    The expected goal was reached in <strong>all</strong>
133
+                                                                    (100%) of the criteria assessed. Therefore, the goal for
134
+                                                                    this outcome ({{ $outcome->expected_outcome }}%) was
135
+                                                                    <strong>met</strong>.
136
+                                                                @elseif ($percentage < 1)
137
+                                                                    The expected goal was reached in <strong>none</strong>
138
+                                                                    (0%) of the criteria assessed. Therefore, the goal for
139
+                                                                    this outcome ({{ $outcome->expected_outcome }}%) was
140
+                                                                    <strong>not met</strong>.
141
+                                                                @elseif ($percentage >= $outcome->expected_outcome)
142
+                                                                    The expected goal was reached in
143
+                                                                    <strong>{{ $o_ach_array[$outcome->id] }}</strong> out
144
+                                                                    of the
145
+                                                                    <strong>{{ $o_att_array[$outcome->id] }}</strong>
146
+                                                                    ({{ round($percentage, 2) }}%) criteria assessed.
147
+                                                                    Therefore, the goal for this outcome
148
+                                                                    ({{ $outcome->expected_outcome }}%) was
149
+                                                                    <strong>met</strong>.
150
+                                                                @elseif ($percentage < $outcome->expected_outcome)
151
+                                                                    The expected goal was reached in
152
+                                                                    <strong>{{ $o_ach_array[$outcome->id] }}</strong> out
153
+                                                                    of the
154
+                                                                    <strong>{{ $o_att_array[$outcome->id] }}</strong>
155
+                                                                    ({{ round($percentage, 2) }}%) criteria assessed.
156
+                                                                    Therefore, the goal for this outcome
157
+                                                                    ({{ $outcome->expected_outcome }}%) was <strong> not
158
+                                                                        met</strong>.
159
+                                                                @endif
160
+                                                            </p>
161
+
162
+                                                            <h5>Transformative Actions</h5>
163
+                                                            @if ($activity->transforming_actions)
164
+                                                                {{ $activity->transforming_actions }}
165
+                                                            @else
166
+                                                                None
95
                                                             @endif
167
                                                             @endif
96
-                                                            </tr>
97
-                                                        @endforeach
98
-                                                    </tbody>
99
-                                                </table>
100
-
101
-                                                <ul>
102
-                                                        
103
-                                                </ul>
104
-                                                <p>
105
-
106
-                                                <?php 
107
-                                                    $o_att_array = $activity->o_att_array;
108
-                                                    $o_ach_array = $activity->o_ach_array;
109
-                                                    $percentage = ($o_ach_array[$outcome->id]/$o_att_array[$outcome->id])*100;
110
-                                                ?>
111
-                                                @if($percentage >= 100)
112
-                                                    The expected goal was reached in <strong>all</strong> (100%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>met</strong>.
113
-                                                @elseif ($percentage < 1)
114
-                                                    The expected goal was reached in <strong>none</strong> (0%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>not met</strong>.
115
-                                                @elseif ($percentage >= $outcome->expected_outcome)
116
-                                                    The expected goal was reached in <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the <strong>{{ $o_att_array[$outcome->id] }}</strong> ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>met</strong>.
117
-                                                @elseif ($percentage < $outcome->expected_outcome)
118
-                                                    The expected goal was reached in <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the <strong>{{ $o_att_array[$outcome->id] }}</strong> ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong> not met</strong>.
119
-                                                @endif
120
-                                                </p>
121
-
122
-                                                <h5>Transformative Actions</h5>
123
-                                                @if($activity->transforming_actions)
124
-                                                    {{ $activity->transforming_actions }}
125
-                                                @else
126
-                                                    None
127
-                                                @endif
128
-                                                <br><br>
129
-
130
-                                            @else
131
-                                                <h5>Activity {{ $index4 + 1 }}</h5>
132
-                                                <em>Outcome not measured.</em>
168
+                                                            <br><br>
169
+                                                        @else
170
+                                                            <h5>Activity {{ $index4 + 1 }}</h5>
171
+                                                            <em>Outcome not measured.</em>
172
+                                                        @endif
173
+                                                    @endforeach
174
+                                                @endforeach
175
+                                                <hr>
133
                                             @endif
176
                                             @endif
134
                                         @endforeach
177
                                         @endforeach
135
-                                    @endforeach
136
-                                <hr>    
137
-                                @endif                            
138
-                            @endforeach
139
-                            </td>
140
-                        </tr>
141
-                    @else
142
-                        <tr>
143
-                            <td id="{{ $outcome->id }}-{{ $school->id }}-{{ $program->id }}" class="program no-courses col-md-3" >{{ $program->name }}</td>
144
-                            <td class="col-md-9">
145
-                                This program does not assess {{ $outcome->name }}.
146
-                            </td>
147
-                        </tr>
148
-                    @endif
149
-                @endforeach
150
-                </tbody>
151
-            </table>
178
+                                    </td>
179
+                                </tr>
180
+                            @else
181
+                                <tr>
182
+                                    <td id="{{ $outcome->id }}-{{ $school->id }}-{{ $program->id }}"
183
+                                        class="program no-courses col-md-3">{{ $program->name }}</td>
184
+                                    <td class="col-md-9">
185
+                                        This program does not assess {{ $outcome->name }}.
186
+                                    </td>
187
+                                </tr>
188
+                            @endif
189
+                        @endforeach
190
+                    </tbody>
191
+                </table>
152
             @endforeach
192
             @endforeach
153
         </div>
193
         </div>
154
     </div>
194
     </div>
156
 
196
 
157
 @section('javascript')
197
 @section('javascript')
158
 
198
 
159
-// Build table of contents
160
-var outcome = $('.outcome');
161
-var str ='';
162
-str+='<li><a href="#'+outcome.attr('id')+'">'+outcome.text()+'</a><ol class="schools upper-alpha">';
199
+    // Build table of contents
200
+    var outcome = $('.outcome');
201
+    var str ='';
202
+    str+='<li><a href="#'+outcome.attr('id')+'">'+outcome.text()+'</a>
203
+        <ol class="schools upper-alpha">';
204
+
205
+            $('[id^='+outcome.attr('id')+'-].school').each(function(e){
206
+            var school = $(this);
207
+            str+='<li><a href="#'+school.attr('id')+'">'+school.text()+'</a>
208
+                <ol class="programs">';
209
+
210
+                    $('[id^='+school.attr('id')+'-].program').each(function(e){
163
 
211
 
164
-$('[id^='+outcome.attr('id')+'-].school').each(function(e){
165
-    var school = $(this);
166
-    str+='<li><a href="#'+school.attr('id')+'">'+school.text()+'</a><ol class="programs">';
167
-    
168
-    $('[id^='+school.attr('id')+'-].program').each(function(e){
212
+                    var program = $(this);
213
+                    if(!program.hasClass('no-courses'))
214
+                    str+='<li><a href="#'+program.attr('id')+'">'+program.text()+'</a></li>';
215
+                    else
216
+                    str+='<li>'+program.text()+'</li>';
169
 
217
 
170
-        var program = $(this);
171
-        if(!program.hasClass('no-courses'))
172
-            str+='<li><a href="#'+program.attr('id')+'">'+program.text()+'</a></li>';
173
-        else
174
-            str+='<li>'+program.text()+'</li>';
218
+                    });
175
 
219
 
176
-    });
177
-    
178
-    str+='</ol></li>';
179
-});
220
+                    str+='</ol>
221
+            </li>';
222
+            });
180
 
223
 
181
-str+='</ol></li>';
182
-console.log(str);
183
-$('#table-of-contents').append(str);
224
+            str+='</ol>
225
+    </li>';
226
+    console.log(str);
227
+    $('#table-of-contents').append(str);
184
 
228
 
185
 
229
 
186
-// ----------------------------------------------------------------------------
187
-// Events
188
-//
230
+    // ----------------------------------------------------------------------------
231
+    // Events
232
+    //
189
 
233
 
190
-$('.to-top').on('click', function(e) {
234
+    $('.to-top').on('click', function(e) {
191
     e.preventDefault();
235
     e.preventDefault();
192
 
236
 
193
-     $(this).scrollTop(0);
237
+    $(this).scrollTop(0);
194
     $('html').animate({scrollTop:0}, 1);
238
     $('html').animate({scrollTop:0}, 1);
195
     $('body').animate({scrollTop:0}, 1);
239
     $('body').animate({scrollTop:0}, 1);
196
-})
240
+    })
197
 
241
 
198
 @stop
242
 @stop

+ 357
- 350
app/views/local/managers/shared/create_annual_plan.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
-<div class="row">
15
-	<div class="col-md-12">
16
-		<div id="quinquennium" data-quinquennium-id="{{ $current_quinquennium->id }}"></div>
17
-		<div id="program" data-program-id="{{ $program->id }}"></div>
18
-		<div class="plan">
19
-			<table class="table table-bordered">
20
-				<thead>
21
-					<tr class="bg-danger text-center">
22
-						<th class="text-center col-md-3">Learning Outcome to be assessed</th>
23
-						<th class="text-center col-md-4">Learning Objectives</th>
24
-						<th class="text-center col-md-4">Courses to use for assessment</th>
25
-						<th></th>
26
-					</tr>
27
-				</thead>
28
-				<tbody>
29
-					<tr>
30
-						<td class="outcome-cell">
31
-							<select name="outcome" class="outcome form-control">
32
-								@foreach($outcomes as $outcome)
33
-									<option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
34
-								@endforeach
35
-							</select>
36
-						</td>
37
-						<td class="objectives-cell">
38
-							<div class="objective-select-wrapper">
39
-								<select name="objectives[]" class="objective shortened-select form-control">
40
-								</select>
41
-								<span class="glyphicon glyphicon-remove text-danger icon-btn remove-objective"></span>
42
-								<br><br>
43
-							</div>
44
-							<button class="add-objective btn btn-success pull-right btn-xs"><span class="glyphicon glyphicon-plus"></span></button>
45
-						</td>
46
-						<td>
47
-							<div class="course-select-wrapper">
48
-								<select name="courses[]" class="course shortened-select form-control">
49
-									@foreach($courses as $course)
50
-										<option value="{{ $course->id }}" data-course-code="{{ $course->code }}" data-course-number="{{ $course->number }}" data-course-name="{{ $course->name }}">{{ $course->code }}{{ $course->number }}: {{ $course->name }}</option>
51
-									@endforeach
52
-								</select>
53
-								<span class="glyphicon glyphicon-remove text-danger icon-btn remove-course"></span>
54
-								<br><br>
55
-							</div>
56
-							<button class="add-course btn btn-success pull-right btn-xs"><span class="glyphicon glyphicon-plus"></span></button>
57
-						</td>
58
-						<td></td>
59
-					</tr>
60
-				</tbody>
61
-			</table>
62
-			<div>
63
-				<button class="add-outcome btn btn-success pull-right btn-sm"><span class="glyphicon glyphicon-plus"></span>Add Learning Outcome</button>
64
-				<br><br><br>
65
-			</div>
66
-		</div>
67
-		<div class="text-center">
68
-            <button id="button-create-rubric" class="btn btn-lg btn-primary save">
69
-                <span class="glyphicon glyphicon-floppy-disk"></span>
70
-                Save
71
-            </button>
14
+    <div class="row">
15
+        <div class="col-md-12">
16
+            <div id="quinquennium" data-quinquennium-id="{{ $current_quinquennium->id }}"></div>
17
+            <div id="program" data-program-id="{{ $program->id }}"></div>
18
+            <div class="plan">
19
+                <table class="table table-bordered">
20
+                    <thead>
21
+                        <tr class="bg-danger text-center">
22
+                            <th class="text-center col-md-3">Learning Outcome to be assessed</th>
23
+                            <th class="text-center col-md-4">Learning Objectives</th>
24
+                            <th class="text-center col-md-4">Courses to use for assessment</th>
25
+                            <th></th>
26
+                        </tr>
27
+                    </thead>
28
+                    <tbody>
29
+                        <tr>
30
+                            <td class="outcome-cell">
31
+                                <select name="outcome" class="outcome form-control">
32
+                                    @foreach ($outcomes as $outcome)
33
+                                        <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
34
+                                    @endforeach
35
+                                </select>
36
+                            </td>
37
+                            <td class="objectives-cell">
38
+                                <div class="objective-select-wrapper">
39
+                                    <select name="objectives[]" class="objective shortened-select form-control">
40
+                                    </select>
41
+                                    <span class="glyphicon glyphicon-remove text-danger icon-btn remove-objective"></span>
42
+                                    <br><br>
43
+                                </div>
44
+                                <button class="add-objective btn btn-success pull-right btn-xs"><span
45
+                                        class="glyphicon glyphicon-plus"></span></button>
46
+                            </td>
47
+                            <td>
48
+                                <div class="course-select-wrapper">
49
+                                    <select name="courses[]" class="course shortened-select form-control">
50
+                                        @foreach ($courses as $course)
51
+                                            <option value="{{ $course->id }}" data-course-code="{{ $course->code }}"
52
+                                                data-course-number="{{ $course->number }}"
53
+                                                data-course-name="{{ $course->name }}">
54
+                                                {{ $course->code }}{{ $course->number }}: {{ $course->name }}
55
+                                            </option>
56
+                                        @endforeach
57
+                                    </select>
58
+                                    <span class="glyphicon glyphicon-remove text-danger icon-btn remove-course"></span>
59
+                                    <br><br>
60
+                                </div>
61
+                                <button class="add-course btn btn-success pull-right btn-xs"><span
62
+                                        class="glyphicon glyphicon-plus"></span></button>
63
+                            </td>
64
+                            <td></td>
65
+                        </tr>
66
+                    </tbody>
67
+                </table>
68
+                <div>
69
+                    <button class="add-outcome btn btn-success pull-right btn-sm"><span
70
+                            class="glyphicon glyphicon-plus"></span>Add Learning Outcome</button>
71
+                    <br><br><br>
72
+                </div>
73
+            </div>
74
+            <div class="text-center">
75
+                <button id="button-create-rubric" class="btn btn-lg btn-primary save">
76
+                    <span class="glyphicon glyphicon-floppy-disk"></span>
77
+                    Save
78
+                </button>
79
+            </div>
72
         </div>
80
         </div>
73
-	</div>
74
-</div>
81
+    </div>
75
 
82
 
76
 @stop
83
 @stop
77
 
84
 
81
 
88
 
82
 @section('javascript')
89
 @section('javascript')
83
 
90
 
84
-// --------------------------------------------------------------------------
85
-// Page Load
86
-// --------------------------------------------------------------------------
87
-
88
-// Hide all 'x' buttons for courses and objectives
89
-$('.remove-course, .remove-objective').hide();
90
-
91
-$('.outcome').each(function()
92
-{
93
-	fetchObjectives($(this));
94
-});
95
-
96
-// --------------------------------------------------------------------------
97
-// Events
98
-// --------------------------------------------------------------------------
99
-
100
-// On clicking a button to add outcome
101
-$('.add-outcome').on('click', function(e)
102
-{
103
-	var table = $(this).closest('.plan').find('table');
104
-	addOutcome(table);
105
-});
106
-
107
-// On clicking a button to remove a course
108
-$('table').on('click', '.remove-objective', function(e)
109
-{
110
-	removeObjective($(this));
111
-});
112
-
113
-// On clicking a button to remove a course
114
-$('table').on('click', '.remove-course', function(e)
115
-{
116
-	removeCourse($(this));
117
-});
118
-
119
-// On clicking the x to remove an outcome from the plan
120
-$('table').on('click', '.remove-outcome', function(e)
121
-{
122
-	var table = $(this).closest('.plan').find('table');
123
-	var row = $(this).closest('tr');
124
-	removeOutcome(table, row);
125
-});
126
-
127
-// On clicking a button to add a objective
128
-$('.add-objective').on('click', function(e)
129
-{
130
-	var table = $(this).closest('.plan').find('table');
131
-	var objective_select_wrapper = $(this).parent().find('.objective-select-wrapper:last');
132
-	var select = $(this).parent().find('select:last');
133
-	var selected_objective_id = select.find(':selected').val();
134
-	var clone = objective_select_wrapper.clone();
135
-	clone.insertAfter(objective_select_wrapper);
136
-	objective_select_wrapper.parent().find('.remove-objective').show();
137
-});
138
-
139
-// On clicking a button to add a course
140
-$('.add-course').on('click', function(e)
141
-{
142
-	var table = $(this).closest('.plan').find('table');
143
-	var course_select_wrapper = $(this).parent().find('.course-select-wrapper:last');
144
-	var select = $(this).parent().find('select:last');
145
-	var selected_course_id = select.find(':selected').val();
146
-	var clone = course_select_wrapper.clone();
147
-	clone.insertAfter(course_select_wrapper);
148
-	course_select_wrapper.parent().find('.remove-course').show();
149
-});
150
-
151
-// When user selects another outcome
152
-$('.outcome').on('change', function(e)
153
-{
154
-	fetchObjectives($(this));
155
-});
156
-
157
-// Gather, structure and send data to server for saving
158
-$('.save').on('click', function(e)
159
-{
160
-	var five_year_plan = new Object();
161
-	five_year_plan.quinquennium_id = $('#quinquennium').data('quinquennium-id');
162
-	five_year_plan.program_id = $('#program').data('program-id');
163
-	five_year_plan.mini_plans = new Array();
164
-
165
-	$('.plan').each(function(index){
166
-
167
-		var mini_plan = new Object();
168
-
169
-		mini_plan.year_start = $(this).find('.year-start').text();
170
-		mini_plan.year_end = $(this).find('.year-end').text();
171
-
172
-		// Array for outcome objects
173
-		mini_plan.outcomes = new Array();
174
-
175
-		$(this).find('.outcome').each(function(index){
176
-
177
-			// Outcome object
178
-			var outcome = new Object();
179
-
180
-			outcome.id = $(this).find(':selected').val();
181
-			outcome.objectives = new Array();
182
-			outcome.courses = new Array();
183
-
184
-			// Gather objective information
185
-			$(this).closest('tr').find('.objective').each(function()
186
-			{
187
-				var objective = new Object();
188
-
189
-				objective.original_id = $(this).find(':selected').val();
190
-				objective.text = $(this).find(':selected').text();
191
-
192
-				outcome.objectives.push(jQuery.extend({}, objective));
193
-
194
-				objective = null;
195
-			});
196
-
197
-			// Gather course information
198
-			$(this).closest('tr').find('.course').each(function()
199
-			{
200
-				var course = new Object();
201
-
202
-				course.code = $(this).find(':selected').data('course-code');
203
-				course.number = $(this).find(':selected').data('course-number');
204
-				course.name = $(this).find(':selected').data('course-name');
205
-
206
-				outcome.courses.push(jQuery.extend({}, course));
207
-				course = null;
208
-			});
209
-
210
-			mini_plan.outcomes.push(jQuery.extend({}, outcome));
211
-			outcome = null;
212
-
213
-		});
214
-
215
-		five_year_plan.mini_plans.push(jQuery.extend({}, mini_plan));
216
-		mini_plan = null;
217
-	});
218
-
219
-	//console.log(five_year_plan);
220
-
221
-	$.post(
222
-		"{{ URL::action('FiveYearPlansController@store', array($program->id)) }}",
223
-		{
224
-			five_year_plan: JSON.stringify(five_year_plan)
225
-		},
226
-		function(data)
227
-		{
228
-			//console.log(data);
229
-			var response = data;
230
-
231
-			//console.log('status: '+response.status);
232
-			if(response.status == 'success')
233
-			{
234
-				//console.log('success');
235
-				window.location = response.redirect_url;
236
-			}
237
-			else
238
-			{
239
-				jsError(response.message);
240
-			}
241
-		},
242
-		"json"
243
-	)
244
-	.fail( function(xhr, status, error) {
245
-
246
-		//console.log('fail:'+error);
247
-		// Always scroll to the top
248
-        $(this).scrollTop(0);
249
-        $('html').animate({scrollTop:0}, 1);
250
-        $('body').animate({scrollTop:0}, 1);
251
-
252
-		jsError(error);
253
-
254
-		// Show js error with default message
255
-		$('#js-error-row').fadeIn('slow', function () {
256
-			$(this).delay(3000).fadeOut('slow');
257
-		});
258
-	}
259
-	);
260
-});
261
-
262
-// --------------------------------------------------------------------------
263
-// Functions
264
-// --------------------------------------------------------------------------
265
-
266
-// Removes a objective
267
-function removeObjective(button)
268
-{
269
-	var objective_select_wrapper = button.parent();
270
-
271
-	// If only one objective will remain, hide 'x' button
272
-	if(objective_select_wrapper.siblings('.objective-select-wrapper').length == 1)
273
-	{
274
-		objective_select_wrapper.siblings('.objective-select-wrapper').find('.remove-objective').hide();
275
-	}
276
-
277
-	// Remove objective
278
-	objective_select_wrapper.remove();
279
-}
280
-
281
-// Removes a course
282
-function removeCourse(button)
283
-{
284
-	var course_select_wrapper = button.parent();
285
-
286
-	// If only one course will remain, hide 'x' button
287
-	if(course_select_wrapper.siblings('.course-select-wrapper').length == 1)
288
-	{
289
-		course_select_wrapper.siblings('.course-select-wrapper').find('.remove-course').hide();
290
-	}
291
-
292
-	// Remove course
293
-	course_select_wrapper.remove();
294
-}
295
-
296
-
297
-// Checks whether a plan has outcomes
298
-function hasOutcomes(table)
299
-{
300
-	if(table.find('.outcome-cell').length > 0)
301
-		return true;
302
-	else
303
-		return false;
304
-}
305
-
306
-// Add an outcome to an annual plan
307
-function addOutcome(table)
308
-{
309
-	var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
310
-
311
-	var clone = table.find('tbody tr:first').clone(true, true);
312
-
313
-	// Remove all objectives and course except the first ones
314
-	clone.find('.objective-select-wrapper').not(':first').remove();
315
-	clone.find('.course-select-wrapper').not(':first').remove();
316
-
317
-	// Add removal button
318
-	clone.children(':last').append('<span class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>');
319
-
320
-	if(hasOutcomes(table))
321
-	{
322
-		table.find('tbody').append(clone);
323
-
324
-		table.find('.academic-year').attr('rowspan', header_rowspan+1);
325
-	}
326
-}
327
-
328
-// Remove an Outcome
329
-function removeOutcome(table, row)
330
-{
331
-	var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
332
-
333
-	row.remove();
334
-	table.find('.academic-year').attr('rowspan', header_rowspan-1);
335
-}
336
-
337
-// Fetch objectives associated to an outcome and program
338
-function fetchObjectives(outcome)
339
-{
340
-	var outcome_id = outcome.find(':selected').val();
341
-	var program_id = $('#program').data('program-id');
342
-
343
-	$.post(
344
-		"{{ URL::action('ObjectivesController@fetch') }}",
345
-		{
346
-			outcome_id: outcome_id,
347
-			program_id: program_id,
348
-			format: 'select'
349
-		},
350
-		function(data)
351
-		{
352
-			var select = outcome.closest('tr').find('.objective');
353
-			if(data == '')
354
-			{
355
-				select.prop('disabled', true);
356
-				select.empty().append('<option value="0"><span class="glyphicon glyphicon-remove"></span> None</option>');
357
-			}
358
-			else
359
-			{
360
-				select.prop('disabled', false);
361
-				select.empty().append(data);
362
-			}
363
-
364
-			if(select.length > 1) {
365
-				select.first().parent().siblings('.objective-select-wrapper').remove();
366
-			}
367
-		}
368
-	);
369
-}
91
+    // --------------------------------------------------------------------------
92
+    // Page Load
93
+    // --------------------------------------------------------------------------
94
+
95
+    // Hide all 'x' buttons for courses and objectives
96
+    $('.remove-course, .remove-objective').hide();
97
+
98
+    $('.outcome').each(function()
99
+    {
100
+    fetchObjectives($(this));
101
+    });
102
+
103
+    // --------------------------------------------------------------------------
104
+    // Events
105
+    // --------------------------------------------------------------------------
106
+
107
+    // On clicking a button to add outcome
108
+    $('.add-outcome').on('click', function(e)
109
+    {
110
+    var table = $(this).closest('.plan').find('table');
111
+    addOutcome(table);
112
+    });
113
+
114
+    // On clicking a button to remove a course
115
+    $('table').on('click', '.remove-objective', function(e)
116
+    {
117
+    removeObjective($(this));
118
+    });
119
+
120
+    // On clicking a button to remove a course
121
+    $('table').on('click', '.remove-course', function(e)
122
+    {
123
+    removeCourse($(this));
124
+    });
125
+
126
+    // On clicking the x to remove an outcome from the plan
127
+    $('table').on('click', '.remove-outcome', function(e)
128
+    {
129
+    var table = $(this).closest('.plan').find('table');
130
+    var row = $(this).closest('tr');
131
+    removeOutcome(table, row);
132
+    });
133
+
134
+    // On clicking a button to add a objective
135
+    $('.add-objective').on('click', function(e)
136
+    {
137
+    var table = $(this).closest('.plan').find('table');
138
+    var objective_select_wrapper = $(this).parent().find('.objective-select-wrapper:last');
139
+    var select = $(this).parent().find('select:last');
140
+    var selected_objective_id = select.find(':selected').val();
141
+    var clone = objective_select_wrapper.clone();
142
+    clone.insertAfter(objective_select_wrapper);
143
+    objective_select_wrapper.parent().find('.remove-objective').show();
144
+    });
145
+
146
+    // On clicking a button to add a course
147
+    $('.add-course').on('click', function(e)
148
+    {
149
+    var table = $(this).closest('.plan').find('table');
150
+    var course_select_wrapper = $(this).parent().find('.course-select-wrapper:last');
151
+    var select = $(this).parent().find('select:last');
152
+    var selected_course_id = select.find(':selected').val();
153
+    var clone = course_select_wrapper.clone();
154
+    clone.insertAfter(course_select_wrapper);
155
+    course_select_wrapper.parent().find('.remove-course').show();
156
+    });
157
+
158
+    // When user selects another outcome
159
+    $('.outcome').on('change', function(e)
160
+    {
161
+    fetchObjectives($(this));
162
+    });
163
+
164
+    // Gather, structure and send data to server for saving
165
+    $('.save').on('click', function(e)
166
+    {
167
+    var five_year_plan = new Object();
168
+    five_year_plan.quinquennium_id = $('#quinquennium').data('quinquennium-id');
169
+    five_year_plan.program_id = $('#program').data('program-id');
170
+    five_year_plan.mini_plans = new Array();
171
+
172
+    $('.plan').each(function(index){
173
+
174
+    var mini_plan = new Object();
175
+
176
+    mini_plan.year_start = $(this).find('.year-start').text();
177
+    mini_plan.year_end = $(this).find('.year-end').text();
178
+
179
+    // Array for outcome objects
180
+    mini_plan.outcomes = new Array();
181
+
182
+    $(this).find('.outcome').each(function(index){
183
+
184
+    // Outcome object
185
+    var outcome = new Object();
186
+
187
+    outcome.id = $(this).find(':selected').val();
188
+    outcome.objectives = new Array();
189
+    outcome.courses = new Array();
190
+
191
+    // Gather objective information
192
+    $(this).closest('tr').find('.objective').each(function()
193
+    {
194
+    var objective = new Object();
195
+
196
+    objective.original_id = $(this).find(':selected').val();
197
+    objective.text = $(this).find(':selected').text();
198
+
199
+    outcome.objectives.push(jQuery.extend({}, objective));
200
+
201
+    objective = null;
202
+    });
203
+
204
+    // Gather course information
205
+    $(this).closest('tr').find('.course').each(function()
206
+    {
207
+    var course = new Object();
208
+
209
+    course.code = $(this).find(':selected').data('course-code');
210
+    course.number = $(this).find(':selected').data('course-number');
211
+    course.name = $(this).find(':selected').data('course-name');
212
+
213
+    outcome.courses.push(jQuery.extend({}, course));
214
+    course = null;
215
+    });
216
+
217
+    mini_plan.outcomes.push(jQuery.extend({}, outcome));
218
+    outcome = null;
219
+
220
+    });
221
+
222
+    five_year_plan.mini_plans.push(jQuery.extend({}, mini_plan));
223
+    mini_plan = null;
224
+    });
225
+
226
+    //console.log(five_year_plan);
227
+
228
+    $.post(
229
+    "{{ URL::action('FiveYearPlansController@store', [$program->id]) }}",
230
+    {
231
+    five_year_plan: JSON.stringify(five_year_plan)
232
+    },
233
+    function(data)
234
+    {
235
+    //console.log(data);
236
+    var response = data;
237
+
238
+    //console.log('status: '+response.status);
239
+    if(response.status == 'success')
240
+    {
241
+    //console.log('success');
242
+    window.location = response.redirect_url;
243
+    }
244
+    else
245
+    {
246
+    jsError(response.message);
247
+    }
248
+    },
249
+    "json"
250
+    )
251
+    .fail( function(xhr, status, error) {
252
+
253
+    //console.log('fail:'+error);
254
+    // Always scroll to the top
255
+    $(this).scrollTop(0);
256
+    $('html').animate({scrollTop:0}, 1);
257
+    $('body').animate({scrollTop:0}, 1);
258
+
259
+    jsError(error);
260
+
261
+    // Show js error with default message
262
+    $('#js-error-row').fadeIn('slow', function () {
263
+    $(this).delay(3000).fadeOut('slow');
264
+    });
265
+    }
266
+    );
267
+    });
268
+
269
+    // --------------------------------------------------------------------------
270
+    // Functions
271
+    // --------------------------------------------------------------------------
272
+
273
+    // Removes a objective
274
+    function removeObjective(button)
275
+    {
276
+    var objective_select_wrapper = button.parent();
277
+
278
+    // If only one objective will remain, hide 'x' button
279
+    if(objective_select_wrapper.siblings('.objective-select-wrapper').length == 1)
280
+    {
281
+    objective_select_wrapper.siblings('.objective-select-wrapper').find('.remove-objective').hide();
282
+    }
283
+
284
+    // Remove objective
285
+    objective_select_wrapper.remove();
286
+    }
287
+
288
+    // Removes a course
289
+    function removeCourse(button)
290
+    {
291
+    var course_select_wrapper = button.parent();
292
+
293
+    // If only one course will remain, hide 'x' button
294
+    if(course_select_wrapper.siblings('.course-select-wrapper').length == 1)
295
+    {
296
+    course_select_wrapper.siblings('.course-select-wrapper').find('.remove-course').hide();
297
+    }
298
+
299
+    // Remove course
300
+    course_select_wrapper.remove();
301
+    }
302
+
303
+
304
+    // Checks whether a plan has outcomes
305
+    function hasOutcomes(table)
306
+    {
307
+    if(table.find('.outcome-cell').length > 0)
308
+    return true;
309
+    else
310
+    return false;
311
+    }
312
+
313
+    // Add an outcome to an annual plan
314
+    function addOutcome(table)
315
+    {
316
+    var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
317
+
318
+    var clone = table.find('tbody tr:first').clone(true, true);
319
+
320
+    // Remove all objectives and course except the first ones
321
+    clone.find('.objective-select-wrapper').not(':first').remove();
322
+    clone.find('.course-select-wrapper').not(':first').remove();
323
+
324
+    // Add removal button
325
+    clone.children(':last').append('<span class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>');
326
+
327
+    if(hasOutcomes(table))
328
+    {
329
+    table.find('tbody').append(clone);
330
+
331
+    table.find('.academic-year').attr('rowspan', header_rowspan+1);
332
+    }
333
+    }
334
+
335
+    // Remove an Outcome
336
+    function removeOutcome(table, row)
337
+    {
338
+    var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
339
+
340
+    row.remove();
341
+    table.find('.academic-year').attr('rowspan', header_rowspan-1);
342
+    }
343
+
344
+    // Fetch objectives associated to an outcome and program
345
+    function fetchObjectives(outcome)
346
+    {
347
+    var outcome_id = outcome.find(':selected').val();
348
+    var program_id = $('#program').data('program-id');
349
+
350
+    $.post(
351
+    "{{ URL::action('ObjectivesController@fetch') }}",
352
+    {
353
+    outcome_id: outcome_id,
354
+    program_id: program_id,
355
+    format: 'select'
356
+    },
357
+    function(data)
358
+    {
359
+    var select = outcome.closest('tr').find('.objective');
360
+    if(data == '')
361
+    {
362
+    select.prop('disabled', true);
363
+    select.empty().append('<option value="0"><span class="glyphicon glyphicon-remove"></span> None</option>');
364
+    }
365
+    else
366
+    {
367
+    select.prop('disabled', false);
368
+    select.empty().append(data);
369
+    }
370
+
371
+    if(select.length > 1) {
372
+    select.first().parent().siblings('.objective-select-wrapper').remove();
373
+    }
374
+    }
375
+    );
376
+    }
370
 
377
 
371
 @stop
378
 @stop

+ 368
- 358
app/views/local/managers/shared/create_five_year_plan.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
-<div class="row">
15
-	<div class="col-md-12">
16
-		<div id="quinquennium" data-quinquennium-id="{{ $current_quinquennium->id }}"></div>
17
-		<div id="program" data-program-id="{{ $program->id }}"></div>
18
-		@for($i = date('Y', strtotime($current_quinquennium->start_date)); $i< date('Y', strtotime($current_quinquennium->end_date)) ; $i++)
19
-			<div class="mini-plan">
20
-				<table class="table table-bordered">
21
-					<thead>
22
-						<tr class="bg-danger text-center">
23
-							<th class="text-center col-md-1">Academic Year</th>
24
-							<th class="text-center col-md-3">Learning Outcome to be assessed</th>
25
-							<th class="text-center col-md-4">Learning Objectives</th>
26
-							<th class="text-center col-md-4">Courses to use for assessment</th>
27
-							<th></th>
28
-						</tr>
29
-					</thead>
30
-					<tbody>
31
-						<tr>
32
-							<th class="active academic-year text-center" rowspan ="1"><span class="year-start">{{ $i }}</span>-<span class="year-end">{{ $i+1 }}</span></th>
33
-							<td class="outcome-cell">
34
-								<select name="outcome" class="outcome form-control">
35
-									@foreach($outcomes as $outcome)
36
-										<option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
37
-									@endforeach
38
-								</select>
39
-							</td>
40
-							<td class="objectives-cell">
41
-								<div class="objective-select-wrapper">
42
-									<select name="objectives[]" class="objective shortened-select form-control">
43
-									</select>
44
-									<span class="glyphicon glyphicon-remove text-danger icon-btn remove-objective"></span>
45
-									<br><br>
46
-								</div>
47
-								<button class="add-objective btn btn-success pull-right btn-xs"><span class="glyphicon glyphicon-plus"></span></button>
48
-							</td>
49
-							<td>
50
-								<div class="course-select-wrapper">
51
-									<select name="courses[]" class="course shortened-select form-control">
52
-										@foreach($courses as $course)
53
-											<option value="{{ $course->id }}" data-course-code="{{ $course->code }}" data-course-number="{{ $course->number }}" data-course-name="{{ $course->name }}">{{ $course->code }}{{ $course->number }}: {{ $course->name }}</option>
54
-										@endforeach
55
-									</select>
56
-									<span class="glyphicon glyphicon-remove text-danger icon-btn remove-course"></span>
57
-									<br><br>
58
-								</div>
59
-								<button class="add-course btn btn-success pull-right btn-xs"><span class="glyphicon glyphicon-plus"></span></button>
60
-							</td>
61
-							<td></td>
62
-						</tr>
63
-					</tbody>
64
-				</table>
65
-				<div>
66
-					<button class="add-outcome btn btn-success pull-right btn-sm"><span class="glyphicon glyphicon-plus"></span>Add Learning Outcome</button>
67
-					<br><br><br>
68
-				</div>
69
-			</div>
70
-		@endfor
71
-
72
-		<div class="text-center">
73
-            <button id="button-create-rubric" class="btn btn-lg btn-primary save">
74
-                <span class="glyphicon glyphicon-floppy-disk"></span>
75
-                Save
76
-            </button>
14
+    <div class="row">
15
+        <div class="col-md-12">
16
+            <div id="quinquennium" data-quinquennium-id="{{ $current_quinquennium->id }}"></div>
17
+            <div id="program" data-program-id="{{ $program->id }}"></div>
18
+            @for ($i = date('Y', strtotime($current_quinquennium->start_date)); $i < date('Y', strtotime($current_quinquennium->end_date)); $i++)
19
+                <div class="mini-plan">
20
+                    <table class="table table-bordered">
21
+                        <thead>
22
+                            <tr class="bg-danger text-center">
23
+                                <th class="text-center col-md-1">Academic Year</th>
24
+                                <th class="text-center col-md-3">Learning Outcome to be assessed</th>
25
+                                <th class="text-center col-md-4">Learning Objectives</th>
26
+                                <th class="text-center col-md-4">Courses to use for assessment</th>
27
+                                <th></th>
28
+                            </tr>
29
+                        </thead>
30
+                        <tbody>
31
+                            <tr>
32
+                                <th class="active academic-year text-center" rowspan="1"><span
33
+                                        class="year-start">{{ $i }}</span>-<span
34
+                                        class="year-end">{{ $i + 1 }}</span></th>
35
+                                <td class="outcome-cell">
36
+                                    <select name="outcome" class="outcome form-control">
37
+                                        @foreach ($outcomes as $outcome)
38
+                                            <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
39
+                                        @endforeach
40
+                                    </select>
41
+                                </td>
42
+                                <td class="objectives-cell">
43
+                                    <div class="objective-select-wrapper">
44
+                                        <select name="objectives[]" class="objective shortened-select form-control">
45
+                                        </select>
46
+                                        <span
47
+                                            class="glyphicon glyphicon-remove text-danger icon-btn remove-objective"></span>
48
+                                        <br><br>
49
+                                    </div>
50
+                                    <button class="add-objective btn btn-success pull-right btn-xs"><span
51
+                                            class="glyphicon glyphicon-plus"></span></button>
52
+                                </td>
53
+                                <td>
54
+                                    <div class="course-select-wrapper">
55
+                                        <select name="courses[]" class="course shortened-select form-control">
56
+                                            @foreach ($courses as $course)
57
+                                                <option value="{{ $course->id }}" data-course-code="{{ $course->code }}"
58
+                                                    data-course-number="{{ $course->number }}"
59
+                                                    data-course-name="{{ $course->name }}">
60
+                                                    {{ $course->code }}{{ $course->number }}: {{ $course->name }}
61
+                                                </option>
62
+                                            @endforeach
63
+                                        </select>
64
+                                        <span class="glyphicon glyphicon-remove text-danger icon-btn remove-course"></span>
65
+                                        <br><br>
66
+                                    </div>
67
+                                    <button class="add-course btn btn-success pull-right btn-xs"><span
68
+                                            class="glyphicon glyphicon-plus"></span></button>
69
+                                </td>
70
+                                <td></td>
71
+                            </tr>
72
+                        </tbody>
73
+                    </table>
74
+                    <div>
75
+                        <button class="add-outcome btn btn-success pull-right btn-sm"><span
76
+                                class="glyphicon glyphicon-plus"></span>Add Learning Outcome</button>
77
+                        <br><br><br>
78
+                    </div>
79
+                </div>
80
+            @endfor
81
+
82
+            <div class="text-center">
83
+                <button id="button-create-rubric" class="btn btn-lg btn-primary save">
84
+                    <span class="glyphicon glyphicon-floppy-disk"></span>
85
+                    Save
86
+                </button>
87
+            </div>
77
         </div>
88
         </div>
78
-	</div>
79
-</div>
89
+    </div>
80
 
90
 
81
 @stop
91
 @stop
82
 
92
 
86
 
96
 
87
 @section('javascript')
97
 @section('javascript')
88
 
98
 
89
-// --------------------------------------------------------------------------
90
-// Page Load
91
-// --------------------------------------------------------------------------
92
-
93
-// Hide all 'x' buttons for courses and objectives
94
-$('.remove-course, .remove-objective').hide();
95
-
96
-$('.outcome').each(function()
97
-{
98
-	fetchObjectives($(this));
99
-});
100
-
101
-// --------------------------------------------------------------------------
102
-// Events
103
-// --------------------------------------------------------------------------
104
-
105
-// On clicking a button to add outcome
106
-$('.add-outcome').on('click', function(e)
107
-{
108
-	var table = $(this).closest('.mini-plan').find('table');
109
-	addOutcome(table);
110
-});
111
-
112
-// On clicking a button to remove a course
113
-$('table').on('click', '.remove-objective', function(e)
114
-{
115
-	removeObjective($(this));
116
-});
117
-
118
-// On clicking a button to remove a course
119
-$('table').on('click', '.remove-course', function(e)
120
-{
121
-	removeCourse($(this));
122
-});
123
-
124
-// On clicking the x to remove an outcome from the plan
125
-$('table').on('click', '.remove-outcome', function(e)
126
-{
127
-	var table = $(this).closest('.mini-plan').find('table');
128
-	var row = $(this).closest('tr');
129
-	removeOutcome(table, row);
130
-});
131
-
132
-// On clicking a button to add a objective
133
-$('.add-objective').on('click', function(e)
134
-{
135
-	var table = $(this).closest('.mini-plan').find('table');
136
-	var objective_select_wrapper = $(this).parent().find('.objective-select-wrapper:last');
137
-	var select = $(this).parent().find('select:last');
138
-	var selected_objective_id = select.find(':selected').val();
139
-	var clone = objective_select_wrapper.clone();
140
-	clone.insertAfter(objective_select_wrapper);
141
-	objective_select_wrapper.parent().find('.remove-objective').show();
142
-});
143
-
144
-// On clicking a button to add a course
145
-$('.add-course').on('click', function(e)
146
-{
147
-	var table = $(this).closest('.mini-plan').find('table');
148
-	var course_select_wrapper = $(this).parent().find('.course-select-wrapper:last');
149
-	var select = $(this).parent().find('select:last');
150
-	var selected_course_id = select.find(':selected').val();
151
-	var clone = course_select_wrapper.clone();
152
-	clone.insertAfter(course_select_wrapper);
153
-	course_select_wrapper.parent().find('.remove-course').show();
154
-});
155
-
156
-// When user selects another outcome
157
-$('.outcome').on('change', function(e)
158
-{
159
-	fetchObjectives($(this));
160
-});
161
-
162
-// Gather, structure and send data to server for saving
163
-$('.save').on('click', function(e)
164
-{
165
-	var five_year_plan = new Object();
166
-	five_year_plan.quinquennium_id = $('#quinquennium').data('quinquennium-id');
167
-	five_year_plan.program_id = $('#program').data('program-id');
168
-	five_year_plan.mini_plans = new Array();
169
-
170
-	$('.mini-plan').each(function(index){
171
-
172
-		var mini_plan = new Object();
173
-
174
-		mini_plan.year_start = $(this).find('.year-start').text();
175
-		mini_plan.year_end = $(this).find('.year-end').text();
176
-
177
-		// Array for outcome objects
178
-		mini_plan.outcomes = new Array();
179
-
180
-		$(this).find('.outcome').each(function(index){
181
-
182
-			// Outcome object
183
-			var outcome = new Object();
184
-
185
-			outcome.id = $(this).find(':selected').val();
186
-			outcome.objectives = new Array();
187
-			outcome.courses = new Array();
188
-
189
-			// Gather objective information
190
-			$(this).closest('tr').find('.objective').each(function()
191
-			{
192
-				var objective = new Object();
193
-
194
-				objective.original_id = $(this).find(':selected').val();
195
-				objective.text = $(this).find(':selected').text();
196
-
197
-				outcome.objectives.push(jQuery.extend({}, objective));
198
-
199
-				objective = null;
200
-			});
201
-
202
-			// Gather course information
203
-			$(this).closest('tr').find('.course').each(function()
204
-			{
205
-				var course = new Object();
206
-
207
-				course.code = $(this).find(':selected').data('course-code');
208
-				course.number = $(this).find(':selected').data('course-number');
209
-				course.name = $(this).find(':selected').data('course-name');
210
-
211
-				outcome.courses.push(jQuery.extend({}, course));
212
-				course = null;
213
-			});
214
-
215
-			mini_plan.outcomes.push(jQuery.extend({}, outcome));
216
-			outcome = null;
217
-
218
-		});
219
-
220
-		five_year_plan.mini_plans.push(jQuery.extend({}, mini_plan));
221
-		mini_plan = null;
222
-	});
223
-
224
-	//console.log(five_year_plan);
225
-
226
-	$.post(
227
-		"{{ URL::action('FiveYearPlansController@store', array($program->id)) }}",
228
-		{
229
-			five_year_plan: JSON.stringify(five_year_plan)
230
-		},
231
-		function(data)
232
-		{
233
-			//console.log(data);
234
-			var response = data;
235
-
236
-			//console.log('status: '+response.status);
237
-			if(response.status == 'success')
238
-			{
239
-				//console.log('success');
240
-				window.location = response.redirect_url;
241
-			}
242
-			else
243
-			{
244
-				jsError(response.message);
245
-			}
246
-		},
247
-		"json"
248
-	)
249
-	.fail( function(xhr, status, error) {
250
-
251
-		//console.log('fail:'+error);
252
-		// Always scroll to the top
253
-        $(this).scrollTop(0);
254
-        $('html').animate({scrollTop:0}, 1);
255
-        $('body').animate({scrollTop:0}, 1);
256
-
257
-		jsError(error);
258
-
259
-		// Show js error with default message
260
-		$('#js-error-row').fadeIn('slow', function () {
261
-			$(this).delay(3000).fadeOut('slow');
262
-		});
263
-	}
264
-	);
265
-});
266
-
267
-// --------------------------------------------------------------------------
268
-// Functions
269
-// --------------------------------------------------------------------------
270
-
271
-// Removes a objective
272
-function removeObjective(button)
273
-{
274
-	var objective_select_wrapper = button.parent();
275
-
276
-	// If only one objective will remain, hide 'x' button
277
-	if(objective_select_wrapper.siblings('.objective-select-wrapper').length == 1)
278
-	{
279
-		objective_select_wrapper.siblings('.objective-select-wrapper').find('.remove-objective').hide();
280
-	}
281
-
282
-	// Remove objective
283
-	objective_select_wrapper.remove();
284
-}
285
-
286
-// Removes a course
287
-function removeCourse(button)
288
-{
289
-	var course_select_wrapper = button.parent();
290
-
291
-	// If only one course will remain, hide 'x' button
292
-	if(course_select_wrapper.siblings('.course-select-wrapper').length == 1)
293
-	{
294
-		course_select_wrapper.siblings('.course-select-wrapper').find('.remove-course').hide();
295
-	}
296
-
297
-	// Remove course
298
-	course_select_wrapper.remove();
299
-}
300
-
301
-
302
-// Checks whether a mini plan has outcomes
303
-function hasOutcomes(table)
304
-{
305
-	if(table.find('.outcome-cell').length > 0)
306
-		return true;
307
-	else
308
-		return false;
309
-}
310
-
311
-// Add an outcome to a mini (annual) plan
312
-function addOutcome(table)
313
-{
314
-	var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
315
-
316
-	var clone = table.find('tbody tr:first').clone(true, true);
317
-
318
-	// Remove academic year
319
-	clone.children(':first').remove();
320
-
321
-	// Remove all objectives and course except the first ones
322
-	clone.find('.objective-select-wrapper').not(':first').remove();
323
-	clone.find('.course-select-wrapper').not(':first').remove();
324
-
325
-	// Add removal button
326
-	clone.children(':last').append('<span class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>');
327
-
328
-	if(hasOutcomes(table))
329
-	{
330
-		table.find('tbody').append(clone);
331
-
332
-		table.find('.academic-year').attr('rowspan', header_rowspan+1);
333
-	}
334
-}
335
-
336
-// Remove an Outcome
337
-function removeOutcome(table, row)
338
-{
339
-	var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
340
-
341
-	row.remove();
342
-	table.find('.academic-year').attr('rowspan', header_rowspan-1);
343
-}
344
-
345
-// Fetch objectives associated to an outcome and program
346
-function fetchObjectives(outcome)
347
-{
348
-	var outcome_id = outcome.find(':selected').val();
349
-	var program_id = $('#program').data('program-id');
350
-
351
-	$.post(
352
-		"{{ URL::action('ObjectivesController@fetch') }}",
353
-		{
354
-			outcome_id: outcome_id,
355
-			program_id: program_id,
356
-			format: 'select'
357
-		},
358
-		function(data)
359
-		{
360
-			var select = outcome.closest('tr').find('.objective');
361
-			if(data == '')
362
-			{
363
-				select.prop('disabled', true);
364
-				select.empty().append('<option value="0"><span class="glyphicon glyphicon-remove"></span> None</option>');
365
-			}
366
-			else
367
-			{
368
-				select.prop('disabled', false);
369
-				select.empty().append(data);
370
-			}
371
-
372
-			if(select.length > 1) {
373
-				select.first().parent().siblings('.objective-select-wrapper').remove();
374
-			}
375
-		}
376
-	);
377
-}
99
+    // --------------------------------------------------------------------------
100
+    // Page Load
101
+    // --------------------------------------------------------------------------
102
+
103
+    // Hide all 'x' buttons for courses and objectives
104
+    $('.remove-course, .remove-objective').hide();
105
+
106
+    $('.outcome').each(function()
107
+    {
108
+    fetchObjectives($(this));
109
+    });
110
+
111
+    // --------------------------------------------------------------------------
112
+    // Events
113
+    // --------------------------------------------------------------------------
114
+
115
+    // On clicking a button to add outcome
116
+    $('.add-outcome').on('click', function(e)
117
+    {
118
+    var table = $(this).closest('.mini-plan').find('table');
119
+    addOutcome(table);
120
+    });
121
+
122
+    // On clicking a button to remove a course
123
+    $('table').on('click', '.remove-objective', function(e)
124
+    {
125
+    removeObjective($(this));
126
+    });
127
+
128
+    // On clicking a button to remove a course
129
+    $('table').on('click', '.remove-course', function(e)
130
+    {
131
+    removeCourse($(this));
132
+    });
133
+
134
+    // On clicking the x to remove an outcome from the plan
135
+    $('table').on('click', '.remove-outcome', function(e)
136
+    {
137
+    var table = $(this).closest('.mini-plan').find('table');
138
+    var row = $(this).closest('tr');
139
+    removeOutcome(table, row);
140
+    });
141
+
142
+    // On clicking a button to add a objective
143
+    $('.add-objective').on('click', function(e)
144
+    {
145
+    var table = $(this).closest('.mini-plan').find('table');
146
+    var objective_select_wrapper = $(this).parent().find('.objective-select-wrapper:last');
147
+    var select = $(this).parent().find('select:last');
148
+    var selected_objective_id = select.find(':selected').val();
149
+    var clone = objective_select_wrapper.clone();
150
+    clone.insertAfter(objective_select_wrapper);
151
+    objective_select_wrapper.parent().find('.remove-objective').show();
152
+    });
153
+
154
+    // On clicking a button to add a course
155
+    $('.add-course').on('click', function(e)
156
+    {
157
+    var table = $(this).closest('.mini-plan').find('table');
158
+    var course_select_wrapper = $(this).parent().find('.course-select-wrapper:last');
159
+    var select = $(this).parent().find('select:last');
160
+    var selected_course_id = select.find(':selected').val();
161
+    var clone = course_select_wrapper.clone();
162
+    clone.insertAfter(course_select_wrapper);
163
+    course_select_wrapper.parent().find('.remove-course').show();
164
+    });
165
+
166
+    // When user selects another outcome
167
+    $('.outcome').on('change', function(e)
168
+    {
169
+    fetchObjectives($(this));
170
+    });
171
+
172
+    // Gather, structure and send data to server for saving
173
+    $('.save').on('click', function(e)
174
+    {
175
+    var five_year_plan = new Object();
176
+    five_year_plan.quinquennium_id = $('#quinquennium').data('quinquennium-id');
177
+    five_year_plan.program_id = $('#program').data('program-id');
178
+    five_year_plan.mini_plans = new Array();
179
+
180
+    $('.mini-plan').each(function(index){
181
+
182
+    var mini_plan = new Object();
183
+
184
+    mini_plan.year_start = $(this).find('.year-start').text();
185
+    mini_plan.year_end = $(this).find('.year-end').text();
186
+
187
+    // Array for outcome objects
188
+    mini_plan.outcomes = new Array();
189
+
190
+    $(this).find('.outcome').each(function(index){
191
+
192
+    // Outcome object
193
+    var outcome = new Object();
194
+
195
+    outcome.id = $(this).find(':selected').val();
196
+    outcome.objectives = new Array();
197
+    outcome.courses = new Array();
198
+
199
+    // Gather objective information
200
+    $(this).closest('tr').find('.objective').each(function()
201
+    {
202
+    var objective = new Object();
203
+
204
+    objective.original_id = $(this).find(':selected').val();
205
+    objective.text = $(this).find(':selected').text();
206
+
207
+    outcome.objectives.push(jQuery.extend({}, objective));
208
+
209
+    objective = null;
210
+    });
211
+
212
+    // Gather course information
213
+    $(this).closest('tr').find('.course').each(function()
214
+    {
215
+    var course = new Object();
216
+
217
+    course.code = $(this).find(':selected').data('course-code');
218
+    course.number = $(this).find(':selected').data('course-number');
219
+    course.name = $(this).find(':selected').data('course-name');
220
+
221
+    outcome.courses.push(jQuery.extend({}, course));
222
+    course = null;
223
+    });
224
+
225
+    mini_plan.outcomes.push(jQuery.extend({}, outcome));
226
+    outcome = null;
227
+
228
+    });
229
+
230
+    five_year_plan.mini_plans.push(jQuery.extend({}, mini_plan));
231
+    mini_plan = null;
232
+    });
233
+
234
+    //console.log(five_year_plan);
235
+
236
+    $.post(
237
+    "{{ URL::action('FiveYearPlansController@store', [$program->id]) }}",
238
+    {
239
+    five_year_plan: JSON.stringify(five_year_plan)
240
+    },
241
+    function(data)
242
+    {
243
+    //console.log(data);
244
+    var response = data;
245
+
246
+    //console.log('status: '+response.status);
247
+    if(response.status == 'success')
248
+    {
249
+    //console.log('success');
250
+    window.location = response.redirect_url;
251
+    }
252
+    else
253
+    {
254
+    jsError(response.message);
255
+    }
256
+    },
257
+    "json"
258
+    )
259
+    .fail( function(xhr, status, error) {
260
+
261
+    //console.log('fail:'+error);
262
+    // Always scroll to the top
263
+    $(this).scrollTop(0);
264
+    $('html').animate({scrollTop:0}, 1);
265
+    $('body').animate({scrollTop:0}, 1);
266
+
267
+    jsError(error);
268
+
269
+    // Show js error with default message
270
+    $('#js-error-row').fadeIn('slow', function () {
271
+    $(this).delay(3000).fadeOut('slow');
272
+    });
273
+    }
274
+    );
275
+    });
276
+
277
+    // --------------------------------------------------------------------------
278
+    // Functions
279
+    // --------------------------------------------------------------------------
280
+
281
+    // Removes a objective
282
+    function removeObjective(button)
283
+    {
284
+    var objective_select_wrapper = button.parent();
285
+
286
+    // If only one objective will remain, hide 'x' button
287
+    if(objective_select_wrapper.siblings('.objective-select-wrapper').length == 1)
288
+    {
289
+    objective_select_wrapper.siblings('.objective-select-wrapper').find('.remove-objective').hide();
290
+    }
291
+
292
+    // Remove objective
293
+    objective_select_wrapper.remove();
294
+    }
295
+
296
+    // Removes a course
297
+    function removeCourse(button)
298
+    {
299
+    var course_select_wrapper = button.parent();
300
+
301
+    // If only one course will remain, hide 'x' button
302
+    if(course_select_wrapper.siblings('.course-select-wrapper').length == 1)
303
+    {
304
+    course_select_wrapper.siblings('.course-select-wrapper').find('.remove-course').hide();
305
+    }
306
+
307
+    // Remove course
308
+    course_select_wrapper.remove();
309
+    }
310
+
311
+
312
+    // Checks whether a mini plan has outcomes
313
+    function hasOutcomes(table)
314
+    {
315
+    if(table.find('.outcome-cell').length > 0)
316
+    return true;
317
+    else
318
+    return false;
319
+    }
320
+
321
+    // Add an outcome to a mini (annual) plan
322
+    function addOutcome(table)
323
+    {
324
+    var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
325
+
326
+    var clone = table.find('tbody tr:first').clone(true, true);
327
+
328
+    // Remove academic year
329
+    clone.children(':first').remove();
330
+
331
+    // Remove all objectives and course except the first ones
332
+    clone.find('.objective-select-wrapper').not(':first').remove();
333
+    clone.find('.course-select-wrapper').not(':first').remove();
334
+
335
+    // Add removal button
336
+    clone.children(':last').append('<span class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>');
337
+
338
+    if(hasOutcomes(table))
339
+    {
340
+    table.find('tbody').append(clone);
341
+
342
+    table.find('.academic-year').attr('rowspan', header_rowspan+1);
343
+    }
344
+    }
345
+
346
+    // Remove an Outcome
347
+    function removeOutcome(table, row)
348
+    {
349
+    var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
350
+
351
+    row.remove();
352
+    table.find('.academic-year').attr('rowspan', header_rowspan-1);
353
+    }
354
+
355
+    // Fetch objectives associated to an outcome and program
356
+    function fetchObjectives(outcome)
357
+    {
358
+    var outcome_id = outcome.find(':selected').val();
359
+    var program_id = $('#program').data('program-id');
360
+
361
+    $.post(
362
+    "{{ URL::action('ObjectivesController@fetch') }}",
363
+    {
364
+    outcome_id: outcome_id,
365
+    program_id: program_id,
366
+    format: 'select'
367
+    },
368
+    function(data)
369
+    {
370
+    var select = outcome.closest('tr').find('.objective');
371
+    if(data == '')
372
+    {
373
+    select.prop('disabled', true);
374
+    select.empty().append('<option value="0"><span class="glyphicon glyphicon-remove"></span> None</option>');
375
+    }
376
+    else
377
+    {
378
+    select.prop('disabled', false);
379
+    select.empty().append(data);
380
+    }
381
+
382
+    if(select.length > 1) {
383
+    select.first().parent().siblings('.objective-select-wrapper').remove();
384
+    }
385
+    }
386
+    );
387
+    }
378
 
388
 
379
 @stop
389
 @stop

+ 14
- 14
app/views/local/managers/shared/criteria.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
26
                             <div class="form-group col-md-12 selectOutcome">
26
                             <div class="form-group col-md-12 selectOutcome">
27
                                 <label>Outcome 1</label>
27
                                 <label>Outcome 1</label>
28
 
28
 
29
-                                {{ Form::select('outcome[]', $outcomes, reset($outcomes), ['class' => 'form-control selectpicker','id' => 'outcome0','onchange' => 'fetchObjectiveForSelect("outcome0", "objectiveGroupFor0")']) }}
29
+                                {{ Form::select('outcome[]', $outcomes, reset($outcomes), ['class' => 'form-control selectpicker', 'id' => 'outcome0', 'onchange' => 'fetchObjectiveForSelect("outcome0", "objectiveGroupFor0")']) }}
30
                             </div>
30
                             </div>
31
 
31
 
32
                             <div id='objectiveGroupFor0' class='createObjective' data-value='1'>
32
                             <div id='objectiveGroupFor0' class='createObjective' data-value='1'>
95
                     <div class="form-group">
95
                     <div class="form-group">
96
                         {{ Form::label('subcriteria', 'Subcriteria') }}
96
                         {{ Form::label('subcriteria', 'Subcriteria') }}
97
                         <p class="help-block"><strong>Manually add</strong> bullets or numbering.</p>
97
                         <p class="help-block"><strong>Manually add</strong> bullets or numbering.</p>
98
-                        {{ Form::textarea('subcriteria', '', ['class' => 'form-control','rows' => 3,'aria-labelledby' => 'subcriteria']) }}
98
+                        {{ Form::textarea('subcriteria', '', ['class' => 'form-control', 'rows' => 3, 'aria-labelledby' => 'subcriteria']) }}
99
                     </div>
99
                     </div>
100
                     <div class="form-group form_validation maximum_form">
100
                     <div class="form-group form_validation maximum_form">
101
                         {{ Form::label('maximum_score', 'Maximum Score') }}
101
                         {{ Form::label('maximum_score', 'Maximum Score') }}
102
-                        {{ Form::text('maximum_score', '8', ['class' => 'form-control','id' => 'maximum_score','oninput' => 'addOptions("Num_scale", "maximum_score", "Scales")']) }}
102
+                        {{ Form::text('maximum_score', '8', ['class' => 'form-control', 'id' => 'maximum_score', 'oninput' => 'addOptions("Num_scale", "maximum_score", "Scales")']) }}
103
                     </div>
103
                     </div>
104
                     <div class="form-group form_validation number_of_scales">
104
                     <div class="form-group form_validation number_of_scales">
105
                         {{ Form::label('scales', 'Number of Scales') }}
105
                         {{ Form::label('scales', 'Number of Scales') }}
115
 
115
 
116
                     <div class="form-group">
116
                     <div class="form-group">
117
                         {{ Form::label('copyright', 'Copyright') }}
117
                         {{ Form::label('copyright', 'Copyright') }}
118
-                        {{ Form::textarea('copyright', '', ['class' => 'form-control','rows' => 2,'placeholder' => '(optional)','aria-labelledby' => 'copyright']) }}
118
+                        {{ Form::textarea('copyright', '', ['class' => 'form-control', 'rows' => 2, 'placeholder' => '(optional)', 'aria-labelledby' => 'copyright']) }}
119
                     </div>
119
                     </div>
120
 
120
 
121
                     <div class="form-group">
121
                     <div class="form-group">
122
                         {{ Form::label('notes', 'Notes') }}
122
                         {{ Form::label('notes', 'Notes') }}
123
-                        {{ Form::textarea('notes', '', ['class' => 'form-control','rows' => 2,'placeholder' => '(optional)','aria-labelledby' => 'notes']) }}
123
+                        {{ Form::textarea('notes', '', ['class' => 'form-control', 'rows' => 2, 'placeholder' => '(optional)', 'aria-labelledby' => 'notes']) }}
124
                     </div>
124
                     </div>
125
 
125
 
126
-                    {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block','id' => 'create_the_criterion_button','data-form-id' => 'create_criterion']) }}
126
+                    {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block', 'id' => 'create_the_criterion_button', 'data-form-id' => 'create_criterion']) }}
127
                     {{ Form::close() }}
127
                     {{ Form::close() }}
128
                 </div>
128
                 </div>
129
             </div>
129
             </div>
135
                     Edit
135
                     Edit
136
                 </div>
136
                 </div>
137
                 <div class="panel-body">
137
                 <div class="panel-body">
138
-                    {{ Form::open(['action' => 'CriteriaController@update','id' => 'update_criterion','data-form-id' => 'update_criterion']) }}
138
+                    {{ Form::open(['action' => 'CriteriaController@update', 'id' => 'update_criterion', 'data-form-id' => 'update_criterion']) }}
139
 
139
 
140
                     <button class="btn btn-md btn-secondary filterButton">
140
                     <button class="btn btn-md btn-secondary filterButton">
141
                         <span class="glyphicon glyphicon-minus">
141
                         <span class="glyphicon glyphicon-minus">
157
                         </div>
157
                         </div>
158
                         <div class="form-group">
158
                         <div class="form-group">
159
                             <label>Associated Outcome</label>
159
                             <label>Associated Outcome</label>
160
-                            {{ Form::select('assoc_outcome_fetch', $outcomes, null, ['class' => 'form-control selectpicker','id' => 'assoc_outcomes_fetch','onchange' => 'fetchAllCriterion("select-program", "assoc_outcomes_fetch")']) }}
160
+                            {{ Form::select('assoc_outcome_fetch', $outcomes, null, ['class' => 'form-control selectpicker', 'id' => 'assoc_outcomes_fetch', 'onchange' => 'fetchAllCriterion("select-program", "assoc_outcomes_fetch")']) }}
161
 
161
 
162
                         </div>
162
                         </div>
163
                     </div>
163
                     </div>
175
                         <div id='assocOutcomeGroup0' class='createOutcome' data-value="1">
175
                         <div id='assocOutcomeGroup0' class='createOutcome' data-value="1">
176
                             <div class="form-group col-md-12 selectOutcome">
176
                             <div class="form-group col-md-12 selectOutcome">
177
                                 <label>Outcome 1</label>
177
                                 <label>Outcome 1</label>
178
-                                {{ Form::select('outcome[]', $outcomes, null, ['class' => 'form-control selectpicker','id' => 'assoc_outcome_0','onchange' => 'fetchObjectiveForSelect("assoc_outcome_0", "assoc_objectiveGroupFor0")']) }}
178
+                                {{ Form::select('outcome[]', $outcomes, null, ['class' => 'form-control selectpicker', 'id' => 'assoc_outcome_0', 'onchange' => 'fetchObjectiveForSelect("assoc_outcome_0", "assoc_objectiveGroupFor0")']) }}
179
 
179
 
180
                             </div>
180
                             </div>
181
                             <div id='assoc_objectiveGroupFor0' class='createObjective' data-value="1">
181
                             <div id='assoc_objectiveGroupFor0' class='createObjective' data-value="1">
267
                     </div>
267
                     </div>
268
                     <div class="form-group form_validation maximum_form">
268
                     <div class="form-group form_validation maximum_form">
269
                         {{ Form::label('maximum_score', 'Maximum Score') }}
269
                         {{ Form::label('maximum_score', 'Maximum Score') }}
270
-                        {{ Form::text('maximum_score', '', ['class' => 'form-control','id' => 'assoc_maximum_score','oninput' => 'addOptions("Num_assoc_scale", "assoc_maximum_score", "Assoc_Scales")']) }}
270
+                        {{ Form::text('maximum_score', '', ['class' => 'form-control', 'id' => 'assoc_maximum_score', 'oninput' => 'addOptions("Num_assoc_scale", "assoc_maximum_score", "Assoc_Scales")']) }}
271
                     </div>
271
                     </div>
272
 
272
 
273
 
273
 
287
 
287
 
288
                     <div class="form-group">
288
                     <div class="form-group">
289
                         {{ Form::label('copyright', 'Copyright Information') }}
289
                         {{ Form::label('copyright', 'Copyright Information') }}
290
-                        {{ Form::textarea('copyright', Input::old('copyright'), ['class' => 'form-control','rows' => 2,'id' => 'criterion_copyright','placeholder' => '(optional)']) }}
290
+                        {{ Form::textarea('copyright', Input::old('copyright'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_copyright', 'placeholder' => '(optional)']) }}
291
                     </div>
291
                     </div>
292
 
292
 
293
                     <div class="form-group">
293
                     <div class="form-group">
294
                         {{ Form::label('notes', 'Additional Notes') }}
294
                         {{ Form::label('notes', 'Additional Notes') }}
295
-                        {{ Form::textarea('notes', Input::old('notes'), ['class' => 'form-control','rows' => 2,'id' => 'criterion_notes','placeholder' => '(optional)']) }}
295
+                        {{ Form::textarea('notes', Input::old('notes'), ['class' => 'form-control', 'rows' => 2, 'id' => 'criterion_notes', 'placeholder' => '(optional)']) }}
296
                     </div>
296
                     </div>
297
 
297
 
298
-                    {{ Form::submit('Update', ['class' => 'btn btn-primary btn-block','id' => 'update_the_criterion_button','data-form-id' => 'update_criterion']) }}
298
+                    {{ Form::submit('Update', ['class' => 'btn btn-primary btn-block', 'id' => 'update_the_criterion_button', 'data-form-id' => 'update_criterion']) }}
299
                     {{ Form::close() }}
299
                     {{ Form::close() }}
300
                     {{ Form::open(['action' => 'CriteriaController@delete', 'id' => 'deleteCriterionForm']) }}
300
                     {{ Form::open(['action' => 'CriteriaController@delete', 'id' => 'deleteCriterionForm']) }}
301
 
301
 

+ 431
- 409
app/views/local/managers/shared/edit_five_year_plan.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
-<div class="row">
15
-	<div class="col-md-12">
16
-		<div id="plan" data-plan-id="{{ $plan->id }}"></div>
17
-		<div id="quinquennium" data-quinquennium-id="{{ $current_quinquennium->id }}"></div>
18
-		<div id="program" data-program-id="{{ $program->id }}"></div>
19
-
20
-		<div class="text-right">
21
-            <button id="button-create-rubric" class="btn btn-primary save">
22
-                <span class="glyphicon glyphicon-floppy-disk"></span>
23
-                Save
24
-            </button>
25
-            <a href="{{ URL::action('FiveYearPlansController@show', array('program'=>$program->id, 'plan'=>$plan->id) )}}" id="button-create-rubric" class="btn btn-primary">
26
-                <span class="glyphicon glyphicon-arrow-left"></span>
27
-                Back to Plan
28
-            </a>
29
-            <br><br>
14
+    <div class="row">
15
+        <div class="col-md-12">
16
+            <div id="plan" data-plan-id="{{ $plan->id }}"></div>
17
+            <div id="quinquennium" data-quinquennium-id="{{ $current_quinquennium->id }}"></div>
18
+            <div id="program" data-program-id="{{ $program->id }}"></div>
19
+
20
+            <div class="text-right">
21
+                <button id="button-create-rubric" class="btn btn-primary save">
22
+                    <span class="glyphicon glyphicon-floppy-disk"></span>
23
+                    Save
24
+                </button>
25
+                <a href="{{ URL::action('FiveYearPlansController@show', ['program' => $program->id, 'plan' => $plan->id]) }}"
26
+                    id="button-create-rubric" class="btn btn-primary">
27
+                    <span class="glyphicon glyphicon-arrow-left"></span>
28
+                    Back to Plan
29
+                </a>
30
+                <br><br>
31
+            </div>
32
+
33
+            @foreach ($plan->fypParts as $mini_plan)
34
+                <div class="mini-plan">
35
+                    <table class="table table-bordered">
36
+                        <thead>
37
+                            <tr class="bg-danger text-center">
38
+                                <th class="text-center col-md-1">Academic Year</th>
39
+                                <th class="text-center col-md-3">Learning Outcome to be assessed</th>
40
+                                <th class="text-center col-md-4">Learning Objectives</th>
41
+                                <th class="text-center col-md-4">Courses to use for assessment</th>
42
+                                <th></th>
43
+                            </tr>
44
+                        </thead>
45
+                        <tbody>
46
+                            @foreach ($mini_plan->fypPartOutcomes as $index => $fyp_outcome)
47
+                                <tr>
48
+                                    <!-- If outcome is the first, include multi-row year column -->
49
+                                    @if ($index == 0)
50
+                                        <th class="active academic-year text-center"
51
+                                            rowspan="{{ count($mini_plan->fypPartOutcomes) }}">
52
+                                            <span class="year-start">{{ $mini_plan->year_start }}</span>
53
+                                            -<span class="year-end">{{ $mini_plan->year_end }}</span>
54
+                                        </th>
55
+                                    @endif
56
+
57
+                                    <td class="outcome-cell">
58
+                                        <select name="outcome" class="outcome form-control">
59
+                                            @foreach ($outcomes as $outcome)
60
+                                                @if ($fyp_outcome->outcome_id == $outcome->id)
61
+                                                    <option selected value="{{ $outcome->id }}">{{ $outcome->name }}
62
+                                                    </option>
63
+                                                @else
64
+                                                    <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
65
+                                                @endif
66
+                                            @endforeach
67
+                                        </select>
68
+                                    </td>
69
+                                    <td class="objectives-cell">
70
+                                        @foreach (json_decode($fyp_outcome->objectives) as $fyp_objective)
71
+                                            <div class="objective-select-wrapper">
72
+                                                <select name="objectives[]" class="objective shortened-select form-control">
73
+                                                    @foreach (Objective::where('outcome_id', $fyp_outcome->outcome_id)->get() as $objective)
74
+                                                        @if ($fyp_objective->original_id == $objective->id)
75
+                                                            <option selected value="{{ $objective->id }}">
76
+                                                                {{ $objective->text }}</option>
77
+                                                        @else
78
+                                                            <option value="{{ $objective->id }}">
79
+                                                                {{ $objective->text }}</option>
80
+                                                        @endif
81
+                                                    @endforeach
82
+                                                </select>
83
+                                                <span
84
+                                                    class="glyphicon glyphicon-remove text-danger icon-btn remove-objective"></span>
85
+                                                <br><br>
86
+                                            </div>
87
+                                        @endforeach
88
+                                        <button class="add-objective btn btn-success pull-right btn-xs"><span
89
+                                                class="glyphicon glyphicon-plus"></span></button>
90
+                                    </td>
91
+                                    <td>
92
+                                        @foreach (json_decode($fyp_outcome->courses) as $fyp_course)
93
+                                            <div class="course-select-wrapper">
94
+                                                <select name="courses[]" class="course shortened-select form-control">
95
+                                                    @foreach ($courses as $course)
96
+                                                        @if ($fyp_course->code == $course->code && $fyp_course->number == $course->number && $fyp_course->name == $course->name)
97
+                                                            <option selected value="{{ $course->id }}"
98
+                                                                data-course-code="{{ $course->code }}"
99
+                                                                data-course-number="{{ $course->number }}"
100
+                                                                data-course-name="{{ $course->name }}">
101
+                                                                {{ $course->code }}{{ $course->number }}:
102
+                                                                {{ $course->name }}</option>
103
+                                                        @else
104
+                                                            <option value="{{ $course->id }}"
105
+                                                                data-course-code="{{ $course->code }}"
106
+                                                                data-course-number="{{ $course->number }}"
107
+                                                                data-course-name="{{ $course->name }}">
108
+                                                                {{ $course->code }}{{ $course->number }}:
109
+                                                                {{ $course->name }}</option>
110
+                                                        @endif
111
+                                                    @endforeach
112
+                                                </select>
113
+                                                <span
114
+                                                    class="glyphicon glyphicon-remove text-danger icon-btn remove-course"></span>
115
+                                                <br><br>
116
+                                            </div>
117
+                                        @endforeach
118
+                                        <button class="add-course btn btn-success pull-right btn-xs"><span
119
+                                                class="glyphicon glyphicon-plus"></span></button>
120
+                                    </td>
121
+                                    <td>
122
+                                        @if ($index != 0)
123
+                                            <span
124
+                                                class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>
125
+                                        @endif
126
+                                    </td>
127
+                                </tr>
128
+                            @endforeach
129
+                        </tbody>
130
+                    </table>
131
+                    <div>
132
+                        <button class="add-outcome btn btn-success pull-right btn-sm"><span
133
+                                class="glyphicon glyphicon-plus"></span>Add Learning Outcome</button>
134
+                        <br><br><br>
135
+                    </div>
136
+                </div>
137
+            @endforeach
138
+
139
+            <div class="text-right">
140
+                <button id="button-create-rubric" class="btn btn-primary save">
141
+                    <span class="glyphicon glyphicon-floppy-disk"></span>
142
+                    Save
143
+                </button>
144
+                <a href="{{ URL::action('FiveYearPlansController@show', ['program' => $program->id, 'plan' => $plan->id]) }}"
145
+                    id="button-create-rubric" class="btn btn-primary">
146
+                    <span class="glyphicon glyphicon-arrow-left"></span>
147
+                    Back to Plan
148
+                </a>
149
+                <br><br>
150
+            </div>
30
         </div>
151
         </div>
31
-
32
-		@foreach($plan->fypParts as $mini_plan)
33
-			<div class="mini-plan">
34
-				<table class="table table-bordered">
35
-					<thead>
36
-						<tr class="bg-danger text-center">
37
-							<th class="text-center col-md-1">Academic Year</th>
38
-							<th class="text-center col-md-3">Learning Outcome to be assessed</th>
39
-							<th class="text-center col-md-4">Learning Objectives</th>
40
-							<th class="text-center col-md-4">Courses to use for assessment</th>
41
-							<th></th>
42
-						</tr>
43
-					</thead>
44
-					<tbody>
45
-						@foreach($mini_plan->fypPartOutcomes as $index => $fyp_outcome)
46
-							<tr>
47
-								<!-- If outcome is the first, include multi-row year column -->
48
-								@if($index == 0)
49
-									<th class="active academic-year text-center" rowspan ="{{ count($mini_plan->fypPartOutcomes) }}">
50
-										<span class="year-start">{{ $mini_plan->year_start }}</span>
51
-										-<span class="year-end">{{ $mini_plan->year_end }}</span>
52
-									</th>
53
-								@endif
54
-
55
-								<td class="outcome-cell">
56
-									<select name="outcome" class="outcome form-control">
57
-										@foreach($outcomes as $outcome)
58
-											@if($fyp_outcome->outcome_id == $outcome->id)
59
-												<option selected value="{{ $outcome->id }}">{{ $outcome->name }}</option>
60
-											@else
61
-												<option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
62
-											@endif
63
-										@endforeach
64
-									</select>
65
-								</td>
66
-								<td class="objectives-cell">
67
-									@foreach(json_decode($fyp_outcome->objectives) as $fyp_objective)
68
-										<div class="objective-select-wrapper">
69
-											<select name="objectives[]" class="objective shortened-select form-control">
70
-												@foreach(Objective::where('outcome_id', $fyp_outcome->outcome_id)->get() as $objective)
71
-													@if($fyp_objective->original_id == $objective->id)
72
-														<option selected value="{{ $objective->id }}">{{ $objective->text }}</option>
73
-													@else
74
-														<option value="{{ $objective->id }}">{{ $objective->text }}</option>
75
-													@endif
76
-												@endforeach
77
-											</select>
78
-											<span class="glyphicon glyphicon-remove text-danger icon-btn remove-objective"></span>
79
-											<br><br>
80
-										</div>
81
-									@endforeach
82
-									<button class="add-objective btn btn-success pull-right btn-xs"><span class="glyphicon glyphicon-plus"></span></button>
83
-								</td>
84
-								<td>
85
-									@foreach(json_decode($fyp_outcome->courses) as $fyp_course)
86
-										<div class="course-select-wrapper">
87
-											<select name="courses[]" class="course shortened-select form-control">
88
-												@foreach($courses as $course)
89
-													@if($fyp_course->code == $course->code && $fyp_course->number == $course->number && $fyp_course->name == $course->name)
90
-														<option selected value="{{ $course->id }}" data-course-code="{{ $course->code }}" data-course-number="{{ $course->number }}" data-course-name="{{ $course->name }}">{{ $course->code }}{{ $course->number }}: {{ $course->name }}</option>
91
-													@else
92
-														<option value="{{ $course->id }}" data-course-code="{{ $course->code }}" data-course-number="{{ $course->number }}" data-course-name="{{ $course->name }}">{{ $course->code }}{{ $course->number }}: {{ $course->name }}</option>
93
-													@endif
94
-												@endforeach
95
-											</select>
96
-											<span class="glyphicon glyphicon-remove text-danger icon-btn remove-course"></span>
97
-											<br><br>
98
-										</div>
99
-									@endforeach
100
-									<button class="add-course btn btn-success pull-right btn-xs"><span class="glyphicon glyphicon-plus"></span></button>
101
-								</td>
102
-								<td>
103
-									@if($index != 0)
104
-										<span class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>
105
-									@endif
106
-								</td>
107
-							</tr>
108
-						@endforeach
109
-					</tbody>
110
-				</table>
111
-				<div>
112
-					<button class="add-outcome btn btn-success pull-right btn-sm"><span class="glyphicon glyphicon-plus"></span>Add Learning Outcome</button>
113
-					<br><br><br>
114
-				</div>
115
-			</div>
116
-		@endforeach
117
-
118
-		<div class="text-right">
119
-            <button id="button-create-rubric" class="btn btn-primary save">
120
-                <span class="glyphicon glyphicon-floppy-disk"></span>
121
-                Save
122
-            </button>
123
-            <a href="{{ URL::action('FiveYearPlansController@show', array('program'=>$program->id, 'plan'=>$plan->id) )}}" id="button-create-rubric" class="btn btn-primary">
124
-                <span class="glyphicon glyphicon-arrow-left"></span>
125
-                Back to Plan
126
-            </a>
127
-            <br><br>
128
-        </div>
129
-	</div>
130
-</div>
152
+    </div>
131
 
153
 
132
 @stop
154
 @stop
133
 
155
 
137
 
159
 
138
 @section('javascript')
160
 @section('javascript')
139
 
161
 
140
-// --------------------------------------------------------------------------
141
-// Page Load
142
-// --------------------------------------------------------------------------
143
-
144
-// Hide 'x' buttons for courses and objectives that are alone
145
-$('.objective-select-wrapper:only-of-type, .course-select-wrapper:only-of-type')
146
-	.find('.remove-course, .remove-objective')
147
-	.hide();
148
-
149
-
150
-
151
-// --------------------------------------------------------------------------
152
-// Events
153
-// --------------------------------------------------------------------------
154
-
155
-// On clicking a button to add outcome
156
-$('.add-outcome').on('click', function(e)
157
-{
158
-	var table = $(this).closest('.mini-plan').find('table');
159
-	addOutcome(table);
160
-});
161
-
162
-// On clicking a button to remove a course
163
-$('table').on('click', '.remove-objective', function(e)
164
-{
165
-	removeObjective($(this));
166
-});
167
-
168
-// On clicking a button to remove a course
169
-$('table').on('click', '.remove-course', function(e)
170
-{
171
-	removeCourse($(this));
172
-});
173
-
174
-// On clicking the x to remove an outcome from the plan
175
-$('table').on('click', '.remove-outcome', function(e)
176
-{
177
-	var table = $(this).closest('.mini-plan').find('table');
178
-	var row = $(this).closest('tr');
179
-	removeOutcome(table, row);
180
-});
181
-
182
-// On clicking a button to add a objective
183
-$('.add-objective').on('click', function(e)
184
-{
185
-	var table = $(this).closest('.mini-plan').find('table');
186
-	var objective_select_wrapper = $(this).parent().find('.objective-select-wrapper:last');
187
-	var select = $(this).parent().find('select:last');
188
-	var selected_objective_id = select.find(':selected').val();
189
-	var clone = objective_select_wrapper.clone();
190
-	clone.insertAfter(objective_select_wrapper);
191
-	objective_select_wrapper.parent().find('.remove-objective').show();
192
-});
193
-
194
-// On clicking a button to add a course
195
-$('.add-course').on('click', function(e)
196
-{
197
-	var table = $(this).closest('.mini-plan').find('table');
198
-	var course_select_wrapper = $(this).parent().find('.course-select-wrapper:last');
199
-	var select = $(this).parent().find('select:last');
200
-	var selected_course_id = select.find(':selected').val();
201
-	var clone = course_select_wrapper.clone();
202
-	clone.insertAfter(course_select_wrapper);
203
-	course_select_wrapper.parent().find('.remove-course').show();
204
-});
205
-
206
-// When user selects another outcome
207
-$('.outcome').on('change', function(e)
208
-{
209
-	fetchObjectives($(this));
210
-});
211
-
212
-// Gather, structure and send data to server for saving
213
-$('.save').on('click', function(e)
214
-{
215
-	var five_year_plan = new Object();
216
-	five_year_plan.plan_id = $('#plan').data('plan-id');
217
-	five_year_plan.quinquennium_id = $('#quinquennium').data('quinquennium-id');
218
-	five_year_plan.program_id = $('#program').data('program-id');
219
-	five_year_plan.mini_plans = new Array();
220
-
221
-	$('.mini-plan').each(function(index){
222
-
223
-		var mini_plan = new Object();
224
-
225
-		mini_plan.year_start = $(this).find('.year-start').text();
226
-		mini_plan.year_end = $(this).find('.year-end').text();
227
-
228
-		// Array for outcome objects
229
-		mini_plan.outcomes = new Array();
230
-
231
-		$(this).find('.outcome').each(function(index){
232
-
233
-			// Outcome object
234
-			var outcome = new Object();
235
-
236
-			outcome.id = $(this).find(':selected').val();
237
-			outcome.objectives = new Array();
238
-			outcome.courses = new Array();
239
-
240
-			// Gather objective information
241
-			$(this).closest('tr').find('.objective').each(function()
242
-			{
243
-				var objective = new Object();
244
-
245
-				objective.original_id = $(this).find(':selected').val();
246
-				objective.text = $(this).find(':selected').text();
247
-
248
-				outcome.objectives.push(jQuery.extend({}, objective));
249
-
250
-				objective = null;
251
-			});
252
-
253
-			// Gather course information
254
-			$(this).closest('tr').find('.course').each(function()
255
-			{
256
-				var course = new Object();
257
-
258
-				course.code = $(this).find(':selected').data('course-code');
259
-				course.number = $(this).find(':selected').data('course-number');
260
-				course.name = $(this).find(':selected').data('course-name');
261
-
262
-				outcome.courses.push(jQuery.extend({}, course));
263
-				course = null;
264
-			});
265
-
266
-			mini_plan.outcomes.push(jQuery.extend({}, outcome));
267
-			outcome = null;
268
-
269
-		});
270
-
271
-		five_year_plan.mini_plans.push(jQuery.extend({}, mini_plan));
272
-		mini_plan = null;
273
-	});
274
-
275
-	console.log(five_year_plan);
276
-
277
-	$.post(
278
-		"{{ URL::action('FiveYearPlansController@update', array($program->id)) }}",
279
-		{
280
-			five_year_plan: JSON.stringify(five_year_plan)
281
-		},
282
-		function(data)
283
-		{
284
-			console.log(data);
285
-			var response = data;
286
-
287
-			console.log('status: '+response.status);
288
-			if(response.status == 'success')
289
-			{
290
-				console.log('success');
291
-				window.location = response.redirect_url;
292
-			}
293
-			else
294
-			{
295
-				jsError(response.message);
296
-			}
297
-		},
298
-		"json"
299
-	)
300
-	.fail( function(xhr, status, error) {
301
-
302
-		console.log('fail:'+error);
303
-		// Always scroll to the top
304
-        $(this).scrollTop(0);
305
-        $('html').animate({scrollTop:0}, 1);
306
-        $('body').animate({scrollTop:0}, 1);
307
-
308
-		jsError(error);
309
-
310
-		// Show js error with default message
311
-		$('#js-error-row').fadeIn('slow', function () {
312
-			$(this).delay(3000).fadeOut('slow');
313
-		});
314
-	}
315
-	);
316
-});
317
-
318
-// --------------------------------------------------------------------------
319
-// Functions
320
-// --------------------------------------------------------------------------
321
-
322
-// Removes a objective
323
-function removeObjective(button)
324
-{
325
-	var objective_select_wrapper = button.parent();
326
-
327
-	// If only one objective will remain, hide 'x' button
328
-	if(objective_select_wrapper.siblings('.objective-select-wrapper').length == 1)
329
-	{
330
-		objective_select_wrapper.siblings('.objective-select-wrapper').find('.remove-objective').hide();
331
-	}
332
-
333
-	// Remove objective
334
-	objective_select_wrapper.remove();
335
-}
336
-
337
-// Removes a course
338
-function removeCourse(button)
339
-{
340
-	var course_select_wrapper = button.parent();
341
-
342
-	// If only one course will remain, hide 'x' button
343
-	if(course_select_wrapper.siblings('.course-select-wrapper').length == 1)
344
-	{
345
-		course_select_wrapper.siblings('.course-select-wrapper').find('.remove-course').hide();
346
-	}
347
-
348
-	// Remove course
349
-	course_select_wrapper.remove();
350
-}
351
-
352
-
353
-// Checks whether a mini plan has outcomes
354
-function hasOutcomes(table)
355
-{
356
-	if(table.find('.outcome-cell').length > 0)
357
-		return true;
358
-	else
359
-		return false;
360
-}
361
-
362
-// Add an outcome to a mini (annual) plan
363
-function addOutcome(table)
364
-{
365
-	var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
366
-
367
-	var clone = table.find('tbody tr:first').clone(true, true);
368
-
369
-	// Remove academic year
370
-	clone.children(':first').remove();
371
-
372
-	// Remove all objectives and course except the first ones
373
-	clone.find('.objective-select-wrapper').not(':first').remove();
374
-	clone.find('.course-select-wrapper').not(':first').remove();
375
-
376
-	// Add removal button
377
-	clone.children(':last').append('<span class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>');
378
-
379
-	if(hasOutcomes(table))
380
-	{
381
-		table.find('tbody').append(clone);
382
-
383
-		table.find('.academic-year').attr('rowspan', header_rowspan+1);
384
-	}
385
-}
386
-
387
-// Remove an Outcome
388
-function removeOutcome(table, row)
389
-{
390
-	var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
391
-
392
-	row.remove();
393
-	table.find('.academic-year').attr('rowspan', header_rowspan-1);
394
-}
395
-
396
-// Fetch objectives associated to an outcome and program
397
-function fetchObjectives(outcome)
398
-{
399
-	var outcome_id = outcome.find(':selected').val();
400
-	var program_id = $('#program').data('program-id');
401
-
402
-	$.post(
403
-		"{{ URL::action('ObjectivesController@fetch') }}",
404
-		{
405
-			outcome_id: outcome_id,
406
-			program_id: program_id,
407
-			format: 'select'
408
-		},
409
-		function(data)
410
-		{
411
-			var select = outcome.closest('tr').find('.objective');
412
-			if(data == '')
413
-			{
414
-				select.prop('disabled', true);
415
-				select.empty().append('<option value="0"><span class="glyphicon glyphicon-remove"></span> None</option>');
416
-			}
417
-			else
418
-			{
419
-				select.prop('disabled', false);
420
-				select.empty().append(data);
421
-			}
422
-
423
-			if(select.length > 1) {
424
-				select.first().parent().siblings('.objective-select-wrapper').remove();
425
-			}
426
-		}
427
-	);
428
-}
162
+    // --------------------------------------------------------------------------
163
+    // Page Load
164
+    // --------------------------------------------------------------------------
165
+
166
+    // Hide 'x' buttons for courses and objectives that are alone
167
+    $('.objective-select-wrapper:only-of-type, .course-select-wrapper:only-of-type')
168
+    .find('.remove-course, .remove-objective')
169
+    .hide();
170
+
171
+
172
+
173
+    // --------------------------------------------------------------------------
174
+    // Events
175
+    // --------------------------------------------------------------------------
176
+
177
+    // On clicking a button to add outcome
178
+    $('.add-outcome').on('click', function(e)
179
+    {
180
+    var table = $(this).closest('.mini-plan').find('table');
181
+    addOutcome(table);
182
+    });
183
+
184
+    // On clicking a button to remove a course
185
+    $('table').on('click', '.remove-objective', function(e)
186
+    {
187
+    removeObjective($(this));
188
+    });
189
+
190
+    // On clicking a button to remove a course
191
+    $('table').on('click', '.remove-course', function(e)
192
+    {
193
+    removeCourse($(this));
194
+    });
195
+
196
+    // On clicking the x to remove an outcome from the plan
197
+    $('table').on('click', '.remove-outcome', function(e)
198
+    {
199
+    var table = $(this).closest('.mini-plan').find('table');
200
+    var row = $(this).closest('tr');
201
+    removeOutcome(table, row);
202
+    });
203
+
204
+    // On clicking a button to add a objective
205
+    $('.add-objective').on('click', function(e)
206
+    {
207
+    var table = $(this).closest('.mini-plan').find('table');
208
+    var objective_select_wrapper = $(this).parent().find('.objective-select-wrapper:last');
209
+    var select = $(this).parent().find('select:last');
210
+    var selected_objective_id = select.find(':selected').val();
211
+    var clone = objective_select_wrapper.clone();
212
+    clone.insertAfter(objective_select_wrapper);
213
+    objective_select_wrapper.parent().find('.remove-objective').show();
214
+    });
215
+
216
+    // On clicking a button to add a course
217
+    $('.add-course').on('click', function(e)
218
+    {
219
+    var table = $(this).closest('.mini-plan').find('table');
220
+    var course_select_wrapper = $(this).parent().find('.course-select-wrapper:last');
221
+    var select = $(this).parent().find('select:last');
222
+    var selected_course_id = select.find(':selected').val();
223
+    var clone = course_select_wrapper.clone();
224
+    clone.insertAfter(course_select_wrapper);
225
+    course_select_wrapper.parent().find('.remove-course').show();
226
+    });
227
+
228
+    // When user selects another outcome
229
+    $('.outcome').on('change', function(e)
230
+    {
231
+    fetchObjectives($(this));
232
+    });
233
+
234
+    // Gather, structure and send data to server for saving
235
+    $('.save').on('click', function(e)
236
+    {
237
+    var five_year_plan = new Object();
238
+    five_year_plan.plan_id = $('#plan').data('plan-id');
239
+    five_year_plan.quinquennium_id = $('#quinquennium').data('quinquennium-id');
240
+    five_year_plan.program_id = $('#program').data('program-id');
241
+    five_year_plan.mini_plans = new Array();
242
+
243
+    $('.mini-plan').each(function(index){
244
+
245
+    var mini_plan = new Object();
246
+
247
+    mini_plan.year_start = $(this).find('.year-start').text();
248
+    mini_plan.year_end = $(this).find('.year-end').text();
249
+
250
+    // Array for outcome objects
251
+    mini_plan.outcomes = new Array();
252
+
253
+    $(this).find('.outcome').each(function(index){
254
+
255
+    // Outcome object
256
+    var outcome = new Object();
257
+
258
+    outcome.id = $(this).find(':selected').val();
259
+    outcome.objectives = new Array();
260
+    outcome.courses = new Array();
261
+
262
+    // Gather objective information
263
+    $(this).closest('tr').find('.objective').each(function()
264
+    {
265
+    var objective = new Object();
266
+
267
+    objective.original_id = $(this).find(':selected').val();
268
+    objective.text = $(this).find(':selected').text();
269
+
270
+    outcome.objectives.push(jQuery.extend({}, objective));
271
+
272
+    objective = null;
273
+    });
274
+
275
+    // Gather course information
276
+    $(this).closest('tr').find('.course').each(function()
277
+    {
278
+    var course = new Object();
279
+
280
+    course.code = $(this).find(':selected').data('course-code');
281
+    course.number = $(this).find(':selected').data('course-number');
282
+    course.name = $(this).find(':selected').data('course-name');
283
+
284
+    outcome.courses.push(jQuery.extend({}, course));
285
+    course = null;
286
+    });
287
+
288
+    mini_plan.outcomes.push(jQuery.extend({}, outcome));
289
+    outcome = null;
290
+
291
+    });
292
+
293
+    five_year_plan.mini_plans.push(jQuery.extend({}, mini_plan));
294
+    mini_plan = null;
295
+    });
296
+
297
+    console.log(five_year_plan);
298
+
299
+    $.post(
300
+    "{{ URL::action('FiveYearPlansController@update', [$program->id]) }}",
301
+    {
302
+    five_year_plan: JSON.stringify(five_year_plan)
303
+    },
304
+    function(data)
305
+    {
306
+    console.log(data);
307
+    var response = data;
308
+
309
+    console.log('status: '+response.status);
310
+    if(response.status == 'success')
311
+    {
312
+    console.log('success');
313
+    window.location = response.redirect_url;
314
+    }
315
+    else
316
+    {
317
+    jsError(response.message);
318
+    }
319
+    },
320
+    "json"
321
+    )
322
+    .fail( function(xhr, status, error) {
323
+
324
+    console.log('fail:'+error);
325
+    // Always scroll to the top
326
+    $(this).scrollTop(0);
327
+    $('html').animate({scrollTop:0}, 1);
328
+    $('body').animate({scrollTop:0}, 1);
329
+
330
+    jsError(error);
331
+
332
+    // Show js error with default message
333
+    $('#js-error-row').fadeIn('slow', function () {
334
+    $(this).delay(3000).fadeOut('slow');
335
+    });
336
+    }
337
+    );
338
+    });
339
+
340
+    // --------------------------------------------------------------------------
341
+    // Functions
342
+    // --------------------------------------------------------------------------
343
+
344
+    // Removes a objective
345
+    function removeObjective(button)
346
+    {
347
+    var objective_select_wrapper = button.parent();
348
+
349
+    // If only one objective will remain, hide 'x' button
350
+    if(objective_select_wrapper.siblings('.objective-select-wrapper').length == 1)
351
+    {
352
+    objective_select_wrapper.siblings('.objective-select-wrapper').find('.remove-objective').hide();
353
+    }
354
+
355
+    // Remove objective
356
+    objective_select_wrapper.remove();
357
+    }
358
+
359
+    // Removes a course
360
+    function removeCourse(button)
361
+    {
362
+    var course_select_wrapper = button.parent();
363
+
364
+    // If only one course will remain, hide 'x' button
365
+    if(course_select_wrapper.siblings('.course-select-wrapper').length == 1)
366
+    {
367
+    course_select_wrapper.siblings('.course-select-wrapper').find('.remove-course').hide();
368
+    }
369
+
370
+    // Remove course
371
+    course_select_wrapper.remove();
372
+    }
373
+
374
+
375
+    // Checks whether a mini plan has outcomes
376
+    function hasOutcomes(table)
377
+    {
378
+    if(table.find('.outcome-cell').length > 0)
379
+    return true;
380
+    else
381
+    return false;
382
+    }
383
+
384
+    // Add an outcome to a mini (annual) plan
385
+    function addOutcome(table)
386
+    {
387
+    var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
388
+
389
+    var clone = table.find('tbody tr:first').clone(true, true);
390
+
391
+    // Remove academic year
392
+    clone.children(':first').remove();
393
+
394
+    // Remove all objectives and course except the first ones
395
+    clone.find('.objective-select-wrapper').not(':first').remove();
396
+    clone.find('.course-select-wrapper').not(':first').remove();
397
+
398
+    // Add removal button
399
+    clone.children(':last').append('<span class="glyphicon glyphicon-remove text-danger icon-btn remove-outcome"></span>');
400
+
401
+    if(hasOutcomes(table))
402
+    {
403
+    table.find('tbody').append(clone);
404
+
405
+    table.find('.academic-year').attr('rowspan', header_rowspan+1);
406
+    }
407
+    }
408
+
409
+    // Remove an Outcome
410
+    function removeOutcome(table, row)
411
+    {
412
+    var header_rowspan = Number(table.find('.academic-year').attr('rowspan'));
413
+
414
+    row.remove();
415
+    table.find('.academic-year').attr('rowspan', header_rowspan-1);
416
+    }
417
+
418
+    // Fetch objectives associated to an outcome and program
419
+    function fetchObjectives(outcome)
420
+    {
421
+    var outcome_id = outcome.find(':selected').val();
422
+    var program_id = $('#program').data('program-id');
423
+
424
+    $.post(
425
+    "{{ URL::action('ObjectivesController@fetch') }}",
426
+    {
427
+    outcome_id: outcome_id,
428
+    program_id: program_id,
429
+    format: 'select'
430
+    },
431
+    function(data)
432
+    {
433
+    var select = outcome.closest('tr').find('.objective');
434
+    if(data == '')
435
+    {
436
+    select.prop('disabled', true);
437
+    select.empty().append('<option value="0"><span class="glyphicon glyphicon-remove"></span> None</option>');
438
+    }
439
+    else
440
+    {
441
+    select.prop('disabled', false);
442
+    select.empty().append(data);
443
+    }
444
+
445
+    if(select.length > 1) {
446
+    select.first().parent().siblings('.objective-select-wrapper').remove();
447
+    }
448
+    }
449
+    );
450
+    }
429
 
451
 
430
 @stop
452
 @stop

+ 115
- 107
app/views/local/managers/shared/edit_objectives_FOR_DELETION.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if($role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif($role==2)
4
+    @if ($role == 1)
5
+        @include('local.managers.admins._new_navigation')
6
+    @elseif($role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif($role==3)
8
+    @elseif($role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @else
10
     @else
11
         @include('local.professors._navigation')
11
         @include('local.professors._navigation')
16
 
16
 
17
     <div class="row">
17
     <div class="row">
18
         <div class="col-md-9">
18
         <div class="col-md-9">
19
-            <p class="lead">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.</p>
19
+            <p class="lead">You should establish at least one objective per Learning Outcome. Inactive objectives
20
+                will not be available to new rubrics, but the criteria already associated to them will remain unaffected.
21
+            </p>
20
 
22
 
21
             <table class="table table-bordered">
23
             <table class="table table-bordered">
22
                 <thead>
24
                 <thead>
26
                     </tr>
28
                     </tr>
27
                 </thead>
29
                 </thead>
28
                 <tbody>
30
                 <tbody>
29
-                    @foreach($objectives_by_outcome as $outcome)
31
+                    @foreach ($objectives_by_outcome as $outcome)
30
                         <?php $first_objective = true; ?>
32
                         <?php $first_objective = true; ?>
31
 
33
 
32
-                            <?php
33
-                                // $criteria = DB::table('criterion_objective_program')
34
-                                //     ->where('objective_id', $objective->objective_id)
35
-                                //     ->where('criterion_objective_program.program_id', $program->id)
36
-                                //     ->join('criteria', 'criterion_objective_program.criterion_id', '=', 'criteria.id')
37
-                                //     ->get();
38
-                            ?>
39
-                            <tr>
40
-                                <td>{{ $outcome->outcome_name }} {{ json_encode($outcome) }}</td>
41
-                            </tr>
42
-
34
+                        <?php
35
+                        // $criteria = DB::table('criterion_objective_program')
36
+                        //     ->where('objective_id', $objective->objective_id)
37
+                        //     ->where('criterion_objective_program.program_id', $program->id)
38
+                        //     ->join('criteria', 'criterion_objective_program.criterion_id', '=', 'criteria.id')
39
+                        //     ->get();
40
+                        ?>
41
+                        <tr>
42
+                            <td>{{ $outcome->outcome_name }} {{ json_encode($outcome) }}</td>
43
+                        </tr>
43
                     @endforeach
44
                     @endforeach
44
                 </tbody>
45
                 </tbody>
45
             </table>
46
             </table>
46
 
47
 
47
-            <a href="{{ action('ProgramsController@show', array($program->id)) }}" class="btn btn-primary pull-right"> Back to Program</a>
48
+            <a href="{{ action('ProgramsController@show', [$program->id]) }}" class="btn btn-primary pull-right"> Back
49
+                to Program</a>
48
         </div>
50
         </div>
49
         <div class="col-md-3">
51
         <div class="col-md-3">
50
             <br><br>
52
             <br><br>
56
                     <strong>Create</strong>
58
                     <strong>Create</strong>
57
                 </div>
59
                 </div>
58
                 <div class="panel-body">
60
                 <div class="panel-body">
59
-                    {{ Form::open(array('action' => 'ObjectivesController@create')) }}
61
+                    {{ Form::open(['action' => 'ObjectivesController@create']) }}
60
 
62
 
61
-                        <p class="small">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.</p>
63
+                    <p class="small">Write the name or description of the objective you want to create. Then,
64
+                        select the Learning Outcome to which it be associated. Finally, click Create.</p>
62
 
65
 
63
-                        {{ Form::hidden('program_id', $program->id) }}
66
+                    {{ Form::hidden('program_id', $program->id) }}
64
 
67
 
65
-                        <div class="form-group">
66
-                            {{ Form::label('learning_objective', 'Objective') }}
67
-                            {{ Form::textarea('learning_objective', '', array('class' => 'form-control', 'rows'=>2)) }}
68
+                    <div class="form-group">
69
+                        {{ Form::label('learning_objective', 'Objective') }}
70
+                        {{ Form::textarea('learning_objective', '', ['class' => 'form-control', 'rows' => 2]) }}
68
 
71
 
69
-                        </div>
72
+                    </div>
70
 
73
 
71
-                        <div class="form-group">
72
-                            {{ Form::label('outcome_id', 'Select the Learning Outcome') }}
73
-                            <select name="outcome_id" class="form-control">
74
+                    <div class="form-group">
75
+                        {{ Form::label('outcome_id', 'Select the Learning Outcome') }}
76
+                        <select name="outcome_id" class="form-control">
74
                             @foreach ($outcomes as $outcome)
77
                             @foreach ($outcomes as $outcome)
75
-                                @if(Input::old('outcome_id')==$outcome->id)
78
+                                @if (Input::old('outcome_id') == $outcome->id)
76
                                     <option selected="selected" value="{{ $outcome->id }}">{{ $outcome->name }}</option>
79
                                     <option selected="selected" value="{{ $outcome->id }}">{{ $outcome->name }}</option>
77
                                 @else
80
                                 @else
78
                                     <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
81
                                     <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
79
                                 @endif
82
                                 @endif
80
                             @endforeach
83
                             @endforeach
81
-                            </select>
82
-                        </div>
84
+                        </select>
85
+                    </div>
83
 
86
 
84
-                        {{ Form::submit('Create', array('class' => 'btn btn-primary btn-block')) }}
87
+                    {{ Form::submit('Create', ['class' => 'btn btn-primary btn-block']) }}
85
                     {{ Form::close() }}
88
                     {{ Form::close() }}
86
                 </div>
89
                 </div>
87
             </div>
90
             </div>
94
                     <strong>Edit</strong>
97
                     <strong>Edit</strong>
95
                 </div>
98
                 </div>
96
                 <div class="panel-body">
99
                 <div class="panel-body">
97
-                    {{ Form::open(array('action' => 'ObjectivesController@update')) }}
100
+                    {{ Form::open(['action' => 'ObjectivesController@update']) }}
98
 
101
 
99
-                        <p class="small">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.</p>
102
+                    <p class="small">Select the objective you want to edit. Its information will be automatically
103
+                        loaded. You can change the name and select a different Learning Outcome if you wish. Click Update to
104
+                        save the changes.</p>
100
 
105
 
101
-                        {{ Form::hidden('edit_program_id', $program->id) }}
106
+                    {{ Form::hidden('edit_program_id', $program->id) }}
102
 
107
 
103
-                        <div class="form-group">
104
-                            {{ Form::label('edit_objective_id', 'Objective Selection') }}
108
+                    <div class="form-group">
109
+                        {{ Form::label('edit_objective_id', 'Objective Selection') }}
105
 
110
 
106
-                            <select name="edit_objective_id" id="edit_objective_id" class="form-control">
111
+                        <select name="edit_objective_id" id="edit_objective_id" class="form-control">
107
                             @foreach ($program->objectives() as $objective)
112
                             @foreach ($program->objectives() as $objective)
108
-                                @if(false)
109
-                                    <option selected="selected" value="{{ $objective->objective_id }}">{{ $objective->objective }}</option>
113
+                                @if (false)
114
+                                    <option selected="selected" value="{{ $objective->objective_id }}">
115
+                                        {{ $objective->objective }}</option>
110
                                 @else
116
                                 @else
111
-                                    <option value="{{ $objective->objective_id }}">{{ $objective->objective }}</option>
117
+                                    <option value="{{ $objective->objective_id }}">{{ $objective->objective }}
118
+                                    </option>
112
                                 @endif
119
                                 @endif
113
                             @endforeach
120
                             @endforeach
114
-                            </select>
115
-                        </div>
121
+                        </select>
122
+                    </div>
116
 
123
 
117
-                        <div class="form-group">
118
-                            {{ Form::label('edit_learning_objective', 'Objective Name') }}
119
-                            {{ Form::textarea('edit_learning_objective', '', array('class' => 'form-control', 'rows'=>2)) }}
120
-                        </div>
124
+                    <div class="form-group">
125
+                        {{ Form::label('edit_learning_objective', 'Objective Name') }}
126
+                        {{ Form::textarea('edit_learning_objective', '', ['class' => 'form-control', 'rows' => 2]) }}
127
+                    </div>
121
 
128
 
122
-                        <div class="form-group">
123
-                            {{ Form::label('edit_outcome_id', 'Associated Learning Outcome') }}
124
-                            <select name="edit_outcome_id" id="edit_outcome_id" class="form-control">
129
+                    <div class="form-group">
130
+                        {{ Form::label('edit_outcome_id', 'Associated Learning Outcome') }}
131
+                        <select name="edit_outcome_id" id="edit_outcome_id" class="form-control">
125
                             @foreach ($outcomes as $outcome)
132
                             @foreach ($outcomes as $outcome)
126
-                                @if(Input::old('edit_outcome_id')==$outcome->id)
127
-                                    <option selected="selected" value="{{ $outcome->id }}">{{ $outcome->name }}</option>
133
+                                @if (Input::old('edit_outcome_id') == $outcome->id)
134
+                                    <option selected="selected" value="{{ $outcome->id }}">{{ $outcome->name }}
135
+                                    </option>
128
                                 @else
136
                                 @else
129
                                     <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
137
                                     <option value="{{ $outcome->id }}">{{ $outcome->name }}</option>
130
                                 @endif
138
                                 @endif
131
                             @endforeach
139
                             @endforeach
132
-                            </select>
133
-                        </div>
134
-
135
-                        <div class="form-group">
136
-                            {{ Form::label('edit_active', 'Status') }}
137
-                            <select name="edit_active" id="edit_active" class="form-control">
138
-                                <option value="1">Active</option>
139
-                                <option value="0">Inactive</option>
140
-                            </select>
141
-                        </div>
142
-
143
-                        {{ Form::submit('Update', array('class' => 'btn btn-primary btn-block')) }}
140
+                        </select>
141
+                    </div>
142
+
143
+                    <div class="form-group">
144
+                        {{ Form::label('edit_active', 'Status') }}
145
+                        <select name="edit_active" id="edit_active" class="form-control">
146
+                            <option value="1">Active</option>
147
+                            <option value="0">Inactive</option>
148
+                        </select>
149
+                    </div>
150
+
151
+                    {{ Form::submit('Update', ['class' => 'btn btn-primary btn-block']) }}
144
                     {{ Form::close() }}
152
                     {{ Form::close() }}
145
                 </div>
153
                 </div>
146
             </div>
154
             </div>
152
 
160
 
153
 @section('javascript')
161
 @section('javascript')
154
 
162
 
155
-// ----------------------------------------------------------------------------
156
-// Page Load
157
-// ----------------------------------------------------------------------------
163
+    // ----------------------------------------------------------------------------
164
+    // Page Load
165
+    // ----------------------------------------------------------------------------
158
 
166
 
159
-$('.panel-body').hide();
167
+    $('.panel-body').hide();
160
 
168
 
161
-loadObjective();
169
+    loadObjective();
162
 
170
 
163
-// ----------------------------------------------------------------------------
164
-// Events
165
-// ----------------------------------------------------------------------------
171
+    // ----------------------------------------------------------------------------
172
+    // Events
173
+    // ----------------------------------------------------------------------------
166
 
174
 
167
-// Toggle visibility for accordion panels
168
-$('.panel-heading').on('click', function()
169
-{
175
+    // Toggle visibility for accordion panels
176
+    $('.panel-heading').on('click', function()
177
+    {
170
     toggleTriangles($(this));
178
     toggleTriangles($(this));
171
     $(this).siblings('.panel-body').stop().slideToggle();
179
     $(this).siblings('.panel-body').stop().slideToggle();
172
-});
180
+    });
173
 
181
 
174
-$('#edit_objective_id').on('change', function()
175
-{
182
+    $('#edit_objective_id').on('change', function()
183
+    {
176
     loadObjective();
184
     loadObjective();
177
-});
185
+    });
178
 
186
 
179
-// ----------------------------------------------------------------------------
180
-// Functions
181
-// ----------------------------------------------------------------------------
187
+    // ----------------------------------------------------------------------------
188
+    // Functions
189
+    // ----------------------------------------------------------------------------
182
 
190
 
183
-function toggleTriangles(element)
184
-{
191
+    function toggleTriangles(element)
192
+    {
185
     if(element.find('.glyphicon').hasClass('glyphicon-triangle-right'))
193
     if(element.find('.glyphicon').hasClass('glyphicon-triangle-right'))
186
     {
194
     {
187
-        element.find('.glyphicon').removeClass('glyphicon-triangle-right');
188
-        element.find('.glyphicon').addClass('glyphicon-triangle-bottom');
195
+    element.find('.glyphicon').removeClass('glyphicon-triangle-right');
196
+    element.find('.glyphicon').addClass('glyphicon-triangle-bottom');
189
     }
197
     }
190
     else if(element.find('.glyphicon').hasClass('glyphicon-triangle-bottom'))
198
     else if(element.find('.glyphicon').hasClass('glyphicon-triangle-bottom'))
191
     {
199
     {
192
-        element.find('.glyphicon').removeClass('glyphicon-triangle-bottom');
193
-        element.find('.glyphicon').addClass('glyphicon-triangle-right');
200
+    element.find('.glyphicon').removeClass('glyphicon-triangle-bottom');
201
+    element.find('.glyphicon').addClass('glyphicon-triangle-right');
202
+    }
194
     }
203
     }
195
-}
196
 
204
 
197
-function loadObjective()
198
-{
205
+    function loadObjective()
206
+    {
199
     $.post(
207
     $.post(
200
-        '{{ action('ObjectivesController@fetchObjective') }}',
201
-        {
202
-            objective_id: $('#edit_objective_id').find(':selected').val()
203
-        },
204
-        function(data)
205
-        {
206
-            if(data == '')
207
-                return;
208
-
209
-            objective = JSON.parse(data);
210
-
211
-            $('#edit_learning_objective').text(objective.text);
212
-            $('#edit_active').val(objective.active);
213
-            $('#edit_outcome_id').val(objective.outcome_id);
214
-        }
208
+    '{{ action('ObjectivesController@fetchObjective') }}',
209
+    {
210
+    objective_id: $('#edit_objective_id').find(':selected').val()
211
+    },
212
+    function(data)
213
+    {
214
+    if(data == '')
215
+    return;
216
+
217
+    objective = JSON.parse(data);
218
+
219
+    $('#edit_learning_objective').text(objective.text);
220
+    $('#edit_active').val(objective.active);
221
+    $('#edit_outcome_id').val(objective.outcome_id);
222
+    }
215
     )
223
     )
216
-}
224
+    }
217
 
225
 
218
 @stop
226
 @stop

+ 1
- 1
app/views/local/managers/shared/grouped_course.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

+ 71
- 66
app/views/local/managers/shared/index_annual_plans.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
-<div class="row">
15
-	<div class="table-responsive">
16
-		<table class="table table-bordered datatable">
17
-			<thead>
18
-				<tr>
19
-					<th class="active col-sm-2 col-md-2">Program</th>
20
-					<th class="active col-sm-2 col-md-2">School</th>
21
-					@foreach($quinquenniums as $quinquennium)
22
-						@for($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++)
23
-							<th class="active">{{ $year }} - {{ $year+1 }}</th>
24
-						@endfor
25
-					@endforeach
26
-				</tr>
27
-			</thead>
28
-			@foreach($programs as $program)
29
-				<tr>
30
-					<th class="active col-sm-2 col-md-2"> {{ $program->name }} </th>
31
-					<td class="col-sm-2 col-md-2"> {{ $program->school->name }} </td>
32
-					@foreach($quinquenniums as $quinquennium)
33
-						@for($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++)
34
-							<td>
35
-								<?php $annual_plan = AnnualPlan::where('program_id', $program->id)->where('quinquennium_id', $quinquennium->id)->where('year_start', $year)->first(); ?>
36
-								@if($annual_plan)
37
-									<a class="btn btn-sm btn-default" href="{{ URL::action('AnnualPlansController@show', array($program->id, $annual_plan->id)) }}">
38
-										<span class="glyphicon glyphicon-eye-open"></span>
39
-										View
40
-									</a>
41
-									@if($quinquennium->id == $current_quinquennium->id  // Quinquennium is running
42
-										&& date('Y') == $year // Current year is the same as year
43
-										&& date('m') <= date('m', strtotime($current_quinquennium->annual_plan_due_date)) // Current month (and day, below) is the same or before the due month (and day)
44
-										&& date('d') <= date('d', strtotime($current_quinquennium->annual_plan_due_date)))
45
-										<a class="btn btn-sm btn-default" href="{{ URL::action('AnnualPlansController@edit', array($program->id, $annual_plan->id)) }}">
46
-											<span class="glyphicon glyphicon-pencil"></span>
47
-											Edit
48
-										</a>
49
-									@endif
50
-								@elseif(
51
-									$quinquennium->id == $current_quinquennium->id  // Quinquennium is running
52
-									&& date('Y') == $year // Current year is the same as year
53
-									&& date('m') <= date('m', strtotime($current_quinquennium->annual_plan_due_date)) // Current month (and day, below) is the same or before the due month (and day)
54
-									&& date('d') <= date('d', strtotime($current_quinquennium->annual_plan_due_date)))
55
-										<a class="btn btn-sm btn-default" href="{{ URL::action('AnnualPlansController@create', array($program->id)) }}">
56
-											<span class="glyphicon glyphicon-plus"></span>
57
-											Create
58
-										</a>
59
-								@else
60
-									Plan unavailable
61
-								@endif
62
-							</td>
63
-						@endfor
64
-					@endforeach
65
-				</tr>
66
-			@endforeach
67
-		</table>
68
-	</div>
69
-</div>
14
+    <div class="row">
15
+        <div class="table-responsive">
16
+            <table class="table table-bordered datatable">
17
+                <thead>
18
+                    <tr>
19
+                        <th class="active col-sm-2 col-md-2">Program</th>
20
+                        <th class="active col-sm-2 col-md-2">School</th>
21
+                        @foreach ($quinquenniums as $quinquennium)
22
+                            @for ($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++)
23
+                                <th class="active">{{ $year }} - {{ $year + 1 }}</th>
24
+                            @endfor
25
+                        @endforeach
26
+                    </tr>
27
+                </thead>
28
+                @foreach ($programs as $program)
29
+                    <tr>
30
+                        <th class="active col-sm-2 col-md-2"> {{ $program->name }} </th>
31
+                        <td class="col-sm-2 col-md-2"> {{ $program->school->name }} </td>
32
+                        @foreach ($quinquenniums as $quinquennium)
33
+                            @for ($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++)
34
+                                <td>
35
+                                    <?php $annual_plan = AnnualPlan::where('program_id', $program->id)
36
+                                        ->where('quinquennium_id', $quinquennium->id)
37
+                                        ->where('year_start', $year)
38
+                                        ->first(); ?>
39
+                                    @if ($annual_plan)
40
+                                        <a class="btn btn-sm btn-default"
41
+                                            href="{{ URL::action('AnnualPlansController@show', [$program->id, $annual_plan->id]) }}">
42
+                                            <span class="glyphicon glyphicon-eye-open"></span>
43
+                                            View
44
+                                        </a>
45
+                                        @if ($quinquennium->id == $current_quinquennium->id && // Quinquennium is running
46
+                                        date('Y') == $year && // Current year is the same as year
47
+                                        date('m') <= date('m', strtotime($current_quinquennium->annual_plan_due_date)) && // Current month (and day, below) is the same or before the due month (and day)
48
+                                            date('d') <= date('d', strtotime($current_quinquennium->annual_plan_due_date)))
49
+                                            <a class="btn btn-sm btn-default"
50
+                                                href="{{ URL::action('AnnualPlansController@edit', [$program->id, $annual_plan->id]) }}">
51
+                                                <span class="glyphicon glyphicon-pencil"></span>
52
+                                                Edit
53
+                                            </a>
54
+                                        @endif
55
+                                    @elseif($quinquennium->id == $current_quinquennium->id && // Quinquennium is running
56
+                                    date('Y') == $year && // Current year is the same as year
57
+                                    date('m') <= date('m', strtotime($current_quinquennium->annual_plan_due_date)) && // Current month (and day, below) is the same or before the due month (and day)
58
+                                        date('d') <= date('d', strtotime($current_quinquennium->annual_plan_due_date)))
59
+                                        <a class="btn btn-sm btn-default"
60
+                                            href="{{ URL::action('AnnualPlansController@create', [$program->id]) }}">
61
+                                            <span class="glyphicon glyphicon-plus"></span>
62
+                                            Create
63
+                                        </a>
64
+                                    @else
65
+                                        Plan unavailable
66
+                                    @endif
67
+                                </td>
68
+                            @endfor
69
+                        @endforeach
70
+                    </tr>
71
+                @endforeach
72
+            </table>
73
+        </div>
74
+    </div>
70
 @stop
75
 @stop
71
 
76
 
72
 @section('included-js')
77
 @section('included-js')
75
 
80
 
76
 @section('javascript')
81
 @section('javascript')
77
 
82
 
78
-table = $('.datatable').dataTable({
83
+    table = $('.datatable').dataTable({
79
     "columnDefs": [
84
     "columnDefs": [
80
-    	{ "searchable": true, "sortable": true, "targets": [0, 1]},
81
-  	]
82
-});
85
+    { "searchable": true, "sortable": true, "targets": [0, 1]},
86
+    ]
87
+    });
83
 
88
 
84
-$('a.toggle-vis').on('click', function (e) {
89
+    $('a.toggle-vis').on('click', function (e) {
85
     e.preventDefault();
90
     e.preventDefault();
86
 
91
 
87
     // Get the column API object
92
     // Get the column API object
89
 
94
 
90
     // Toggle the visibility
95
     // Toggle the visibility
91
     column.visible( ! column.visible() );
96
     column.visible( ! column.visible() );
92
-} );
97
+    } );
93
 
98
 
94
 @stop
99
 @stop

+ 66
- 61
app/views/local/managers/shared/index_five_year_plans.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
-<div class="row">
15
-	<div class="table-responsive">
16
-		<table class="table table-bordered datatable">
17
-			<thead>
18
-				<tr>
19
-					<th class="active col-sm-2 col-md-2">Program</th>
20
-					<th class="active col-sm-2 col-md-2">School</th>
21
-					@foreach($quinquenniums as $quinquennium)
22
-						<th class="active">{{ date('Y', strtotime($quinquennium->start_date)) }}-{{ date('Y', strtotime($quinquennium->end_date)) }} Quinquennium</th>
23
-					@endforeach
24
-				</tr>
25
-			</thead>
26
-			@foreach($programs as $program)
27
-				<tr>
28
-					<th class="active col-sm-2 col-md-2"> {{ $program->name }} </th>
29
-					<td class="col-sm-2 col-md-2"> {{ $program->school->name }} </td>
30
-					@foreach($quinquenniums as $quinquennium)
31
-						<td>
32
-							<?php $five_year_plan = FiveYearPlan::where('program_id', $program->id)->where('quinquennium_id', $quinquennium->id)->first(); ?>
33
-							@if($five_year_plan)
34
-								<a class="btn btn-sm btn-default" href="{{ URL::action('FiveYearPlansController@show', array($program->id, $five_year_plan->id)) }}">
35
-									<span class="glyphicon glyphicon-eye-open"></span>
36
-									View
37
-								</a>
38
-								@if(date('Y-m-d') <= $current_quinquennium->five_year_plan_due_date)
39
-									<a class="btn btn-sm btn-default" href="{{ URL::action('FiveYearPlansController@edit', array($program->id, $five_year_plan->id)) }}">
40
-										<span class="glyphicon glyphicon-pencil"></span>
41
-										Edit
42
-									</a>
43
-								@endif
44
-							@elseif(
45
-								$quinquennium->id == $current_quinquennium->id  // Quinquennium is running
46
-								&& date('Y-m-d') >= $current_quinquennium->start_date // Current date
47
-								&& date('Y-m-d') <= $current_quinquennium->end_date)
48
-									<a class="btn btn-sm btn-default" href="{{ URL::action('FiveYearPlansController@create', array($program->id)) }}">
49
-										<span class="glyphicon glyphicon-plus"></span>
50
-										Create
51
-									</a>
52
-
53
-							@elseif( $current_quinquennium->start_date < $quinquennium->start_date)
54
-								Available {{ date('M/d/Y', strtotime($quinquennium->start_date)) }}
55
-							@else
56
-								Plan not available
57
-							@endif
58
-						</td>
59
-					@endforeach
60
-				</tr>
61
-			@endforeach
62
-		</table>
63
-	</div>
64
-</div>
14
+    <div class="row">
15
+        <div class="table-responsive">
16
+            <table class="table table-bordered datatable">
17
+                <thead>
18
+                    <tr>
19
+                        <th class="active col-sm-2 col-md-2">Program</th>
20
+                        <th class="active col-sm-2 col-md-2">School</th>
21
+                        @foreach ($quinquenniums as $quinquennium)
22
+                            <th class="active">
23
+                                {{ date('Y', strtotime($quinquennium->start_date)) }}-{{ date('Y', strtotime($quinquennium->end_date)) }}
24
+                                Quinquennium</th>
25
+                        @endforeach
26
+                    </tr>
27
+                </thead>
28
+                @foreach ($programs as $program)
29
+                    <tr>
30
+                        <th class="active col-sm-2 col-md-2"> {{ $program->name }} </th>
31
+                        <td class="col-sm-2 col-md-2"> {{ $program->school->name }} </td>
32
+                        @foreach ($quinquenniums as $quinquennium)
33
+                            <td>
34
+                                <?php $five_year_plan = FiveYearPlan::where('program_id', $program->id)
35
+                                    ->where('quinquennium_id', $quinquennium->id)
36
+                                    ->first(); ?>
37
+                                @if ($five_year_plan)
38
+                                    <a class="btn btn-sm btn-default"
39
+                                        href="{{ URL::action('FiveYearPlansController@show', [$program->id, $five_year_plan->id]) }}">
40
+                                        <span class="glyphicon glyphicon-eye-open"></span>
41
+                                        View
42
+                                    </a>
43
+                                    @if (date('Y-m-d') <= $current_quinquennium->five_year_plan_due_date)
44
+                                        <a class="btn btn-sm btn-default"
45
+                                            href="{{ URL::action('FiveYearPlansController@edit', [$program->id, $five_year_plan->id]) }}">
46
+                                            <span class="glyphicon glyphicon-pencil"></span>
47
+                                            Edit
48
+                                        </a>
49
+                                    @endif
50
+                                @elseif($quinquennium->id == $current_quinquennium->id && // Quinquennium is running
51
+                                date('Y-m-d') >= $current_quinquennium->start_date && // Current date
52
+                                    date('Y-m-d') <= $current_quinquennium->end_date)
53
+                                    <a class="btn btn-sm btn-default"
54
+                                        href="{{ URL::action('FiveYearPlansController@create', [$program->id]) }}">
55
+                                        <span class="glyphicon glyphicon-plus"></span>
56
+                                        Create
57
+                                    </a>
58
+                                @elseif($current_quinquennium->start_date < $quinquennium->start_date)
59
+                                    Available {{ date('M/d/Y', strtotime($quinquennium->start_date)) }}
60
+                                @else
61
+                                    Plan not available
62
+                                @endif
63
+                            </td>
64
+                        @endforeach
65
+                    </tr>
66
+                @endforeach
67
+            </table>
68
+        </div>
69
+    </div>
65
 @stop
70
 @stop
66
 
71
 
67
 @section('included-js')
72
 @section('included-js')
70
 
75
 
71
 @section('javascript')
76
 @section('javascript')
72
 
77
 
73
-table = $('.datatable').dataTable({
78
+    table = $('.datatable').dataTable({
74
     "columnDefs": [
79
     "columnDefs": [
75
-    	{ "searchable": true, "sortable": true, "targets": [0, 1]},
76
-  	]
77
-});
80
+    { "searchable": true, "sortable": true, "targets": [0, 1]},
81
+    ]
82
+    });
78
 
83
 
79
-$('a.toggle-vis').on('click', function (e) {
84
+    $('a.toggle-vis').on('click', function (e) {
80
     e.preventDefault();
85
     e.preventDefault();
81
 
86
 
82
     // Get the column API object
87
     // Get the column API object
84
 
89
 
85
     // Toggle the visibility
90
     // Toggle the visibility
86
     column.visible( ! column.visible() );
91
     column.visible( ! column.visible() );
87
-} );
92
+    } );
88
 
93
 
89
 @stop
94
 @stop

+ 1
- 1
app/views/local/managers/shared/limited-course.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

+ 1
- 1
app/views/local/managers/shared/new_view_annual_plans.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)

+ 1
- 1
app/views/local/managers/shared/new_view_three_year_plans.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)

+ 5
- 4
app/views/local/managers/shared/objectives.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
141
                             @foreach ($objectives as $objective)
141
                             @foreach ($objectives as $objective)
142
                                 <option value="{{ $objective->id }}"
142
                                 <option value="{{ $objective->id }}"
143
                                     data-subtext="
143
                                     data-subtext="
144
-                                                                                                                                                                                                                                         @if ($objective->program) &nbsp;&nbsp;&nbsp;[{{ $objective->program->name }}] @endif
145
-                                                                                                                                                                                                                        ">
144
+                                                                                                                                                                                                                                             @if ($objective->program) &nbsp;&nbsp;&nbsp;[{{ $objective->program->name }}] @endif
145
+                                                                                                                                                                                                                            ">
146
                                     {{ $objective->text }}
146
                                     {{ $objective->text }}
147
 
147
 
148
 
148
 
249
             <div class="modal-content">
249
             <div class="modal-content">
250
                 <div class="modal-header">
250
                 <div class="modal-header">
251
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
251
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
252
-                    <h5 class="modal-title">Would you like to pair these new Learning Outcomes to all the Criteria associated to
252
+                    <h5 class="modal-title">Would you like to pair these new Learning Outcomes to all the Criteria
253
+                        associated to
253
                         this Objective?</h5>
254
                         this Objective?</h5>
254
 
255
 
255
                 </div>
256
                 </div>

+ 1
- 1
app/views/local/managers/shared/print_course.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

+ 1
- 1
app/views/local/managers/shared/program.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
 @if($role==1)
4
 @if($role==1)
5
-@include('local.managers.admins._navigation')
5
+@include('local.managers.admins._new_navigation')
6
 @elseif($role==2)
6
 @elseif($role==2)
7
 @include('local.managers.sCoords._new_navigation')
7
 @include('local.managers.sCoords._new_navigation')
8
 @elseif($role==3)
8
 @elseif($role==3)

+ 256
- 257
app/views/local/managers/shared/program_report.blade.php
File diff suppressed because it is too large
View File


+ 1
- 1
app/views/local/managers/shared/program_student_result.blade.php View File

3
 
3
 
4
 @section('navigation')
4
 @section('navigation')
5
     @if($role==1)
5
     @if($role==1)
6
-        @include('local.managers.admins._navigation')
6
+        @include('local.managers.admins._new_navigation')
7
     @elseif($role==2)
7
     @elseif($role==2)
8
         @include('local.managers.sCoords._new_navigation')
8
         @include('local.managers.sCoords._new_navigation')
9
      @endif
9
      @endif

+ 122
- 113
app/views/local/managers/shared/programs.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if($role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif($role==2)
4
+    @if ($role == 1)
5
+        @include('local.managers.admins._new_navigation')
6
+    @elseif($role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif($role==3)
8
+    @elseif($role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
-  <button class="btn btn-lg btn-primary pull-right" id='show'>Custom Report</button>
15
-  <div class="" id='make_report'>
16
-    <hr>
17
-    <b><h3>Report Options</h3><br></b>
18
-    {{-- For for adding a new outcome --}}
19
-    {{ Form::open(array('action' => 'ProgramsController@showReport')) }}
20
-    <div class="row">
21
-      <div class="col-md-1">
22
-      </div>
23
-      <div class="col-md-5">
24
-      {{ Form::label('name', 'Select which semesters to report on') }}<br>
25
-          @foreach ($semesters as $semester)
26
-            @if ($semester->is_visible)
27
-              <div class="form-group">
28
-                <input type="checkbox" id="semester{{$semester->id}}" name="semester{{$semester->id}}" value="semester{{$semester->id}}">
29
-                <label for="semester{{$semester->id}}">{{$semester->name}}({{$semester->code}})</label>
30
-                {{-- {{ Form::checkbox('semester'.$semester->id, $semester->name, array('class' => 'form-control', 'id'=>$semester->id)) }}
14
+    <button class="btn btn-lg btn-primary pull-right" id='show'>Custom Report</button>
15
+    <div class="" id='make_report'>
16
+        <hr>
17
+        <b>
18
+            <h3>Report Options</h3><br>
19
+        </b>
20
+        {{-- For for adding a new outcome --}}
21
+        {{ Form::open(['action' => 'ProgramsController@showReport']) }}
22
+        <div class="row">
23
+            <div class="col-md-1">
24
+            </div>
25
+            <div class="col-md-5">
26
+                {{ Form::label('name', 'Select which semesters to report on') }}<br>
27
+                @foreach ($semesters as $semester)
28
+                    @if ($semester->is_visible)
29
+                        <div class="form-group">
30
+                            <input type="checkbox" id="semester{{ $semester->id }}" name="semester{{ $semester->id }}"
31
+                                value="semester{{ $semester->id }}">
32
+                            <label for="semester{{ $semester->id }}">{{ $semester->name }}({{ $semester->code }})</label>
33
+                            {{-- {{ Form::checkbox('semester'.$semester->id, $semester->name, array('class' => 'form-control', 'id'=>$semester->id)) }}
31
                 {{ Form::label('semester'.$semester->id, $semester->name.'('.$semester->code.')') }}<br> --}}
34
                 {{ Form::label('semester'.$semester->id, $semester->name.'('.$semester->code.')') }}<br> --}}
32
-              </div>
33
-            @endif
34
-          @endforeach
35
-      </div>
36
-      <div class="col-md-6">
37
-        {{ Form::label('divulgacion', 'Select metodos de divulgacion') }}<br>
38
-        <div class="form-group">
39
-          <input type="checkbox" id="profesores" name="profesores" value="Profesores (pares)">
40
-          <label for="profesores">Profesores (pares)</label>
41
-        </div>
42
-        <div class="form-group">
43
-          <input type="checkbox" id="comiteDepartamental" name="comiteDepartamental" value="Comites de curriculo departamental">
44
-          <label for="comiteDepartamental">Comites de curriculo departamental</label>
45
-        </div>
46
-        <div class="form-group">
47
-          <input type="checkbox" id="comiteFacultadEscuela" name="comiteFacultadEscuela" value="Comites de curriculo  de Facultad o Escuela">
48
-          <label for="comiteFacultadEscuela">Comites de curriculo  de Facultad o Escuela</label>
49
-        </div>
50
-        <div class="form-group">
51
-          <input type="checkbox" id="pleno" name="pleno" value="Pleno de la Facultad">
52
-          <label for="pleno">Pleno de la Facultad</label>
53
-        </div>
54
-        <div class="form-group">
55
-          <input type="checkbox" id="estudiantes" name="estudiantes" value="Estudiantes">
56
-          <label for="estudiantes">Estudiantes</label>
57
-        </div>
58
-        <div class="form-group">
59
-          <input type="checkbox" id="administrativos" name="administrativos" value="Administrativos">
60
-          <label for="administrativos">Administrativos</label>
35
+                        </div>
36
+                    @endif
37
+                @endforeach
38
+            </div>
39
+            <div class="col-md-6">
40
+                {{ Form::label('divulgacion', 'Select metodos de divulgacion') }}<br>
41
+                <div class="form-group">
42
+                    <input type="checkbox" id="profesores" name="profesores" value="Profesores (pares)">
43
+                    <label for="profesores">Profesores (pares)</label>
44
+                </div>
45
+                <div class="form-group">
46
+                    <input type="checkbox" id="comiteDepartamental" name="comiteDepartamental"
47
+                        value="Comites de curriculo departamental">
48
+                    <label for="comiteDepartamental">Comites de curriculo departamental</label>
49
+                </div>
50
+                <div class="form-group">
51
+                    <input type="checkbox" id="comiteFacultadEscuela" name="comiteFacultadEscuela"
52
+                        value="Comites de curriculo  de Facultad o Escuela">
53
+                    <label for="comiteFacultadEscuela">Comites de curriculo de Facultad o Escuela</label>
54
+                </div>
55
+                <div class="form-group">
56
+                    <input type="checkbox" id="pleno" name="pleno" value="Pleno de la Facultad">
57
+                    <label for="pleno">Pleno de la Facultad</label>
58
+                </div>
59
+                <div class="form-group">
60
+                    <input type="checkbox" id="estudiantes" name="estudiantes" value="Estudiantes">
61
+                    <label for="estudiantes">Estudiantes</label>
62
+                </div>
63
+                <div class="form-group">
64
+                    <input type="checkbox" id="administrativos" name="administrativos" value="Administrativos">
65
+                    <label for="administrativos">Administrativos</label>
66
+                </div>
67
+                <div class="form-group">
68
+                    <input type="checkbox" id="senado" name="senado" value="Senado">
69
+                    <label for="senado">Senado</label>
70
+                </div>
71
+                <div class="form-group">
72
+                    <input type="checkbox" id="comunidadWeb" name="comunidadWeb" value="Comunidad (pagina web)">
73
+                    <label for="comunidadWeb">Comunidad (pagina web)</label>
74
+                </div>
75
+                <div class="form-group">
76
+                    <input type="checkbox" id="otros" name="otros" value="Otros">
77
+                    <label for="otros">Otro- <input type="text" id='otherBox'></label>
78
+                </div>
79
+            </div>
61
         </div>
80
         </div>
62
-        <div class="form-group">
63
-          <input type="checkbox" id="senado" name="senado" value="Senado">
64
-          <label for="senado">Senado</label>
81
+        <div class="row">
82
+            <div class=""><button type="submit" id='submit' class="btn btn-lg btn-primary center-block">Create
83
+                    Report</button></div>
65
         </div>
84
         </div>
66
-        <div class="form-group">
67
-          <input type="checkbox" id="comunidadWeb" name="comunidadWeb" value="Comunidad (pagina web)">
68
-          <label for="comunidadWeb">Comunidad (pagina web)</label>
69
-        </div>
70
-        <div class="form-group">
71
-          <input type="checkbox" id="otros" name="otros" value="Otros">
72
-          <label for="otros">Otro- <input type="text" id='otherBox'></label>
73
-        </div>
74
-      </div>
85
+        {{ Form::close() }}
86
+        <hr>
87
+        <button class="btn btn-lg btn-primary pull-right" id='hide'>Hide Form</button>
75
     </div>
88
     </div>
89
+
76
     <div class="row">
90
     <div class="row">
77
-      <div class=""><button type="submit" id='submit' class="btn btn-lg btn-primary center-block">Create Report</button></div>
91
+        <div class="col-md-12">
92
+            <table class="table table-condensed table-stripedd datatable">
93
+                <thead>
94
+                    <tr>
95
+                        <th>Name</th>
96
+                        <th>School</th>
97
+                    </tr>
98
+                </thead>
99
+                <tfoot>
100
+                    <tr class="column-search">
101
+                        <th><input class="column-search-bar form-control" type="text" placeholder="Buscar" /></th>
102
+                        <th><select class="column-search-select form-control">
103
+                                <option value=""></option>
104
+                            </select></th>
105
+                    </tr>
106
+                </tfoot>
107
+                <tbody>
108
+                    @foreach ($programs as $program)
109
+                        <tr>
110
+                            <td>{{ HTML::linkAction('ProgramsController@show', $program->name, [$program->id]) }}
111
+                            </td>
112
+                            <td>{{ $program->school->name }}</td>
113
+                        </tr>
114
+                    @endforeach
115
+                </tbody>
116
+            </table>
117
+        </div>
78
     </div>
118
     </div>
79
-    {{ Form::close() }}
80
-    <hr>
81
-    <button class="btn btn-lg btn-primary pull-right" id='hide'>Hide Form</button>
82
-  </div>
83
-
84
-<div class="row">
85
-  <div class="col-md-12">
86
-      <table class="table table-condensed table-stripedd datatable">
87
-        <thead>
88
-          <tr>
89
-            <th>Name</th>
90
-            <th>School</th>
91
-          </tr>
92
-        </thead>
93
-        <tfoot>
94
-            <tr class="column-search">
95
-                <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
96
-                <th><select class="column-search-select form-control"><option value=""></option></select></th>
97
-            </tr>
98
-        </tfoot>
99
-        <tbody>
100
-          @foreach($programs as $program)
101
-            <tr>
102
-              <td>{{ HTML::linkAction('ProgramsController@show', $program->name, array($program->id)) }}</td>
103
-              <td>{{ $program->school->name }}</td>
104
-            </tr>
105
-          @endforeach
106
-        </tbody>
107
-      </table>
108
-  </div>
109
-</div>
110
 
119
 
111
 @stop
120
 @stop
112
 
121
 
113
 
122
 
114
 @section('included-js')
123
 @section('included-js')
115
 
124
 
116
-<!-- Datatables -->
117
-@include('global._datatables_js')
125
+    <!-- Datatables -->
126
+    @include('global._datatables_js')
118
 
127
 
119
 @stop
128
 @stop
120
 
129
 
121
 @section('javascript')
130
 @section('javascript')
122
 
131
 
123
-      $('#make_report').hide();
132
+    $('#make_report').hide();
124
 
133
 
125
-      //show form
126
-      $('#show').on('click', function(e)
127
-      {
128
-        $('#make_report').show();
129
-        $('#show').hide();
130
-      });
134
+    //show form
135
+    $('#show').on('click', function(e)
136
+    {
137
+    $('#make_report').show();
138
+    $('#show').hide();
139
+    });
131
 
140
 
132
-      //hide form
133
-      $('#hide').on('click', function(e)
134
-      {
135
-        $('#make_report').hide();
136
-        $('#show').show();
137
-      });
141
+    //hide form
142
+    $('#hide').on('click', function(e)
143
+    {
144
+    $('#make_report').hide();
145
+    $('#show').show();
146
+    });
138
 
147
 
139
-      //on submit, change value of the checkbox input of id 'other'
140
-      $('#submit').click(function(){
141
-        $('#otros').val('Otro- '+$('#otherBox').val());
142
-      });
148
+    //on submit, change value of the checkbox input of id 'other'
149
+    $('#submit').click(function(){
150
+    $('#otros').val('Otro- '+$('#otherBox').val());
151
+    });
143
 @stop
152
 @stop

+ 1
- 1
app/views/local/managers/shared/rubric_list.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if ($role == 1)
4
     @if ($role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role == 2)
6
     @elseif($role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role == 3)
8
     @elseif($role == 3)

+ 1
- 1
app/views/local/managers/shared/rubrics-old.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
         @if(Auth::user()->role==1)
4
         @if(Auth::user()->role==1)
5
-            @include('local.managers.admins._navigation')
5
+            @include('local.managers.admins._new_navigation')
6
         @elseif(Auth::user()->role==2)
6
         @elseif(Auth::user()->role==2)
7
             @include('local.managers.sCoords._new_navigation')
7
             @include('local.managers.sCoords._new_navigation')
8
         @elseif(Auth::user()->role==3)
8
         @elseif(Auth::user()->role==3)

+ 1
- 1
app/views/local/managers/shared/rubrics.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
         @if(Auth::user()->role==1)
4
         @if(Auth::user()->role==1)
5
-            @include('local.managers.admins._navigation')
5
+            @include('local.managers.admins._new_navigation')
6
         @elseif(Auth::user()->role==2)
6
         @elseif(Auth::user()->role==2)
7
             @include('local.managers.sCoords._new_navigation')
7
             @include('local.managers.sCoords._new_navigation')
8
         @elseif(Auth::user()->role==3)
8
         @elseif(Auth::user()->role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
         @if(Auth::user()->role==1)
4
         @if(Auth::user()->role==1)
5
-            @include('local.managers.admins._navigation')
5
+            @include('local.managers.admins._new_navigation')
6
         @elseif(Auth::user()->role==2)
6
         @elseif(Auth::user()->role==2)
7
             @include('local.managers.sCoords._new_navigation')
7
             @include('local.managers.sCoords._new_navigation')
8
         @elseif(Auth::user()->role==3)
8
         @elseif(Auth::user()->role==3)

+ 1
- 1
app/views/local/managers/shared/school-uhs.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @endif
8
     @endif

+ 1
- 1
app/views/local/managers/shared/school.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @endif
8
     @endif

+ 1
- 1
app/views/local/managers/shared/school_student_result.blade.php View File

3
 
3
 
4
 @section('navigation')
4
 @section('navigation')
5
     @if($role==1)
5
     @if($role==1)
6
-        @include('local.managers.admins._navigation')
6
+        @include('local.managers.admins._new_navigation')
7
     @elseif($role==2)
7
     @elseif($role==2)
8
         @include('local.managers.sCoords._new_navigation')
8
         @include('local.managers.sCoords._new_navigation')
9
     @endif
9
     @endif

+ 328
- 309
app/views/local/managers/shared/show_five_year_plan.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if(Auth::user()->role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif(Auth::user()->role==2)
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')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif(Auth::user()->role==3)
8
+    @elseif(Auth::user()->role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @endif
10
     @endif
11
 @stop
11
 @stop
12
 
12
 
13
 @section('main')
13
 @section('main')
14
 
14
 
15
-<div class="row">
16
-	<div class="col-md-12">
17
-
18
-		<div id="quinquennium" data-quinquennium-id="{{ $plan->quinquennium->id }}"></div>
19
-		<div id="program" data-program-id="{{ $program->id }}"></div>
20
-
21
-		@if(!$plan->is_submitted)
22
-			@if(date('Y-m-d') <= $plan->quinquennium->five_year_plan_due_date)
23
-				<span class="glyphicon glyphicon-info-sign"></span>
24
-				<strong>Note:</strong> This plan is saved as a <strong>draft.</strong> Remember to submit it by <strong>{{ date('F d', strtotime($plan->quinquennium->five_year_plan_due_date)) }}</strong>. After the due date, unsubmitted drafts will not be considered.</strong>
25
-
26
-				<div class="text-right">
27
-					<br>
28
-
29
-		            {{ Form::open(array('action'=>'FiveYearPlansController@update', 'class'=>"form-inline")) }}
30
-			            <a href="{{ URL::action('FiveYearPlansController@edit', array('program'=>$program->id, 'plan'=>$plan->id) )}}" class="btn btn-primary edit">
31
-			                <span class="glyphicon glyphicon-pencil"></span>
32
-			                Edit
33
-			            </a>
34
-
35
-			            <button class="btn btn-primary pdf">
36
-			                <span class="glyphicon glyphicon-arrow-left"></span>
37
-			                PDF
38
-			            </button>
39
-
40
-			            <a href="{{ URL::action('FiveYearPlansController@msWord', array('plan'=>$plan->id))}}" class="btn btn-primary">
41
-			                <span class="glyphicon glyphicon-download-alt"></span>
42
-			                MS Word
43
-			            </a>
44
-
45
-		            	<button type="submit" class="btn btn-primary">
46
-		            		<span class="glyphicon glyphicon-send"></span>
47
-		            		Submit
48
-		            	</button>
49
-
50
-						<a href="{{ URL::action('FiveYearPlansController@index')}}" class="btn btn-primary submit">
51
-			                <span class="glyphicon glyphicon-arrow-left"></span>
52
-			                Back to Five Year Plans
53
-		            	</a>
54
-		            {{ Form::close() }}
55
-
56
-		            <br>
57
-	        	</div>
58
-			@else
59
-
60
-				<span class="glyphicon glyphicon-info-sign"></span>
61
-				<strong>Note:</strong> This plan was not submitted on time.</strong>
62
-			@endif
63
-		@else
64
-			<span class="glyphicon glyphicon-ok-sign"></span>
65
-			<strong>Note:</strong> This plan was submitted on {{ date('F j, Y', strtotime($plan->submitted_on)) }}
66
-
67
-
68
-			<div class="text-right">
69
-				@if(date('Y-m-d') < $plan->quinquennium->five_year_plan_due_date)
70
-					<br>
71
-		            <a href="{{ URL::action('FiveYearPlansController@edit', array('program'=>$program->id, 'plan'=>$plan->id) )}}" class="btn btn-primary revert">
72
-		                <span class="glyphicon glyphicon-backward"></span>
73
-		                 Revert Submission
74
-		            </a>
75
-		        @endif
76
-
77
-	            <br><br>
78
-	        </div>
79
-		@endif
80
-
81
-		<!-- Nav tabs -->
82
-		<ul class="nav nav-tabs" role="tablist">
83
-		<li role="presentation" class="active"><a href="#full-plan" aria-controls="full-plan" role="tab" data-toggle="tab"><h4>Full Plan</h4></a></li>
84
-		<li role="presentation"><a href="#summary" aria-controls="summary" role="tab" data-toggle="tab"><h4>Summary</h4></a></li>
85
-		</ul>
86
-		<br>
87
-
88
-		<!-- Tab panes -->
89
-		<div class="tab-content">
90
-			<div role="tabpanel" class="tab-pane active" id="full-plan">
91
-				@foreach($plan->fypParts as $mini_plan)
92
-					<div class="mini-plan">
93
-						<table class="table table-bordered" id="table">
94
-							<thead>
95
-								<tr class="bg-warning text-center">
96
-									<th class="text-center col-md-1">Academic Year</th>
97
-									<th class="text-center col-md-3">Learning Outcome to be assessed</th>
98
-									<th class="text-center col-md-4">Learning Objectives</th>
99
-									<th class="text-center col-md-4">Courses to use for assessment</th>
100
-								</tr>
101
-							</thead>
102
-							<tbody>
103
-								@foreach($mini_plan->fypPartOutcomes as $index => $outcome)
104
-									<tr>
105
-										<!-- If outcome is the first, include multi-row year column -->
106
-										@if($index == 0)
107
-											<th class="active academic-year text-center" rowspan ="{{ count($mini_plan->fypPartOutcomes) }}">{{ $mini_plan->year_start }}-{{ $mini_plan->year_end }}</th>
108
-										@else
109
-											<th class="hidden">{{ $mini_plan->year_start }}-{{ $mini_plan->year_end }}</th>
110
-										@endif
111
-										<td class="outcome-cell">
112
-											{{ $outcome->outcome->name }}
113
-										</td>
114
-										<td class="objectives-cell">
115
-											<ul>
116
-												@foreach(json_decode($outcome->objectives) as $objective)
117
-													<li class="objective">{{ $objective->text }}</li>
118
-												@endforeach
119
-											</ul>
120
-										</td>
121
-										<td>
122
-											<ul>
123
-												@foreach(json_decode($outcome->courses) as $course)
124
-													<li class="course">{{ $course->code }}{{ $course->number }}: {{ $course->name }}</li>
125
-												@endforeach
126
-											</ul>
127
-										</td>
128
-									</tr>
129
-								@endforeach
130
-							</tbody>
131
-						</table>
132
-					</div>
133
-					<br>
134
-				@endforeach
135
-			</div>
136
-			<div role="tabpanel" class="tab-pane" id="summary">
137
-
138
-				<p>This summary is automatically generated using the information from the Full Plan. Any changes to the plan will be reflected here.</p>
139
-
140
-				<table class="table table-bordered text-center">
141
-					<thead>
142
-						<tr class="bg-warning">
143
-							<th class="col-md-4">Learning Outcome</th>
144
-							@foreach($plan->fypParts as $mini_plan)
145
-								<th class="academic-year text-center">{{ $mini_plan->year_start }}-{{ $mini_plan->year_end }}</th>
146
-							@endforeach
147
-						</tr>
148
-					</thead>
149
-					<tbody>
150
-						@foreach($outcomes as $outcome)
151
-							<tr>
152
-								<th class="active">{{ $outcome->name }}</th>
153
-								@foreach($plan->fypParts as $mini_plan)
154
-									@if($mini_plan->willAssessOutcome($outcome->id))
155
-										<td><span class="glyphicon glyphicon-ok"></span></td>
156
-									@else
157
-										<td></td>
158
-									@endif
159
-								@endforeach
160
-							</tr>
161
-						@endforeach
162
-					</tbody>
163
-				</table>
164
-			</div>
165
-		</div>
166
-
167
-		@if(!$plan->is_submitted)
168
-			@if(date('Y-m-d') <= $plan->quinquennium->five_year_plan_due_date)
169
-				<div class="text-right">
170
-					<br>
171
-
172
-		            {{ Form::open(array('action'=>'FiveYearPlansController@update', 'class'=>"form-inline")) }}
173
-			            <a href="{{ URL::action('FiveYearPlansController@edit', array('program'=>$program->id, 'plan'=>$plan->id) )}}" class="btn btn-primary edit">
174
-			                <span class="glyphicon glyphicon-pencil"></span>
175
-			                Edit
176
-			            </a>
177
-
178
-			            <button class="btn btn-primary pdf">
179
-			                <span class="glyphicon glyphicon-arrow-left"></span>
180
-			                PDF
181
-			            </button>
182
-
183
-			            <a href="{{ URL::action('FiveYearPlansController@msWord', array('plan'=>$plan->id))}}" class="btn btn-primary">
184
-			                <span class="glyphicon glyphicon-download-alt"></span>
185
-			                MS Word
186
-			            </a>
187
-
188
-		            	<button type="submit" class="btn btn-primary">
189
-		            		<span class="glyphicon glyphicon-send"></span>
190
-		            		Submit
191
-		            	</button>
192
-
193
-						<a href="{{ URL::action('FiveYearPlansController@index')}}" class="btn btn-primary submit">
194
-			                <span class="glyphicon glyphicon-arrow-left"></span>
195
-			                Back to Five Year Plans
196
-		            	</a>
197
-		            {{ Form::close() }}
198
-
199
-		            <br>
200
-	        	</div>
201
-			@else
202
-
203
-				<span class="glyphicon glyphicon-info-sign"></span>
204
-				<strong>Note:</strong> This plan was not submitted on time.</strong>
205
-			@endif
206
-		@else
207
-			<span class="glyphicon glyphicon-ok-sign"></span>
208
-			<strong>Note:</strong> This plan was submitted on {{ date('F j, Y', strtotime($plan->submitted_on)) }}
209
-
210
-
211
-			<div class="text-right">
212
-				@if(date('Y-m-d') < $plan->quinquennium->five_year_plan_due_date)
213
-					<br>
214
-		            <a href="{{ URL::action('FiveYearPlansController@edit', array('program'=>$program->id, 'plan'=>$plan->id) )}}" class="btn btn-primary revert">
215
-		                <span class="glyphicon glyphicon-backward"></span>
216
-		                 Revert Submission
217
-		            </a>
218
-		        @endif
219
-
220
-	            <br><br>
221
-	        </div>
222
-		@endif
223
-	</div>
224
-</div>
15
+    <div class="row">
16
+        <div class="col-md-12">
17
+
18
+            <div id="quinquennium" data-quinquennium-id="{{ $plan->quinquennium->id }}"></div>
19
+            <div id="program" data-program-id="{{ $program->id }}"></div>
20
+
21
+            @if (!$plan->is_submitted)
22
+                @if (date('Y-m-d') <= $plan->quinquennium->five_year_plan_due_date)
23
+                    <span class="glyphicon glyphicon-info-sign"></span>
24
+                    <strong>Note:</strong> This plan is saved as a <strong>draft.</strong> Remember to submit it by
25
+                    <strong>{{ date('F d', strtotime($plan->quinquennium->five_year_plan_due_date)) }}</strong>. After the
26
+                    due date, unsubmitted drafts will not be considered.</strong>
27
+
28
+                    <div class="text-right">
29
+                        <br>
30
+
31
+                        {{ Form::open(['action' => 'FiveYearPlansController@update', 'class' => 'form-inline']) }}
32
+                        <a href="{{ URL::action('FiveYearPlansController@edit', ['program' => $program->id, 'plan' => $plan->id]) }}"
33
+                            class="btn btn-primary edit">
34
+                            <span class="glyphicon glyphicon-pencil"></span>
35
+                            Edit
36
+                        </a>
37
+
38
+                        <button class="btn btn-primary pdf">
39
+                            <span class="glyphicon glyphicon-arrow-left"></span>
40
+                            PDF
41
+                        </button>
42
+
43
+                        <a href="{{ URL::action('FiveYearPlansController@msWord', ['plan' => $plan->id]) }}"
44
+                            class="btn btn-primary">
45
+                            <span class="glyphicon glyphicon-download-alt"></span>
46
+                            MS Word
47
+                        </a>
48
+
49
+                        <button type="submit" class="btn btn-primary">
50
+                            <span class="glyphicon glyphicon-send"></span>
51
+                            Submit
52
+                        </button>
53
+
54
+                        <a href="{{ URL::action('FiveYearPlansController@index') }}" class="btn btn-primary submit">
55
+                            <span class="glyphicon glyphicon-arrow-left"></span>
56
+                            Back to Five Year Plans
57
+                        </a>
58
+                        {{ Form::close() }}
59
+
60
+                        <br>
61
+                    </div>
62
+                @else
63
+                    <span class="glyphicon glyphicon-info-sign"></span>
64
+                    <strong>Note:</strong> This plan was not submitted on time.</strong>
65
+                @endif
66
+            @else
67
+                <span class="glyphicon glyphicon-ok-sign"></span>
68
+                <strong>Note:</strong> This plan was submitted on {{ date('F j, Y', strtotime($plan->submitted_on)) }}
69
+
70
+
71
+                <div class="text-right">
72
+                    @if (date('Y-m-d') < $plan->quinquennium->five_year_plan_due_date)
73
+                        <br>
74
+                        <a href="{{ URL::action('FiveYearPlansController@edit', ['program' => $program->id, 'plan' => $plan->id]) }}"
75
+                            class="btn btn-primary revert">
76
+                            <span class="glyphicon glyphicon-backward"></span>
77
+                            Revert Submission
78
+                        </a>
79
+                    @endif
80
+
81
+                    <br><br>
82
+                </div>
83
+            @endif
84
+
85
+            <!-- Nav tabs -->
86
+            <ul class="nav nav-tabs" role="tablist">
87
+                <li role="presentation" class="active"><a href="#full-plan" aria-controls="full-plan" role="tab"
88
+                        data-toggle="tab">
89
+                        <h4>Full Plan</h4>
90
+                    </a></li>
91
+                <li role="presentation"><a href="#summary" aria-controls="summary" role="tab" data-toggle="tab">
92
+                        <h4>Summary</h4>
93
+                    </a></li>
94
+            </ul>
95
+            <br>
96
+
97
+            <!-- Tab panes -->
98
+            <div class="tab-content">
99
+                <div role="tabpanel" class="tab-pane active" id="full-plan">
100
+                    @foreach ($plan->fypParts as $mini_plan)
101
+                        <div class="mini-plan">
102
+                            <table class="table table-bordered" id="table">
103
+                                <thead>
104
+                                    <tr class="bg-warning text-center">
105
+                                        <th class="text-center col-md-1">Academic Year</th>
106
+                                        <th class="text-center col-md-3">Learning Outcome to be assessed</th>
107
+                                        <th class="text-center col-md-4">Learning Objectives</th>
108
+                                        <th class="text-center col-md-4">Courses to use for assessment</th>
109
+                                    </tr>
110
+                                </thead>
111
+                                <tbody>
112
+                                    @foreach ($mini_plan->fypPartOutcomes as $index => $outcome)
113
+                                        <tr>
114
+                                            <!-- If outcome is the first, include multi-row year column -->
115
+                                            @if ($index == 0)
116
+                                                <th class="active academic-year text-center"
117
+                                                    rowspan="{{ count($mini_plan->fypPartOutcomes) }}">
118
+                                                    {{ $mini_plan->year_start }}-{{ $mini_plan->year_end }}</th>
119
+                                            @else
120
+                                                <th class="hidden">
121
+                                                    {{ $mini_plan->year_start }}-{{ $mini_plan->year_end }}</th>
122
+                                            @endif
123
+                                            <td class="outcome-cell">
124
+                                                {{ $outcome->outcome->name }}
125
+                                            </td>
126
+                                            <td class="objectives-cell">
127
+                                                <ul>
128
+                                                    @foreach (json_decode($outcome->objectives) as $objective)
129
+                                                        <li class="objective">{{ $objective->text }}</li>
130
+                                                    @endforeach
131
+                                                </ul>
132
+                                            </td>
133
+                                            <td>
134
+                                                <ul>
135
+                                                    @foreach (json_decode($outcome->courses) as $course)
136
+                                                        <li class="course">
137
+                                                            {{ $course->code }}{{ $course->number }}:
138
+                                                            {{ $course->name }}</li>
139
+                                                    @endforeach
140
+                                                </ul>
141
+                                            </td>
142
+                                        </tr>
143
+                                    @endforeach
144
+                                </tbody>
145
+                            </table>
146
+                        </div>
147
+                        <br>
148
+                    @endforeach
149
+                </div>
150
+                <div role="tabpanel" class="tab-pane" id="summary">
151
+
152
+                    <p>This summary is automatically generated using the information from the Full Plan. Any changes to the
153
+                        plan will be reflected here.</p>
154
+
155
+                    <table class="table table-bordered text-center">
156
+                        <thead>
157
+                            <tr class="bg-warning">
158
+                                <th class="col-md-4">Learning Outcome</th>
159
+                                @foreach ($plan->fypParts as $mini_plan)
160
+                                    <th class="academic-year text-center">
161
+                                        {{ $mini_plan->year_start }}-{{ $mini_plan->year_end }}</th>
162
+                                @endforeach
163
+                            </tr>
164
+                        </thead>
165
+                        <tbody>
166
+                            @foreach ($outcomes as $outcome)
167
+                                <tr>
168
+                                    <th class="active">{{ $outcome->name }}</th>
169
+                                    @foreach ($plan->fypParts as $mini_plan)
170
+                                        @if ($mini_plan->willAssessOutcome($outcome->id))
171
+                                            <td><span class="glyphicon glyphicon-ok"></span></td>
172
+                                        @else
173
+                                            <td></td>
174
+                                        @endif
175
+                                    @endforeach
176
+                                </tr>
177
+                            @endforeach
178
+                        </tbody>
179
+                    </table>
180
+                </div>
181
+            </div>
182
+
183
+            @if (!$plan->is_submitted)
184
+                @if (date('Y-m-d') <= $plan->quinquennium->five_year_plan_due_date)
185
+                    <div class="text-right">
186
+                        <br>
187
+
188
+                        {{ Form::open(['action' => 'FiveYearPlansController@update', 'class' => 'form-inline']) }}
189
+                        <a href="{{ URL::action('FiveYearPlansController@edit', ['program' => $program->id, 'plan' => $plan->id]) }}"
190
+                            class="btn btn-primary edit">
191
+                            <span class="glyphicon glyphicon-pencil"></span>
192
+                            Edit
193
+                        </a>
194
+
195
+                        <button class="btn btn-primary pdf">
196
+                            <span class="glyphicon glyphicon-arrow-left"></span>
197
+                            PDF
198
+                        </button>
199
+
200
+                        <a href="{{ URL::action('FiveYearPlansController@msWord', ['plan' => $plan->id]) }}"
201
+                            class="btn btn-primary">
202
+                            <span class="glyphicon glyphicon-download-alt"></span>
203
+                            MS Word
204
+                        </a>
205
+
206
+                        <button type="submit" class="btn btn-primary">
207
+                            <span class="glyphicon glyphicon-send"></span>
208
+                            Submit
209
+                        </button>
210
+
211
+                        <a href="{{ URL::action('FiveYearPlansController@index') }}" class="btn btn-primary submit">
212
+                            <span class="glyphicon glyphicon-arrow-left"></span>
213
+                            Back to Five Year Plans
214
+                        </a>
215
+                        {{ Form::close() }}
216
+
217
+                        <br>
218
+                    </div>
219
+                @else
220
+                    <span class="glyphicon glyphicon-info-sign"></span>
221
+                    <strong>Note:</strong> This plan was not submitted on time.</strong>
222
+                @endif
223
+            @else
224
+                <span class="glyphicon glyphicon-ok-sign"></span>
225
+                <strong>Note:</strong> This plan was submitted on {{ date('F j, Y', strtotime($plan->submitted_on)) }}
226
+
227
+
228
+                <div class="text-right">
229
+                    @if (date('Y-m-d') < $plan->quinquennium->five_year_plan_due_date)
230
+                        <br>
231
+                        <a href="{{ URL::action('FiveYearPlansController@edit', ['program' => $program->id, 'plan' => $plan->id]) }}"
232
+                            class="btn btn-primary revert">
233
+                            <span class="glyphicon glyphicon-backward"></span>
234
+                            Revert Submission
235
+                        </a>
236
+                    @endif
237
+
238
+                    <br><br>
239
+                </div>
240
+            @endif
241
+        </div>
242
+    </div>
225
 
243
 
226
 @stop
244
 @stop
227
 
245
 
228
 @section('included-js')
246
 @section('included-js')
229
 
247
 
230
-<script src="{{ asset('vendor/jsPDF-master/dist/jspdf.min.js') }}"></script>
231
-<script src="{{ asset('vendor/jsPDF-AutoTable-master/dist/jspdf.plugin.autotable.js') }}"></script>
248
+    <script src="{{ asset('vendor/jsPDF-master/dist/jspdf.min.js') }}"></script>
249
+    <script src="{{ asset('vendor/jsPDF-AutoTable-master/dist/jspdf.plugin.autotable.js') }}"></script>
232
 
250
 
233
 @stop
251
 @stop
234
 
252
 
235
 @section('javascript')
253
 @section('javascript')
236
 
254
 
237
-// --------------------------------------------------------------------------
238
-// Page Load
239
-// --------------------------------------------------------------------------
240
-$('.datatable').DataTable(
241
-{
242
-	"searching": false,
243
-	"paging": false,
244
-	"ordering": false,
245
-	"info": false
246
-});
255
+    // --------------------------------------------------------------------------
256
+    // Page Load
257
+    // --------------------------------------------------------------------------
258
+    $('.datatable').DataTable(
259
+    {
260
+    "searching": false,
261
+    "paging": false,
262
+    "ordering": false,
263
+    "info": false
264
+    });
247
 
265
 
248
-// --------------------------------------------------------------------------
249
-// Events
250
-// --------------------------------------------------------------------------
266
+    // --------------------------------------------------------------------------
267
+    // Events
268
+    // --------------------------------------------------------------------------
251
 
269
 
252
-$('.pdf').on('click', function(e)
253
-{
254
-	e.preventDefault();
270
+    $('.pdf').on('click', function(e)
271
+    {
272
+    e.preventDefault();
255
 
273
 
256
-	console.log('start');
274
+    console.log('start');
257
 
275
 
258
-	var doc = new jsPDF('l', 'pt');
259
-		doc.setFontSize(10);
260
-	    doc.text("From HTML", 40, 50);
276
+    var doc = new jsPDF('l', 'pt');
277
+    doc.setFontSize(10);
278
+    doc.text("From HTML", 40, 50);
261
 
279
 
262
 
280
 
263
-	var columns = ['Academic Year', 'Learning Outcome to be assessed', 'Learning Objectives', 'Courses to use for assessment'];
281
+    var columns = ['Academic Year', 'Learning Outcome to be assessed', 'Learning Objectives', 'Courses to use for
282
+    assessment'];
264
 
283
 
265
-	$('table').each(function(index, value)
266
-	{
267
-		if(index != 0 )
268
-		{
269
-			doc.addPage();
270
-		}
284
+    $('table').each(function(index, value)
285
+    {
286
+    if(index != 0 )
287
+    {
288
+    doc.addPage();
289
+    }
271
 
290
 
272
-		console.log('start table');
291
+    console.log('start table');
273
 
292
 
274
-		var rows = new Array();
293
+    var rows = new Array();
275
 
294
 
276
-		var table = $(this);
295
+    var table = $(this);
277
 
296
 
278
-		var disp_table = new Object();
279
-		disp_table.columns = columns;
297
+    var disp_table = new Object();
298
+    disp_table.columns = columns;
280
 
299
 
281
-		// Iterate tables
282
-		table.find('tbody tr').each(function(index, value)
283
-		{
284
-			console.log('row: '+(index+1));
285
-			var tr = $(this);
286
-			var row = new Array();
287
-			var academic_year = tr.find(':nth-child(1)').html();
288
-			var outcome = $.trim(tr.find(':nth-child(2)').html());
289
-			var objectives_dom = tr.find(':nth-child(3)');
290
-			var courses_dom = tr.find(':nth-child(4)');
291
-			var objectives = new Array();
292
-			var courses = new Array();
300
+    // Iterate tables
301
+    table.find('tbody tr').each(function(index, value)
302
+    {
303
+    console.log('row: '+(index+1));
304
+    var tr = $(this);
305
+    var row = new Array();
306
+    var academic_year = tr.find(':nth-child(1)').html();
307
+    var outcome = $.trim(tr.find(':nth-child(2)').html());
308
+    var objectives_dom = tr.find(':nth-child(3)');
309
+    var courses_dom = tr.find(':nth-child(4)');
310
+    var objectives = new Array();
311
+    var courses = new Array();
293
 
312
 
294
 
313
 
295
-			objectives_dom.find('.objective').each(function()
296
-			{
297
-				objectives.push('• '+$.trim($(this).text()));
298
-			});
314
+    objectives_dom.find('.objective').each(function()
315
+    {
316
+    objectives.push('• '+$.trim($(this).text()));
317
+    });
299
 
318
 
300
-			courses_dom.find('.course').each(function()
301
-			{
302
-				courses.push('• '+$.trim($(this).text()));
303
-			});
319
+    courses_dom.find('.course').each(function()
320
+    {
321
+    courses.push('• '+$.trim($(this).text()));
322
+    });
304
 
323
 
305
-			console.log(academic_year);
306
-			console.log(outcome);
307
-			console.log(objectives);
308
-			console.log(courses);
324
+    console.log(academic_year);
325
+    console.log(outcome);
326
+    console.log(objectives);
327
+    console.log(courses);
309
 
328
 
310
-			row.push(academic_year);
311
-			row.push(outcome);
312
-			row.push(jQuery.extend([], objectives));
313
-			row.push(jQuery.extend([], courses));
329
+    row.push(academic_year);
330
+    row.push(outcome);
331
+    row.push(jQuery.extend([], objectives));
332
+    row.push(jQuery.extend([], courses));
314
 
333
 
315
-			rows.push(jQuery.extend([], row));
334
+    rows.push(jQuery.extend([], row));
316
 
335
 
317
-			disp_table.rows = jQuery.extend([], rows);
336
+    disp_table.rows = jQuery.extend([], rows);
318
 
337
 
319
-			console.log('end row: '+(index+1));
320
-		});
338
+    console.log('end row: '+(index+1));
339
+    });
321
 
340
 
322
-		console.log(disp_table);
341
+    console.log(disp_table);
323
 
342
 
324
-		doc.autoTable(columns, rows,
325
-		{
326
-			theme: "grid",
327
-			styles: {
328
-				overflow: 'linebreak'
329
-			},
330
-			drawCell: function (cell, data) {
331
-				console.log('CELL DRAW START');
343
+    doc.autoTable(columns, rows,
344
+    {
345
+    theme: "grid",
346
+    styles: {
347
+    overflow: 'linebreak'
348
+    },
349
+    drawCell: function (cell, data) {
350
+    console.log('CELL DRAW START');
332
 
351
 
333
-				console.log(cell);
334
-				if (data.column.index == 2 || data.column.index == 3)
335
-				{
336
-					doc.rect(cell.x, cell.y, cell.width, cell.height, 'S');
337
-					doc.text(cell.raw, cell.x + 5, cell.y + 12);
352
+    console.log(cell);
353
+    if (data.column.index == 2 || data.column.index == 3)
354
+    {
355
+    doc.rect(cell.x, cell.y, cell.width, cell.height, 'S');
356
+    doc.text(cell.raw, cell.x + 5, cell.y + 12);
338
 
357
 
339
-					console.log('CELL DRAW END');
358
+    console.log('CELL DRAW END');
340
 
359
 
341
-					return false;
342
-				}
360
+    return false;
361
+    }
343
 
362
 
344
-				console.log('CELL DRAW END');
363
+    console.log('CELL DRAW END');
345
 
364
 
346
-				return true;
347
-			}
348
-		});
365
+    return true;
366
+    }
367
+    });
349
 
368
 
350
-		console.log('end table');
369
+    console.log('end table');
351
 
370
 
352
 
371
 
353
-	});
372
+    });
354
 
373
 
355
-	//doc.save();
356
-	return;
374
+    //doc.save();
375
+    return;
357
 
376
 
358
-});
377
+    });
359
 
378
 
360
-// --------------------------------------------------------------------------
361
-// Functions
362
-// --------------------------------------------------------------------------
379
+    // --------------------------------------------------------------------------
380
+    // Functions
381
+    // --------------------------------------------------------------------------
363
 
382
 
364
 
383
 
365
 @stop
384
 @stop

+ 1252
- 1084
app/views/local/managers/shared/view-annual-plans.blade.php
File diff suppressed because it is too large
View File


+ 13
- 16
app/views/local/managers/shared/view_formative.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
84
                 placeholder="Search for Learning Outcomes..">
84
                 placeholder="Search for Learning Outcomes..">
85
             <div class="list-group" id='list'>
85
             <div class="list-group" id='list'>
86
                 @foreach ($outcomes as $outcome)
86
                 @foreach ($outcomes as $outcome)
87
-
88
-
89
                     <li data-outcome-id="{{ $outcome->id }}" class="list-group-item"
87
                     <li data-outcome-id="{{ $outcome->id }}" class="list-group-item"
90
                         onclick="fetchData($(this),$('#semesters'), $('#program') )">{{ $outcome->name }} </li>
88
                         onclick="fetchData($(this),$('#semesters'), $('#program') )">{{ $outcome->name }} </li>
91
-
92
                 @endforeach
89
                 @endforeach
93
             </div>
90
             </div>
94
         </div>
91
         </div>
98
 
95
 
99
             </div>
96
             </div>
100
             <!--<div id="outcome-display" class="panel panel-default">
97
             <!--<div id="outcome-display" class="panel panel-default">
101
-                                                                        <div class="panel-heading">
102
-                                                                          <h4 class=" panel-title" style="cursor:auto!important;">
103
-                                                                          </h4>
104
-                                                                        </div>
105
-                                                                        <div class="panel-body">
106
-                                                                          <p class="outcome-definition "></p>
98
+                                                                            <div class="panel-heading">
99
+                                                                              <h4 class=" panel-title" style="cursor:auto!important;">
100
+                                                                              </h4>
101
+                                                                            </div>
102
+                                                                            <div class="panel-body">
103
+                                                                              <p class="outcome-definition "></p>
107
 
104
 
108
 
105
 
109
 
106
 
110
-                                                                          <div class="table-responsive table-responsive-0">
111
-                                                                            {{-- tables are appended here --}}
112
-                                                                            {{-- <table id="example" class="table table-striped table-condensed" width="100%"></table> --}}
113
-                                                                          </div>
114
-                                                                        </div>
115
-                                                                      </div>-->
107
+                                                                              <div class="table-responsive table-responsive-0">
108
+                                                                                {{-- tables are appended here --}}
109
+                                                                                {{-- <table id="example" class="table table-striped table-condensed" width="100%"></table> --}}
110
+                                                                              </div>
111
+                                                                            </div>
112
+                                                                          </div>-->
116
         </div>
113
         </div>
117
 
114
 
118
         <div class="col-md-9">
115
         <div class="col-md-9">

+ 1
- 1
app/views/local/managers/shared/view_rubric_limited.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
   @if($role==1)
4
   @if($role==1)
5
-    @include('local.managers.admins._navigation')
5
+    @include('local.managers.admins._new_navigation')
6
   @elseif($role==2)
6
   @elseif($role==2)
7
     @include('local.managers.sCoords._new_navigation')
7
     @include('local.managers.sCoords._new_navigation')
8
   @elseif($role==3)
8
   @elseif($role==3)

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

14
                     and Criterias<span class="caret"></span></a>
14
                     and Criterias<span class="caret"></span></a>
15
                 <ul class="dropdown-menu" role="menu">
15
                 <ul class="dropdown-menu" role="menu">
16
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
16
                     <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
17
-                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
17
+                    <li>{{ HTML::linkAction('objective2Controller@viewObjectives', 'Objectives and Criteria') }}
18
+                    </li>
18
                 </ul>
19
                 </ul>
19
             </li>
20
             </li>
20
             @if (count(Auth::user()->courses))
21
             @if (count(Auth::user()->courses))

+ 33
- 24
app/views/local/professors/activity.blade.php View File

7
 
7
 
8
 @section('navigation')
8
 @section('navigation')
9
     @if ($role == 1)
9
     @if ($role == 1)
10
-        @include('local.managers.admins._navigation')
10
+        @include('local.managers.admins._new_navigation')
11
     @elseif($role == 2)
11
     @elseif($role == 2)
12
         @include('local.managers.sCoords._new_navigation')
12
         @include('local.managers.sCoords._new_navigation')
13
     @elseif($role == 3)
13
     @elseif($role == 3)
36
                     </div>
36
                     </div>
37
                     <div class="form-group">
37
                     <div class="form-group">
38
                         {{ Form::label('description', 'Description') }}
38
                         {{ Form::label('description', 'Description') }}
39
-                        {{ Form::textarea('description', $activity->description, ['class' => 'form-control','rows' => 4,'placeholder' => 'Minimum 10 characters']) }}
39
+                        {{ Form::textarea('description', $activity->description, ['class' => 'form-control', 'rows' => 4, 'placeholder' => 'Minimum 10 characters']) }}
40
                     </div>
40
                     </div>
41
 
41
 
42
                     <div class="form-group">
42
                     <div class="form-group">
102
 
102
 
103
                     <div class="form-group">
103
                     <div class="form-group">
104
                         {{ Form::label('transforming_actions', 'Formative Actions') }}
104
                         {{ Form::label('transforming_actions', 'Formative Actions') }}
105
-                        {{ Form::textarea('transforming_actions', $activity->transforming_actions, ['class' => 'form-control','rows' => 4,'placeholder' => 'Actions to improve student performance after assessment (optional)']) }}
105
+                        {{ Form::textarea('transforming_actions', $activity->transforming_actions, ['class' => 'form-control', 'rows' => 4, 'placeholder' => 'Actions to improve student performance after assessment (optional)']) }}
106
                     </div>
106
                     </div>
107
                 </div>
107
                 </div>
108
                 <div class="modal-footer">
108
                 <div class="modal-footer">
131
 
131
 
132
                     <div class="form-group">
132
                     <div class="form-group">
133
                         {{ Form::label('assessment_comments', 'Assessment Comments') }}
133
                         {{ Form::label('assessment_comments', 'Assessment Comments') }}
134
-                        {{ Form::textarea('assessment_comments', $activity->assessment_comments, ['class' => 'form-control','rows' => 4,'placeholder' => '(optional)']) }}
134
+                        {{ Form::textarea('assessment_comments', $activity->assessment_comments, ['class' => 'form-control', 'rows' => 4, 'placeholder' => '(optional)']) }}
135
                     </div>
135
                     </div>
136
                 </div>
136
                 </div>
137
                 <div class="modal-footer">
137
                 <div class="modal-footer">
203
 
203
 
204
                 <!-- If no rubric is assigned and the semester is active -->
204
                 <!-- If no rubric is assigned and the semester is active -->
205
                 @if (count($activity->rubric) == 0 && in_array($course->semester->id, $active_semesters))
205
                 @if (count($activity->rubric) == 0 && in_array($course->semester->id, $active_semesters))
206
-                    {{ HTML::linkAction('RubricsController@newRubric','Assign Rubric',[$activity->id],['class' => 'btn btn-primary btn-sm btn-block']) }}
207
-                    <!--{{ HTML::linkAction('RubricsController@newOtherMethod','Assign Other Assessment Method',[$activity->id],['class' => 'btn btn-primary btn-sm btn-block']) }}-->
206
+                    {{ HTML::linkAction('RubricsController@newRubric', 'Assign Rubric', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}
207
+                    <!--{{ HTML::linkAction('RubricsController@newOtherMethod', 'Assign Other Assessment Method', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}-->
208
                 @else
208
                 @else
209
                     @if (count($activity->rubric) != 0)
209
                     @if (count($activity->rubric) != 0)
210
-                        {{ HTML::linkAction('RubricsController@show','View Rubric',[$activity->id],['class' => 'btn btn-primary btn-sm btn-block']) }}
210
+                        {{ HTML::linkAction('RubricsController@show', 'View Rubric', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}
211
                     @else
211
                     @else
212
                         <h5>No rubric associated to this activity</h5>
212
                         <h5>No rubric associated to this activity</h5>
213
                     @endif
213
                     @endif
214
                     <!-- If semester is active, allow users to change rubrics -->
214
                     <!-- If semester is active, allow users to change rubrics -->
215
                     @if (in_array($course->semester->id, $active_semesters))
215
                     @if (in_array($course->semester->id, $active_semesters))
216
-                        {{ HTML::linkAction('RubricsController@newRubric','Change Rubric',[$activity->id],['class' => 'btn btn-primary btn-sm btn-block']) }}
216
+                        {{ HTML::linkAction('RubricsController@newRubric', 'Change Rubric', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}
217
                     @endif
217
                     @endif
218
 
218
 
219
                     <!-- If there is no assessment and the semester is active -->
219
                     <!-- If there is no assessment and the semester is active -->
220
                     @if (!$activity->is_assessed() && in_array($course->semester->id, $active_semesters))
220
                     @if (!$activity->is_assessed() && in_array($course->semester->id, $active_semesters))
221
-                        {{ HTML::linkAction('ActivitiesController@assess','Assess',[$activity->id],['class' => 'btn btn-primary btn-sm btn-block']) }}
221
+                        {{ HTML::linkAction('ActivitiesController@assess', 'Assess', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}
222
                     @else
222
                     @else
223
                         @if ($activity->is_assessed())
223
                         @if ($activity->is_assessed())
224
-                            {{ HTML::linkAction('ActivitiesController@viewAssessment','View Assessment Sheet',[$activity->id],['class' => 'btn btn-primary btn-sm btn-block']) }}
224
+                            {{ HTML::linkAction('ActivitiesController@viewAssessment', 'View Assessment Sheet', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}
225
                         @else
225
                         @else
226
                             <h5>No assessment associated to this activity</h5>
226
                             <h5>No assessment associated to this activity</h5>
227
                         @endif
227
                         @endif
228
 
228
 
229
                         <!-- If semester is active, allow users to edit assessments -->
229
                         <!-- If semester is active, allow users to edit assessments -->
230
                         @if (in_array($course->semester->id, $active_semesters))
230
                         @if (in_array($course->semester->id, $active_semesters))
231
-                            {{ HTML::linkAction('ActivitiesController@assess','Edit Assessment',[$activity->id],['class' => 'btn btn-primary btn-sm btn-block']) }}
231
+                            {{ HTML::linkAction('ActivitiesController@assess', 'Edit Assessment', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}
232
                             <button class="btn btn-primary btn-sm btn-block" btn-block data-toggle="modal"
232
                             <button class="btn btn-primary btn-sm btn-block" btn-block data-toggle="modal"
233
                                 data-target="#modal-confirm-delete-assessment">Delete Assessment</button>
233
                                 data-target="#modal-confirm-delete-assessment">Delete Assessment</button>
234
                             <button class="btn btn-primary btn-sm btn-block" btn-block data-toggle="modal"
234
                             <button class="btn btn-primary btn-sm btn-block" btn-block data-toggle="modal"
244
                     <button class="btn btn-primary btn-sm btn-block" btn-block data-toggle="modal"
244
                     <button class="btn btn-primary btn-sm btn-block" btn-block data-toggle="modal"
245
                         data-target="#modal-confirm-delete-activity">Delete Activity</button>
245
                         data-target="#modal-confirm-delete-activity">Delete Activity</button>
246
                 @endif
246
                 @endif
247
-                {{ HTML::linkAction('CoursesController@show','Back to Section',[$course->id],['class' => 'btn btn-primary btn-sm btn-block']) }}
247
+                {{ HTML::linkAction('CoursesController@show', 'Back to Section', [$course->id], ['class' => 'btn btn-primary btn-sm btn-block']) }}
248
             </div>
248
             </div>
249
 
249
 
250
             <hr>
250
             <hr>
256
             @if ($formative_actions != null)
256
             @if ($formative_actions != null)
257
                 <hr>
257
                 <hr>
258
                 <h5>Formative Actions</h5>
258
                 <h5>Formative Actions</h5>
259
-                <p><strong>{{ $formative_actions[0]->at_text }}: </strong> {{ $formative_actions[0]->description }}</p>
259
+                <p><strong>{{ $formative_actions[0]->at_text }}: </strong> {{ $formative_actions[0]->description }}
260
+                </p>
260
                 <h5>Formative Action's Associated Criteria</h5>
261
                 <h5>Formative Action's Associated Criteria</h5>
261
                 <ul>
262
                 <ul>
262
                     @foreach ($formative_actions as $criteria)
263
                     @foreach ($formative_actions as $criteria)
429
     },
430
     },
430
 
431
 
431
     tooltip: {
432
     tooltip: {
432
-    headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
433
-        pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
434
-            '<td style="padding:0"><b>{point.y:.2f}%</b></td></tr>'+
435
-            '{point.outcomes}',
436
-        //'<tr><td style="color:{series.color};padding:0">Learning Outcomes:</td>'+
437
-        //    '<td style="padding:0">{point.outcomes}, <br>Outcome2</td></tr>',
433
+    headerFormat: '<span style="font-size:10px">{point.key}</span>
434
+    <table>',
435
+        pointFormat: '<tr>
436
+            <td style="color:{series.color};padding:0">{series.name}: </td>' +
437
+            '<td style="padding:0"><b>{point.y:.2f}%</b></td>
438
+        </tr>'+
439
+        '{point.outcomes}',
440
+        //'<tr>
441
+            <td style="color:{series.color};padding:0">Learning Outcomes:</td>'+
442
+            // '<td style="padding:0">{point.outcomes}, <br>Outcome2</td>
443
+        </tr>',
438
         footerFormat: '</table>',
444
         footerFormat: '</table>',
439
     shared: true,
445
     shared: true,
440
     useHTML: true
446
     useHTML: true
470
         @foreach ($activity->cap_array as $id => $crit)
476
         @foreach ($activity->cap_array as $id => $crit)
471
             //This conditional is to ignore criteria that weren't assessed. These would have a value of null.
477
             //This conditional is to ignore criteria that weren't assessed. These would have a value of null.
472
             @if ($crit->score_percentage)
478
             @if ($crit->score_percentage)
473
-                {y: {{ $crit->score_percentage }}, outcomes: "{{$crit->outcome_names_html}}"},
479
+                {y: {{ $crit->score_percentage }}, outcomes: "{{ $crit->outcome_names_html }}"},
474
             @else
480
             @else
475
-                {y:0, outcomes:"{{$crit->outcome_names_html}}"},
481
+                {y:0, outcomes:"{{ $crit->outcome_names_html }}"},
476
             @endif
482
             @endif
477
         @endforeach
483
         @endforeach
478
     @endif
484
     @endif
515
     }
521
     }
516
     },
522
     },
517
     tooltip: {
523
     tooltip: {
518
-    headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
519
-        pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
520
-            '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
524
+    headerFormat: '<span style="font-size:10px">{point.key}</span>
525
+    <table>',
526
+        pointFormat: '<tr>
527
+            <td style="color:{series.color};padding:0">{series.name}: </td>' +
528
+            '<td style="padding:0"><b>{point.y:.2f}</b></td>
529
+        </tr>',
521
         footerFormat: '</table>',
530
         footerFormat: '</table>',
522
     shared: true,
531
     shared: true,
523
     useHTML: true
532
     useHTML: true

+ 1
- 1
app/views/local/professors/assessment(before change to handsontable).blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

+ 142
- 116
app/views/local/professors/assessment_report.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if($role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif($role==2)
4
+    @if ($role == 1)
5
+        @include('local.managers.admins._new_navigation')
6
+    @elseif($role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif($role==3)
8
+    @elseif($role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @else
10
     @else
11
         @include('local.professors._navigation')
11
         @include('local.professors._navigation')
15
 @section('main')
15
 @section('main')
16
     <div class="row">
16
     <div class="row">
17
         <div class="col-md-12">
17
         <div class="col-md-12">
18
-            <p>This report contains performance information for all your Program's assessed courses during the following semester(s):</p>
18
+            <p>This report contains performance information for all your Program's assessed courses during the following
19
+                semester(s):</p>
19
             <ul>
20
             <ul>
20
                 @foreach (Session::get('semesters_info') as $semester_info)
21
                 @foreach (Session::get('semesters_info') as $semester_info)
21
                     <li>{{ $semester_info }}</li>
22
                     <li>{{ $semester_info }}</li>
33
                 </thead>
34
                 </thead>
34
                 <tfoot>
35
                 <tfoot>
35
                     <tr class="column-search">
36
                     <tr class="column-search">
36
-                        <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
37
-                        <th><select class="column-search-select form-control"><option value=""></option></select></th>
38
-                        <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
37
+                        <th><input class="column-search-bar form-control" type="text" placeholder="Buscar" /></th>
38
+                        <th><select class="column-search-select form-control">
39
+                                <option value=""></option>
40
+                            </select></th>
41
+                        <th><input class="column-search-bar form-control" type="text" placeholder="Buscar" /></th>
39
                     </tr>
42
                     </tr>
40
                 </tfoot>
43
                 </tfoot>
41
                 <tbody>
44
                 <tbody>
42
                     <!-- For each grouped course -->
45
                     <!-- For each grouped course -->
43
-                    @foreach($courses as $index2=>$course)
44
-
46
+                    @foreach ($courses as $index2 => $course)
45
                         <!-- If grouped course has activities that evaluate the outcome -->
47
                         <!-- If grouped course has activities that evaluate the outcome -->
46
 
48
 
47
                         <?php
49
                         <?php
48
-
49
-
50
-                            $sections_evaluating = Course::has('activities')
51
-                            
50
+                        
51
+                        $sections_evaluating = Course::has('activities')
52
+                        
52
                             //->whereNotNull('outcomes_attempted')
53
                             //->whereNotNull('outcomes_attempted')
53
                             //->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
54
                             //->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
54
                             //->with(array('activities'=>function($query) use(&$outcome){
55
                             //->with(array('activities'=>function($query) use(&$outcome){
55
                             //    $query->whereNotNull('outcomes_attempted');
56
                             //    $query->whereNotNull('outcomes_attempted');
56
                             //    $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
57
                             //    $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
57
-                            ->where('code', $course->code)->where('number',$course->number)
58
+                            ->where('code', $course->code)
59
+                            ->where('number', $course->number)
58
                             ->whereIn('semester_id', Session::get('semesters_ids'))
60
                             ->whereIn('semester_id', Session::get('semesters_ids'))
59
                             ->get();
61
                             ->get();
60
-                            
61
-                            $semester_code = DB::table('semesters')->where('id', '=', $course->semester_id)->first();
62
-                            $program = DB::table('programs')->where('id', $course->program_id)->first();
63
-                            
62
+                        
63
+                        $semester_code = DB::table('semesters')
64
+                            ->where('id', '=', $course->semester_id)
65
+                            ->first();
66
+                        $program = DB::table('programs')
67
+                            ->where('id', $course->program_id)
68
+                            ->first();
69
+                        
64
                         ?>
70
                         ?>
65
 
71
 
66
-                        @if(count($sections_evaluating))
72
+                        @if (count($sections_evaluating))
67
                             <tr>
73
                             <tr>
68
                                 <td>
74
                                 <td>
69
-                                    {{ $course->code}}-{{ $course->number }} ({{ $semester_code->code }})
75
+                                    {{ $course->code }}-{{ $course->number }} ({{ $semester_code->code }})
70
                                 </td>
76
                                 </td>
71
                                 <td>{{ $program->name }}</td>
77
                                 <td>{{ $program->name }}</td>
72
                                 <td>
78
                                 <td>
73
-                                <!-- For each section -->
74
-                                @foreach($sections_evaluating as $index3 => $section)
75
-                                    <h5><u>Instance {{ $section->section }}</u></h5>
76
-
77
-                                    <!-- For each activity in the section -->
78
-                                    @foreach($section->activities as $index4 => $activity)
79
-<?php Log::info($section); Log::info($section->activities) ;
80
-Log::info($activity->o_att_array);
81
-Log::info("this is the cap_array for ". $activity->name);
82
-Log::info($activity->cap_array);
83
-Log::info('aqui papi');?>
84
-
85
-                                        <!-- If activity is not draft, has a rubric and the rubric has the outcome being evaluated -->
86
-                                        @if($activity->draft ==0 && $activity->diagnostic ==0&& array_key_exists($outcome->id, (array)$activity->o_att_array))
87
-                                            <h5>Measure {{ $index4 + 1 }}</h5>
88
-                                            <p>A rubric was used in the {{ $section->code }}-{{ $section->number }} ({{ $section->name }}) course ({{ date('M Y', strtotime($course->updated_at))}}) to assess students’ <u>{{ strtolower($outcome->name) }}</u> in the activity: "<strong>{{ $activity->name }}</strong>". At the time of assessment there were {{ $activity->amount_of_assessed_students() }} students in the section.</p>
89
-                                            <p>The expected performance level was that <strong>{{ $activity->rubric[0]->expected_percentage }}%</strong> of students participating in the activity would score <strong>{{ $activity->rubric[0]->expected_points }} points</strong>  or more in the 1-{{$activity->rubric[0]->max_score}} point scale used.</p>
90
-                                            <p>The results for each criterion were as follows:</p>
91
-
92
-                                            <table class="table table-condensed table-bordered datatable">
93
-
94
-                                                @foreach($activity->cap_array as $criterion_id => $criterion)
95
-                                                    
96
-                                                        
97
-                                                    
98
-
99
-                                                    @if(in_array($outcome->id, json_decode($criterion->outcome_id))  /*== $outcome->id*/ && $criterion->score_percentage >= $activity->rubric[0]->expected_percentage )
100
-                                                        <tr>
101
-                                                            <td>{{ $criterion->name }}</td>
102
-                                                            <td class="col-md-1 success">{{ $criterion->score_percentage }}%</td>
103
-                                                        </tr>
104
-                                                    @elseif(in_array($outcome->id, json_decode($criterion->outcome_id)) && $criterion->score_percentage < $activity->rubric[0]->expected_percentage )
105
-                                                        <tr>
106
-                                                            <td>{{ $criterion->name }}</td>
107
-                                                            <td class="col-md-1 danger">{{ $criterion->score_percentage }}%</td>
108
-                                                        </tr>
79
+                                    <!-- For each section -->
80
+                                    @foreach ($sections_evaluating as $index3 => $section)
81
+                                        <h5><u>Instance {{ $section->section }}</u></h5>
82
+
83
+                                        <!-- For each activity in the section -->
84
+                                        @foreach ($section->activities as $index4 => $activity)
85
+                                            <?php Log::info($section);
86
+                                            Log::info($section->activities);
87
+                                            Log::info($activity->o_att_array);
88
+                                            Log::info('this is the cap_array for ' . $activity->name);
89
+                                            Log::info($activity->cap_array);
90
+                                            Log::info('aqui papi'); ?>
91
+
92
+                                            <!-- If activity is not draft, has a rubric and the rubric has the outcome being evaluated -->
93
+                                            @if ($activity->draft == 0 && $activity->diagnostic == 0 && array_key_exists($outcome->id, (array) $activity->o_att_array))
94
+                                                <h5>Measure {{ $index4 + 1 }}</h5>
95
+                                                <p>A rubric was used in the {{ $section->code }}-{{ $section->number }}
96
+                                                    ({{ $section->name }}) course
97
+                                                    ({{ date('M Y', strtotime($course->updated_at)) }}) to assess
98
+                                                    students’ <u>{{ strtolower($outcome->name) }}</u> in the activity:
99
+                                                    "<strong>{{ $activity->name }}</strong>". At the time of assessment
100
+                                                    there were {{ $activity->amount_of_assessed_students() }} students in
101
+                                                    the section.</p>
102
+                                                <p>The expected performance level was that
103
+                                                    <strong>{{ $activity->rubric[0]->expected_percentage }}%</strong> of
104
+                                                    students participating in the activity would score
105
+                                                    <strong>{{ $activity->rubric[0]->expected_points }} points</strong>
106
+                                                    or more in the 1-{{ $activity->rubric[0]->max_score }} point scale
107
+                                                    used.</p>
108
+                                                <p>The results for each criterion were as follows:</p>
109
+
110
+                                                <table class="table table-condensed table-bordered datatable">
111
+
112
+                                                    @foreach ($activity->cap_array as $criterion_id => $criterion)
113
+                                                        @if (in_array($outcome->id, json_decode($criterion->outcome_id)) /*== $outcome->id*/ && $criterion->score_percentage >= $activity->rubric[0]->expected_percentage)
114
+                                                            <tr>
115
+                                                                <td>{{ $criterion->name }}</td>
116
+                                                                <td class="col-md-1 success">
117
+                                                                    {{ $criterion->score_percentage }}%</td>
118
+                                                            </tr>
119
+                                                        @elseif(in_array($outcome->id, json_decode($criterion->outcome_id)) && $criterion->score_percentage < $activity->rubric[0]->expected_percentage)
120
+                                                            <tr>
121
+                                                                <td>{{ $criterion->name }}</td>
122
+                                                                <td class="col-md-1 danger">
123
+                                                                    {{ $criterion->score_percentage }}%</td>
124
+                                                            </tr>
125
+                                                        @endif
126
+                                                    @endforeach
127
+                                                </table>
128
+
129
+                                                <ul>
130
+
131
+                                                </ul>
132
+                                                <p>
133
+
134
+                                                    <?php
135
+                                                    $o_att_array = $activity->o_att_array;
136
+                                                    $o_ach_array = $activity->o_ach_array;
137
+                                                    Log::info($o_att_array);
138
+                                                    Log::info($o_ach_array);
139
+                                                    Log::info('los outcomes');
140
+                                                    $percentage = ($o_ach_array[$outcome->id] / $o_att_array[$outcome->id]) * 100;
141
+                                                    ?>
142
+                                                    @if ($percentage >= 100)
143
+                                                        The expected goal was reached in <strong>all</strong> (100%) of the
144
+                                                        criteria assessed. Therefore, the goal for this outcome
145
+                                                        ({{ $outcome->expected_outcome }}%) was <strong>met</strong>.
146
+                                                    @elseif ($percentage < 1)
147
+                                                        The expected goal was reached in <strong>none</strong> (0%) of the
148
+                                                        criteria assessed. Therefore, the goal for this outcome
149
+                                                        ({{ $outcome->expected_outcome }}%) was <strong>not met</strong>.
150
+                                                    @elseif ($percentage >= $outcome->expected_outcome)
151
+                                                        The expected goal was reached in
152
+                                                        <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the
153
+                                                        <strong>{{ $o_att_array[$outcome->id] }}</strong>
154
+                                                        ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the
155
+                                                        goal for this outcome ({{ $outcome->expected_outcome }}%) was
156
+                                                        <strong>met</strong>.
157
+                                                    @elseif ($percentage < $outcome->expected_outcome)
158
+                                                        The expected goal was reached in
159
+                                                        <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the
160
+                                                        <strong>{{ $o_att_array[$outcome->id] }}</strong>
161
+                                                        ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the
162
+                                                        goal for this outcome ({{ $outcome->expected_outcome }}%) was
163
+                                                        <strong> not met</strong>.
109
                                                     @endif
164
                                                     @endif
110
-                                                @endforeach
111
-                                            </table>
112
-
113
-                                            <ul>
114
-
115
-                                            </ul>
116
-                                            <p>
117
-
118
-                                            <?php
119
-                                                $o_att_array = $activity->o_att_array;
120
-                                                $o_ach_array = $activity->o_ach_array;
121
-                                                Log::info($o_att_array);
122
-                                                Log::info($o_ach_array);
123
-                                                Log::info('los outcomes');
124
-                                                $percentage = ($o_ach_array[$outcome->id]/$o_att_array[$outcome->id])*100;
125
-                                            ?>
126
-                                            @if($percentage >= 100)
127
-                                                The expected goal was reached in <strong>all</strong> (100%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>met</strong>.
128
-                                            @elseif ($percentage < 1)
129
-                                                The expected goal was reached in <strong>none</strong> (0%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>not met</strong>.
130
-                                            @elseif ($percentage >= $outcome->expected_outcome)
131
-                                                The expected goal was reached in <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the <strong>{{ $o_att_array[$outcome->id] }}</strong> ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong>met</strong>.
132
-                                            @elseif ($percentage < $outcome->expected_outcome)
133
-                                                The expected goal was reached in <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of the <strong>{{ $o_att_array[$outcome->id] }}</strong> ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was <strong> not met</strong>.
134
-                                            @endif
135
-                                            </p>
136
-
137
-                                            <h5><strong>Transforming Actions</strong></h5>
138
-                                            @if($activity->transforming_actions)
139
-                                                {{ $activity->transforming_actions }}
165
+                                                </p>
166
+
167
+                                                <h5><strong>Transforming Actions</strong></h5>
168
+                                                @if ($activity->transforming_actions)
169
+                                                    {{ $activity->transforming_actions }}
170
+                                                @else
171
+                                                    None
172
+                                                @endif
173
+                                            @elseif ($activity->draft == 0)
174
+                                                <h5>Measure {{ $index4 + 1 }}</h5>
175
+                                                <em>Outcome not measured.</em>
140
                                             @else
176
                                             @else
141
-                                                None
142
                                             @endif
177
                                             @endif
143
-
144
-                                        @elseif ($activity->draft == 0)
145
-                                            <h5>Measure {{ $index4 + 1 }}</h5>
146
-                                            <em>Outcome not measured.</em>
147
-                                        @else
148
-                                        
149
-                                            @endif
150
-
178
+                                        @endforeach
151
                                     @endforeach
179
                                     @endforeach
152
-                                @endforeach
153
                                 </td>
180
                                 </td>
154
                             </tr>
181
                             </tr>
155
                         @else
182
                         @else
156
                             <tr>
183
                             <tr>
157
                                 <td>
184
                                 <td>
158
-                                    <h4>{{ $course->code}}-{{ $course->number }}</h4>
185
+                                    <h4>{{ $course->code }}-{{ $course->number }}</h4>
159
                                 </td>
186
                                 </td>
160
                                 <td>
187
                                 <td>
161
                                     <p>No assessment.</p>
188
                                     <p>No assessment.</p>
162
                                 </td>
189
                                 </td>
163
-                        </tr>
190
+                            </tr>
164
                         @endif
191
                         @endif
165
-
166
                     @endforeach
192
                     @endforeach
167
                 </tbody>
193
                 </tbody>
168
             </table>
194
             </table>
176
 
202
 
177
 @section('javascript')
203
 @section('javascript')
178
 
204
 
179
-// Hide tables that have no courses
180
-$('.no-courses').each(function() {
205
+    // Hide tables that have no courses
206
+    $('.no-courses').each(function() {
181
 
207
 
182
     //$(this).closest('tr').hide();
208
     //$(this).closest('tr').hide();
183
 
209
 
184
-});
210
+    });
185
 
211
 
186
-// Hide tables with empty bodies
187
-$('tbody').each(function() {
188
-   if($(this).children(':visible').length==0)
189
-   {
190
-       //$(this).closest('table').hide();
191
-   }
192
-});
212
+    // Hide tables with empty bodies
213
+    $('tbody').each(function() {
214
+    if($(this).children(':visible').length==0)
215
+    {
216
+    //$(this).closest('table').hide();
217
+    }
218
+    });
193
 
219
 
194
 
220
 
195
 
221
 
196
 
222
 
197
-// ----------------------------------------------------------------------------
198
-// Events
199
-//
223
+    // ----------------------------------------------------------------------------
224
+    // Events
225
+    //
200
 
226
 
201
-$('.to-top').on('click', function(e) {
227
+    $('.to-top').on('click', function(e) {
202
     e.preventDefault();
228
     e.preventDefault();
203
 
229
 
204
-     $(this).scrollTop(0);
230
+    $(this).scrollTop(0);
205
     $('html').animate({scrollTop:0}, 1);
231
     $('html').animate({scrollTop:0}, 1);
206
     $('body').animate({scrollTop:0}, 1);
232
     $('body').animate({scrollTop:0}, 1);
207
-})
233
+    })
208
 
234
 
209
 @stop
235
 @stop

+ 12
- 13
app/views/local/professors/assessment_reports.blade.php View File

1
 @extends('layouts.master')
1
 @extends('layouts.master')
2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
-    @if($role==1)
5
-        @include('local.managers.admins._navigation')
6
-    @elseif($role==2)
4
+    @if ($role == 1)
5
+        @include('local.managers.admins._new_navigation')
6
+    @elseif($role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
-    @elseif($role==3)
8
+    @elseif($role == 3)
9
         @include('local.managers.pCoords._new_navigation')
9
         @include('local.managers.pCoords._new_navigation')
10
     @else
10
     @else
11
         @include('local.professors._navigation')
11
         @include('local.professors._navigation')
22
                 @endforeach
22
                 @endforeach
23
             </ul>
23
             </ul>
24
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
24
             <p>Due to the large amount of information in these reports, please allow them to load a few seconds.</p>
25
-            
25
+
26
             <ol id="table-of-contents" class="upper-roman">
26
             <ol id="table-of-contents" class="upper-roman">
27
-            @foreach($outcomes as $outcome)
28
-                <li>
29
-                    <a href="{{ URL::action('OutcomesController@professorAssessmentReport', array($outcome->id))}}">
30
-                        {{ $outcome->name }}
31
-                    </a>
32
-                </li>
33
-            @endforeach
27
+                @foreach ($outcomes as $outcome)
28
+                    <li>
29
+                        <a href="{{ URL::action('OutcomesController@professorAssessmentReport', [$outcome->id]) }}">
30
+                            {{ $outcome->name }}
31
+                        </a>
32
+                    </li>
33
+                @endforeach
34
             </ol>
34
             </ol>
35
         </div>
35
         </div>
36
     </div>
36
     </div>
37
 @stop
37
 @stop
38
-

+ 6
- 6
app/views/local/professors/compare_activities.blade.php View File

7
 
7
 
8
 @section('navigation')
8
 @section('navigation')
9
     @if ($role == 1)
9
     @if ($role == 1)
10
-        @include('local.managers.admins._navigation')
10
+        @include('local.managers.admins._new_navigation')
11
     @elseif($role == 2)
11
     @elseif($role == 2)
12
         @include('local.managers.sCoords._new_navigation')
12
         @include('local.managers.sCoords._new_navigation')
13
     @elseif($role == 3)
13
     @elseif($role == 3)
567
         </div>
567
         </div>
568
     </div>
568
     </div>
569
 
569
 
570
-  
570
+
571
 
571
 
572
 @stop
572
 @stop
573
 @section('included-js')
573
 @section('included-js')
649
         pointFormat: '<tr>'+
649
         pointFormat: '<tr>'+
650
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
650
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
651
             '<td style="padding:0"><b>{point.y:.2f}%</b></td>'+
651
             '<td style="padding:0"><b>{point.y:.2f}%</b></td>'+
652
-        '</tr>',
652
+            '</tr>',
653
         footerFormat: '</table>',
653
         footerFormat: '</table>',
654
     shared: true,
654
     shared: true,
655
     useHTML: true
655
     useHTML: true
759
         pointFormat: '<tr>'+
759
         pointFormat: '<tr>'+
760
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
760
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
761
             '<td style="padding:0"><b>{point.y:.2f}%</b></td>'+
761
             '<td style="padding:0"><b>{point.y:.2f}%</b></td>'+
762
-        '</tr>',
762
+            '</tr>',
763
         footerFormat: '</table>',
763
         footerFormat: '</table>',
764
     shared: true,
764
     shared: true,
765
     useHTML: true
765
     useHTML: true
845
         pointFormat: '<tr>'+
845
         pointFormat: '<tr>'+
846
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
846
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
847
             '<td style="padding:0"><b>{point.y:.2f}</b></td>'+
847
             '<td style="padding:0"><b>{point.y:.2f}</b></td>'+
848
-        '</tr>',
848
+            '</tr>',
849
         footerFormat: '</table>',
849
         footerFormat: '</table>',
850
     shared: true,
850
     shared: true,
851
     useHTML: true
851
     useHTML: true
950
         pointFormat: '<tr>'+
950
         pointFormat: '<tr>'+
951
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
951
             '<td style="color:{series.color};padding:0"> {series.name}: </td>' +
952
             '<td style="padding:0"><b>{point.y:.2f}</b></td>'+
952
             '<td style="padding:0"><b>{point.y:.2f}</b></td>'+
953
-        '</tr>',
953
+            '</tr>',
954
         footerFormat: '</table>',
954
         footerFormat: '</table>',
955
     shared: true,
955
     shared: true,
956
     useHTML: true
956
     useHTML: true

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

+ 36
- 34
app/views/local/professors/new_assessment_report.blade.php View File

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if (Auth::user()->role == 1)
4
     @if (Auth::user()->role == 1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif(Auth::user()->role == 2)
6
     @elseif(Auth::user()->role == 2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif(Auth::user()->role == 3)
8
     @elseif(Auth::user()->role == 3)
44
                     <?php
44
                     <?php
45
                     
45
                     
46
                     /*$sections_evaluating = Course::has('activities')
46
                     /*$sections_evaluating = Course::has('activities')
47
-                                                                                                                                                                                                                                                                                                                                                                                                                       ->whereNotNull('outcomes_attempted')
48
-                                                                                                                                                                                                                                                                                                                                                                                                                       ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
49
-                                                                                                                                                                                                                                                                                                                                                                                                                       ->with(array('activities'=>function($query) use(&$outcome){
50
-                                                                                                                                                                                                                                                                                                                                                                                                                           $query->whereNotNull('outcomes_attempted');
51
-                                                                                                                                                                                                                                                                                                                                                                                                                           $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
52
-                                                                                                                                                                                                                                                                                                                                                                                                                       ->where('code', $course->code)->where('number',$course->number)
53
-                                                                                                                                                                                                                                                                                                                                                                                                                       ->whereIn('semester_id', Session::get('semesters_ids'))
54
-                                                                                                                                                                                                                                                                                                                                                                                                                       ->get();*/
47
+                                                                                                                                                                                                                                                                                                                                                                                                                                           ->whereNotNull('outcomes_attempted')
48
+                                                                                                                                                                                                                                                                                                                                                                                                                                           ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
49
+                                                                                                                                                                                                                                                                                                                                                                                                                                           ->with(array('activities'=>function($query) use(&$outcome){
50
+                                                                                                                                                                                                                                                                                                                                                                                                                                               $query->whereNotNull('outcomes_attempted');
51
+                                                                                                                                                                                                                                                                                                                                                                                                                                               $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
52
+                                                                                                                                                                                                                                                                                                                                                                                                                                           ->where('code', $course->code)->where('number',$course->number)
53
+                                                                                                                                                                                                                                                                                                                                                                                                                                           ->whereIn('semester_id', Session::get('semesters_ids'))
54
+                                                                                                                                                                                                                                                                                                                                                                                                                                           ->get();*/
55
                     
55
                     
56
                     $sections_evaluating = Course::has('activities')
56
                     $sections_evaluating = Course::has('activities')
57
                     
57
                     
132
                                 <br>
132
                                 <br>
133
                                 <h4>Performance of Students by Learning Outcome Criteria</h4>
133
                                 <h4>Performance of Students by Learning Outcome Criteria</h4>
134
                                 <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
134
                                 <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
135
-                                <p style="display: inline; margin:-30px;"> <i>{{ $activity->rubric[0]->expected_points }} or more</i>
135
+                                <p style="display: inline; margin:-30px;"> <i>{{ $activity->rubric[0]->expected_points }}
136
+                                        or more</i>
136
                                 </p>
137
                                 </p>
137
                                 <br>
138
                                 <br>
138
                                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the target
139
                                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the target
139
                                     by criterion: </h5>
140
                                     by criterion: </h5>
140
-                                <p style="display: inline; margin:-30px;"> <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
141
+                                <p style="display: inline; margin:-30px;">
142
+                                    <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
141
                                 </p>
143
                                 </p>
142
 
144
 
143
                                 <br>
145
                                 <br>
213
 
215
 
214
                                 </table>
216
                                 </table>
215
                                 <br>
217
                                 <br>
216
-<!--                                 <h5 style="display: inline; margin:30px;">Formative Actions: </h5> -->
218
+                                <!--                                 <h5 style="display: inline; margin:30px;">Formative Actions: </h5> -->
217
                                 <h5>Formative Actions: </h5>
219
                                 <h5>Formative Actions: </h5>
218
                                 <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
220
                                 <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
219
                                 @if ($formative_actions)
221
                                 @if ($formative_actions)
220
                                     <p style="display: inline; margin:30px;">
222
                                     <p style="display: inline; margin:30px;">
221
-                                     <u>{{ $formative_actions[0]->at_text }}:
223
+                                        <u>{{ $formative_actions[0]->at_text }}:
222
                                         </u>
224
                                         </u>
223
 
225
 
224
                                         <i>{{ $formative_actions[0]->description }}
226
                                         <i>{{ $formative_actions[0]->description }}
225
                                         </i>
227
                                         </i>
226
                                     </p>
228
                                     </p>
227
 
229
 
228
-<!--                                     <h5 style="display: inline; margin:30px;"> -->
230
+                                    <!--                                     <h5 style="display: inline; margin:30px;"> -->
229
                                     <h5>
231
                                     <h5>
230
-                                    Formative Action's Associated
232
+                                        Formative Action's Associated
231
                                         Criteria: </h5>
233
                                         Criteria: </h5>
232
-<!--                                     <ul style="margin:30px;"> -->
234
+                                    <!--                                     <ul style="margin:30px;"> -->
233
                                     <ul>
235
                                     <ul>
234
                                         @foreach ($formative_actions as $criteria)
236
                                         @foreach ($formative_actions as $criteria)
235
                                             <li> <i>{{ $criteria->name }} </i></li>
237
                                             <li> <i>{{ $criteria->name }} </i></li>
238
                                 @endif
240
                                 @endif
239
 
241
 
240
 
242
 
241
-<!--                                 <h5 style="display: inline; margin:30px;"> -->
243
+                                <!--                                 <h5 style="display: inline; margin:30px;"> -->
242
                                 <h5>
244
                                 <h5>
243
-                                Assessment Comments: </h5>
245
+                                    Assessment Comments: </h5>
244
                                 @if ($activity->assessment_comments != null)
246
                                 @if ($activity->assessment_comments != null)
245
                                     <p style="display: inline; margin:30px;">
247
                                     <p style="display: inline; margin:30px;">
246
-                                    {{ $activity->assessment_comments }}
248
+                                        {{ $activity->assessment_comments }}
247
                                     </p>
249
                                     </p>
248
                                 @endif
250
                                 @endif
249
-<!--                                 <br> -->
251
+                                <!--                                 <br> -->
250
                                 <hr>
252
                                 <hr>
251
-<!--                                 <br> -->
253
+                                <!--                                 <br> -->
252
 
254
 
253
                                 <h4>Performance of Students by Learning Outcome</h4>
255
                                 <h4>Performance of Students by Learning Outcome</h4>
254
                                 <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5><br>
256
                                 <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5><br>
255
-<!--                                 <p style="display: inline;"> -->
257
+                                <!--                                 <p style="display: inline;"> -->
256
                                 {{ $activity->name }}
258
                                 {{ $activity->name }}
257
-                                    <strong>({{ $activity->date }})</strong>
258
-<!--                                 </p> -->
259
+                                <strong>({{ $activity->date }})</strong>
260
+                                <!--                                 </p> -->
259
                                 <br>
261
                                 <br>
260
                                 <br>
262
                                 <br>
261
                                 <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
263
                                 <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
265
                                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
267
                                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
266
                                     target
268
                                     target
267
                                     by learning outcome: </h5>
269
                                     by learning outcome: </h5>
268
- 								<p style="display: inline; margin:-30px;"> 
269
-                                 <i>
270
+                                <p style="display: inline; margin:-30px;">
271
+                                    <i>
270
                                         <?php
272
                                         <?php
271
                                         $expected = DB::table('target_outcomes_program')
273
                                         $expected = DB::table('target_outcomes_program')
272
                                             ->where('program_id', $course->program_id)
274
                                             ->where('program_id', $course->program_id)
452
 
454
 
453
                                 </table>
455
                                 </table>
454
                                 <br>
456
                                 <br>
455
-<!--                                 <h5 style="display: inline; margin:30px;">Formative Actions: </h5> -->
457
+                                <!--                                 <h5 style="display: inline; margin:30px;">Formative Actions: </h5> -->
456
                                 <h5>Formative Actions: </h5>
458
                                 <h5>Formative Actions: </h5>
457
                                 <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
459
                                 <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
458
                                 @if ($formative_actions)
460
                                 @if ($formative_actions)
465
                                     <br>
467
                                     <br>
466
                                     <h5 style="display: inline; margin:30px;">Formative Action's Associated
468
                                     <h5 style="display: inline; margin:30px;">Formative Action's Associated
467
                                         Criteria: </h5>
469
                                         Criteria: </h5>
468
-<!--                                     <ul style="margin:30px;"> -->
470
+                                    <!--                                     <ul style="margin:30px;"> -->
469
                                     <ul>
471
                                     <ul>
470
                                         @foreach ($formative_actions as $criteria)
472
                                         @foreach ($formative_actions as $criteria)
471
                                             <li> <i>{{ $criteria->name }} </i></li>
473
                                             <li> <i>{{ $criteria->name }} </i></li>
474
                                 @endif
476
                                 @endif
475
 
477
 
476
 
478
 
477
-<!--                                 <h5 style="display: inline; margin:30px;">Assessment Comments: </h5> -->
479
+                                <!--                                 <h5 style="display: inline; margin:30px;">Assessment Comments: </h5> -->
478
                                 <h5>Assessment Comments: </h5>
480
                                 <h5>Assessment Comments: </h5>
479
                                 @if ($activity->assessment_comments != null)
481
                                 @if ($activity->assessment_comments != null)
480
                                     <p style="display: inline;">{{ $activity->assessment_comments }}</p>
482
                                     <p style="display: inline;">{{ $activity->assessment_comments }}</p>
481
                                 @endif
483
                                 @endif
482
-<!--                                 <br> -->
484
+                                <!--                                 <br> -->
483
                                 <hr>
485
                                 <hr>
484
-<!--                                 <br> -->
486
+                                <!--                                 <br> -->
485
 
487
 
486
                                 <h4>Performance of Students by Learning Outcome</h4>
488
                                 <h4>Performance of Students by Learning Outcome</h4>
487
                                 <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5><br>
489
                                 <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5><br>
489
                                     <strong>({{ $activity->date }})</strong>
491
                                     <strong>({{ $activity->date }})</strong>
490
                                 </p>
492
                                 </p>
491
                                 <br><br>
493
                                 <br><br>
492
-<!--                                 <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5> -->
494
+                                <!--                                 <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5> -->
493
                                 <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
495
                                 <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
494
-<!--                                 <p style="display: inline;">  -->
496
+                                <!--                                 <p style="display: inline;">  -->
495
                                 <i>>= 66.67% of the attempts</i>
497
                                 <i>>= 66.67% of the attempts</i>
496
-<!--                                 </p> -->
498
+                                <!--                                 </p> -->
497
                                 <br>
499
                                 <br>
498
                                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
500
                                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
499
                                     target
501
                                     target

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
   @if($role==1)
4
   @if($role==1)
5
-    @include('local.managers.admins._navigation')
5
+    @include('local.managers.admins._new_navigation')
6
   @elseif($role==2)
6
   @elseif($role==2)
7
     @include('local.managers.sCoords._new_navigation')
7
     @include('local.managers.sCoords._new_navigation')
8
   @elseif($role==3)
8
   @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

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

2
 
2
 
3
 @section('navigation')
3
 @section('navigation')
4
     @if($role==1)
4
     @if($role==1)
5
-        @include('local.managers.admins._navigation')
5
+        @include('local.managers.admins._new_navigation')
6
     @elseif($role==2)
6
     @elseif($role==2)
7
         @include('local.managers.sCoords._new_navigation')
7
         @include('local.managers.sCoords._new_navigation')
8
     @elseif($role==3)
8
     @elseif($role==3)

+ 0
- 0
app/views/local/professors/viewrubric.blade.php View File


Some files were not shown because too many files changed in this diff