Browse Source

Push al git con pal de bugs hechos

parent
commit
87f58b27be

BIN
app/config.zip View File


+ 13
- 2
app/controllers/ActivitiesController.php View File

140
         Log::info($active_semesters);
140
         Log::info($active_semesters);
141
         // Added the function htmlspecialchars to activity name string because it was corrupting Jquery code while using quotes on page rendering. - Carlos R Caraballo 1/18/2019
141
         // Added the function htmlspecialchars to activity name string because it was corrupting Jquery code while using quotes on page rendering. - Carlos R Caraballo 1/18/2019
142
         $title = $course->code . $course->number . '-' . $course->section . ': ' . htmlspecialchars($activity->name, ENT_QUOTES) . ' <span class="small attention">(' . $course->semester->code . ')</span>';
142
         $title = $course->code . $course->number . '-' . $course->section . ': ' . htmlspecialchars($activity->name, ENT_QUOTES) . ' <span class="small attention">(' . $course->semester->code . ')</span>';
143
-        $outcomes = Outcome::orderBy('name', 'asc')->get();
143
+        $semesters = DB::table('semesters')->where('id', $course->semester_id)->orderBy('start', 'ASC')->first();
144
+        $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
145
+            ->whereNull('deleted_at')
146
+            ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
147
+            ->orderBy('name', 'ASC')->get();
144
         $assessment = DB::table('assessments')
148
         $assessment = DB::table('assessments')
145
             ->join('activity_criterion', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
149
             ->join('activity_criterion', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
146
             ->join('activities', 'activities.id', '=', 'activity_criterion.activity_id')
150
             ->join('activities', 'activities.id', '=', 'activity_criterion.activity_id')
157
         Log::info($outcomes_achieved);
161
         Log::info($outcomes_achieved);
158
         Log::info($outcomes_achieved);
162
         Log::info($outcomes_achieved);
159
 
163
 
164
+
165
+
160
         $activity_criterion = DB::table('criteria')
166
         $activity_criterion = DB::table('criteria')
161
             ->join('activity_criterion', 'criteria.id', '=', 'activity_criterion.criterion_id')
167
             ->join('activity_criterion', 'criteria.id', '=', 'activity_criterion.criterion_id')
162
             ->where('activity_id', $activity->id)
168
             ->where('activity_id', $activity->id)
932
             $active_semesters[] = $active_semester->id;
938
             $active_semesters[] = $active_semester->id;
933
         }
939
         }
934
 
940
 
941
+        $semesters = DB::table('semesters')->where('id', $course->semester_id)->orderBy('start', 'ASC')->first();
942
+
935
         Log::info($active_semesters);
943
         Log::info($active_semesters);
936
         // Added the function htmlspecialchars to activity name string because it was corrupting Jquery code while using quotes on page rendering. - Carlos R Caraballo 1/18/2019
944
         // Added the function htmlspecialchars to activity name string because it was corrupting Jquery code while using quotes on page rendering. - Carlos R Caraballo 1/18/2019
937
         $title = $course->code . $course->number . '-' . $course->section . ': ' . htmlspecialchars($activity_1->name, ENT_QUOTES) . ' <span class="small attention">(' . $course->semester->code . ')</span>';
945
         $title = $course->code . $course->number . '-' . $course->section . ': ' . htmlspecialchars($activity_1->name, ENT_QUOTES) . ' <span class="small attention">(' . $course->semester->code . ')</span>';
938
-        $outcomes = Outcome::orderBy('name', 'asc')->get();
946
+        $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
947
+            ->whereNull('deleted_at')
948
+            ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
949
+            ->orderBy('name', 'ASC')->get();
939
         $assessment_1 = DB::table('assessments')
950
         $assessment_1 = DB::table('assessments')
940
             ->join('activity_criterion', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
951
             ->join('activity_criterion', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
941
             ->join('activities', 'activities.id', '=', 'activity_criterion.activity_id')
952
             ->join('activities', 'activities.id', '=', 'activity_criterion.activity_id')

+ 23
- 2
app/controllers/CriteriaController.php View File

213
             ->select('outcomes.*')
213
             ->select('outcomes.*')
214
             ->distinct()
214
             ->distinct()
215
             ->get();
215
             ->get();
216
+        $userRole = Auth::user()['role'];
216
 
217
 
217
         foreach ($criterion->outcomes as $outcome) {
218
         foreach ($criterion->outcomes as $outcome) {
219
+            switch ($userRole) {
220
+                case 1:
221
+                    $program_ids = DB::table('programs')->lists('id');
222
+                    break;
223
+                case 2:
224
+                    $program_ids = DB::table('programs')
225
+                        ->where('school_id', Auth::user()->school_id)
226
+                        ->lists('id');
227
+                    break;
228
+                case 3:
229
+                    $program_ids = DB::table('program_user')
230
+                        ->where('user_id', Auth::user()->id)
231
+                        ->lists('program_id');
232
+                    break;
233
+            }
218
             $outcome->assoc_objectives = DB::table('objective_outcome')
234
             $outcome->assoc_objectives = DB::table('objective_outcome')
219
                 ->join('objectives', 'objectives.id', '=', 'objective_outcome.objective_id')
235
                 ->join('objectives', 'objectives.id', '=', 'objective_outcome.objective_id')
236
+                ->join('objective_program', 'objective_program.objective_id', '=', 'objectives.id')
237
+                ->whereIn('program_id', $program_ids)
220
                 ->where('outcome_id', $outcome->id)
238
                 ->where('outcome_id', $outcome->id)
239
+                ->select('objectives.*', 'objectives.id as objective_id')
240
+                ->distinct()
221
                 ->get();
241
                 ->get();
222
             $outcome->objectives_criteria = DB::table('criterion_objective_outcome')
242
             $outcome->objectives_criteria = DB::table('criterion_objective_outcome')
223
                 ->join('objectives', 'objectives.id', '=', 'criterion_objective_outcome.objective_id')
243
                 ->join('objectives', 'objectives.id', '=', 'criterion_objective_outcome.objective_id')
226
                 ->get();
246
                 ->get();
227
             foreach ($outcome->assoc_objectives as $objective) {
247
             foreach ($outcome->assoc_objectives as $objective) {
228
                 $objective->program_ids = json_encode(DB::table('objective_program')
248
                 $objective->program_ids = json_encode(DB::table('objective_program')
229
-                    ->where('objective_id', $objective->objective_id)
249
+                    ->where('objective_id', $objective->id)
230
                     ->lists('program_id'));
250
                     ->lists('program_id'));
231
             }
251
             }
232
         }
252
         }
437
                     return Redirect::to('criteria')->withInput();
457
                     return Redirect::to('criteria')->withInput();
438
 
458
 
439
                 case 2:
459
                 case 2:
460
+                    Log::info(Input::all());
440
                     return Redirect::to('school-criteria')->withInput();
461
                     return Redirect::to('school-criteria')->withInput();
441
 
462
 
442
                 case 3:
463
                 case 3:
1058
                 break;
1079
                 break;
1059
         }
1080
         }
1060
     }
1081
     }
1061
-}
1082
+}

+ 10
- 4
app/controllers/Objective2Controller.php View File

312
 
312
 
313
 		$title = "Objective";
313
 		$title = "Objective";
314
 		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
314
 		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
315
-
316
-		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->get();
315
+		$objectives_from_program = DB::table('objective_program')
316
+			->where('program_id', $userProgram[0]->program_id)
317
+			->lists('objective_id');
318
+		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->whereIn('id', $objectives_from_program)->get();
317
 
319
 
318
 		$programs = Program::where("id", '=', $userProgram[0]->program_id)->get();
320
 		$programs = Program::where("id", '=', $userProgram[0]->program_id)->get();
319
 
321
 
330
 		$title = "Objective";
332
 		$title = "Objective";
331
 		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
333
 		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
332
 
334
 
333
-		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->get();
335
+		$objectives_from_school = DB::table('programs')
336
+			->join('objective_program', 'objective_program.program_id', '=', 'programs.id')
337
+			->where('programs.school_id', $userSchool)
338
+			->lists('objective_id');
339
+		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->whereIn('id', $objectives_from_school)->get();
334
 		$programs = Program::where("school_id", "=", $userSchool)->orderBy('name', 'ASC')->get();
340
 		$programs = Program::where("school_id", "=", $userSchool)->orderBy('name', 'ASC')->get();
335
 
341
 
336
 
342
 
471
 	{
477
 	{
472
 		//
478
 		//
473
 	}
479
 	}
474
-}
480
+}

+ 24
- 6
app/controllers/TransformativeActionsController.php View File

1317
       ->where('semester_id', $semesters)
1317
       ->where('semester_id', $semesters)
1318
       ->join('activities', 'activities.course_id', '=', 'courses.id')
1318
       ->join('activities', 'activities.course_id', '=', 'courses.id')
1319
       ->join('activity_criterion', 'activities.id', '=', 'activity_criterion.activity_id')
1319
       ->join('activity_criterion', 'activities.id', '=', 'activity_criterion.activity_id')
1320
+
1320
       ->join('transformative_activity_criterion as tac', 'tac.activity_criterion_id', '=', 'activity_criterion.id')
1321
       ->join('transformative_activity_criterion as tac', 'tac.activity_criterion_id', '=', 'activity_criterion.id')
1321
       ->select('courses.*')
1322
       ->select('courses.*')
1322
       ->groupBy(array('courses.code', 'courses.name', 'courses.semester_id'))
1323
       ->groupBy(array('courses.code', 'courses.name', 'courses.semester_id'))
1327
 
1328
 
1328
 
1329
 
1329
 
1330
 
1331
+
1330
     foreach ($grouped_courses as $course_name) {
1332
     foreach ($grouped_courses as $course_name) {
1331
       $course_name->sections = DB::table('courses')
1333
       $course_name->sections = DB::table('courses')
1332
         ->where('code', $course_name->code)
1334
         ->where('code', $course_name->code)
1338
 
1340
 
1339
         $section->activities = DB::table('activities')
1341
         $section->activities = DB::table('activities')
1340
           ->join('activity_criterion', 'activities.id', '=', 'activity_criterion.activity_id')
1342
           ->join('activity_criterion', 'activities.id', '=', 'activity_criterion.activity_id')
1343
+
1341
           ->join('transformative_activity_criterion', 'transformative_activity_criterion.activity_criterion_id', '=', 'activity_criterion.id')
1344
           ->join('transformative_activity_criterion', 'transformative_activity_criterion.activity_criterion_id', '=', 'activity_criterion.id')
1342
           ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'activity_criterion.criterion_id')
1345
           ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'activity_criterion.criterion_id')
1343
           ->join('transformative_actions', 'transformative_activity_criterion.trans_action_id', '=', 'transformative_actions.id')
1346
           ->join('transformative_actions', 'transformative_activity_criterion.trans_action_id', '=', 'transformative_actions.id')
1349
           ->addSelect('transformative_actions.*', 'transformative_activity_criterion.trans_action_id as trans_action_id')
1352
           ->addSelect('transformative_actions.*', 'transformative_activity_criterion.trans_action_id as trans_action_id')
1350
           ->groupBy('transformative_actions.id')
1353
           ->groupBy('transformative_actions.id')
1351
           ->get();
1354
           ->get();
1355
+
1356
+        //If section has activity that assessess outcome
1357
+        if (count($section->activities)) {
1358
+          $course_name->outcome_assessed = true;
1359
+        }
1360
+
1352
         foreach ($section->activities as $activity) {
1361
         foreach ($section->activities as $activity) {
1353
           /*$activity->criterion = DB::table('transformative_activity_criterion')
1362
           /*$activity->criterion = DB::table('transformative_activity_criterion')
1354
           ->join('activity_criterion','activity_criterion.id','=','transformative_activity_criterion.activity_criterion_id')
1363
           ->join('activity_criterion','activity_criterion.id','=','transformative_activity_criterion.activity_criterion_id')
1357
           ->where('activity_id', $activity->id)
1366
           ->where('activity_id', $activity->id)
1358
           ->select('criteria')*/
1367
           ->select('criteria')*/
1359
           //Log::info($activity->trans_action_id);
1368
           //Log::info($activity->trans_action_id);
1360
-          $activity->objectives = DB::table('transformative_objective')
1369
+          $activity->criterion_with_objective = DB::table('transformative_activity_criterion')
1370
+            ->join('activity_criterion', 'activity_criterion.id', '=', 'transformative_activity_criterion.activity_criterion_id')
1371
+            ->join('criteria', 'activity_criterion.criterion_id', '=', 'criteria.id')
1372
+            ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'criteria.id')
1373
+            ->join('objectives', 'objectives.id', '=', 'criterion_objective_outcome.objective_id')
1374
+            ->where('activity_id', $activity->activity_id)
1375
+            ->where('trans_action_id', $activity->trans_action_id)
1376
+            ->get();
1377
+          /*$activity->objectives = DB::table('transformative_objective')
1361
             ->join('objectives', 'transformative_objective.objective_id', '=', 'objectives.id')
1378
             ->join('objectives', 'transformative_objective.objective_id', '=', 'objectives.id')
1362
             ->where('ta_id', $activity->trans_action_id)
1379
             ->where('ta_id', $activity->trans_action_id)
1363
-            ->get();
1364
-          foreach ($activity->objectives as $objective) {
1380
+            ->get();*/
1381
+
1382
+          /*foreach ($activity->objectives as $objective) {
1365
             // Log::info($activity->activity_id);
1383
             // Log::info($activity->activity_id);
1366
             // Log::info($objective->objective_id);
1384
             // Log::info($objective->objective_id);
1367
             /* Log::info(DB::table('criterion_objective_outcome')
1385
             /* Log::info(DB::table('criterion_objective_outcome')
1371
               ->where('objective_id', $objective->objective_id)
1389
               ->where('objective_id', $objective->objective_id)
1372
               ->select('criteria.*')
1390
               ->select('criteria.*')
1373
               ->distinct()
1391
               ->distinct()
1374
-              ->toSql());*/
1392
+              ->toSql());
1375
             $objective->criterion = DB::table('criterion_objective_outcome')
1393
             $objective->criterion = DB::table('criterion_objective_outcome')
1376
               ->join('activity_criterion', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id')
1394
               ->join('activity_criterion', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id')
1377
               ->join('criteria', 'criteria.id', '=', 'activity_criterion.criterion_id')
1395
               ->join('criteria', 'criteria.id', '=', 'activity_criterion.criterion_id')
1380
               ->select('criteria.*')
1398
               ->select('criteria.*')
1381
               ->distinct()
1399
               ->distinct()
1382
               ->get();
1400
               ->get();
1383
-          }
1401
+          }*/
1384
         }
1402
         }
1385
       }
1403
       }
1386
     }
1404
     }
1387
     return $grouped_courses;
1405
     return $grouped_courses;
1388
   }
1406
   }
1389
-}
1407
+}

+ 517
- 494
app/views/local/managers/admins/objectives.blade.php
File diff suppressed because it is too large
View File


+ 93
- 75
app/views/local/managers/pCoords/_navigation.blade.php View File

1
 <div class="navbar navbar-inverse navbar-static-top">
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', array(), array('class'=>'navbar-brand')) }}
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>-->
5
     </div>-->
6
-    <ul class="nav navbar-nav navbar-right">
7
-      <li>{{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Overview') }}</li>
8
-      <li class="dropdown">
9
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Management<span class="caret"></span></a>
10
-        <ul class="dropdown-menu" role="menu">
11
-          <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
12
-          <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
13
-      
14
-          <li>{{ HTML::linkAction('Objective2Controller@editProgram', 'Objectives')}}</li>
15
-      
16
-        <li>{{ HTML::linkAction('CriteriaController@editProgram', 'Criteria') }}</li>
17
-      <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}</li>
6
+        <ul class="nav navbar-nav navbar-right">
7
+            <li>{{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Overview') }}</li>
8
+            <li class="dropdown">
9
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
10
+                    aria-expanded="false">Management<span class="caret"></span></a>
11
+                <ul class="dropdown-menu" role="menu">
12
+                    <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
13
+                    <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
18
 
14
 
19
-    
20
-          <li><a href="{{ URL::action('AnnualPlansController@showPlan', Auth::user()->programs[0]->id)}}">Annual Plan</a><li>
21
-        <li><a href="{{ URL::action('ThreeYearPlanController@threeYearsReport', Auth::user()->programs[0]->id) }}">Three Years Plan</a></li>
22
-      </ul>
23
-      </li>
24
-     
25
-      
26
-      <li class="dropdown">
27
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning and Criterias<span class="caret"></span></a>
28
-        <ul class="dropdown-menu" role="menu">
29
-          <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
30
-          <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
31
-                 </ul>
32
-      </li>
33
-      @if(count(Auth::user()->courses))
34
-      <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', NULL) }}</li>
35
-      <li class="dropdown">
36
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Sections<span class="caret"></span></a>
37
-        <ul class="dropdown-menu" role="menu">
38
-          @foreach ($courses as $course)
39
-          <li> {{ HTML::linkAction('CoursesController@show', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</li>
40
-          @endforeach
41
-        </ul>
42
-      </li>
43
-      @endif
15
+                    <li>{{ HTML::linkAction('Objective2Controller@editProgram', 'Objectives') }}</li>
16
+
17
+                    <li>{{ HTML::linkAction('CriteriaController@editProgram', 'Criteria') }}</li>
18
+                    <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}
19
+                    </li>
44
 
20
 
45
-      <li class="dropdown">
46
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Reports<span class="caret"></span></a>
47
-        <ul class="dropdown-menu" role="menu">
48
-          <li><a href="{{ URL::action('OutcomesController@programAssessmentReport', Auth::user()->programs[0]->id) }}">Program Reports</a></li>
49
-   
21
+
22
+                    <li><a href="{{ URL::action('AnnualPlansController@showPlan', Auth::user()->programs[0]->id) }}">Annual
23
+                            Plan</a>
24
+                    <li>
25
+                    <li><a
26
+                            href="{{ URL::action('ThreeYearPlanController@threeYearsReport', Auth::user()->programs[0]->id) }}">Three
27
+                            Years Plan</a></li>
28
+                </ul>
50
             </li>
29
             </li>
51
-          
52
-          @if(count(Auth::user()->courses))
53
-          <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}</li>
54
-          @endif
55
 
30
 
56
-   
31
+
32
+            <li class="dropdown">
33
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning
34
+                    and Criterias<span class="caret"></span></a>
35
+                <ul class="dropdown-menu" role="menu">
36
+                    <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
37
+                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
38
+                </ul>
57
             </li>
39
             </li>
58
-            <li><a href="{{ URL::action('OutcomesController@annualReport', Auth::user()->programs[0]->id) }}">Annual Reports</a></li>
59
-  
60
-          <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Tranformative and Formative Actions')}}
61
-    
62
-        </ul>
63
-      </li>
40
+            @if (count(Auth::user()->courses))
41
+                <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', null) }}</li>
42
+                <li class="dropdown">
43
+                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
44
+                        aria-expanded="false">Sections<span class="caret"></span></a>
45
+                    <ul class="dropdown-menu" role="menu">
46
+                        @foreach ($courses as $course)
47
+                            <li> {{ HTML::linkAction('CoursesController@show', $course->code . $course->number . '-' . $course->section . ' (' . $course->semester->code . ')', ['id' => $course->id]) }}
48
+                            </li>
49
+                        @endforeach
50
+                    </ul>
51
+                </li>
52
+            @endif
53
+
54
+            <li class="dropdown">
55
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
56
+                    aria-expanded="false">Reports<span class="caret"></span></a>
57
+                <ul class="dropdown-menu" role="menu">
58
+                    <li><a
59
+                            href="{{ URL::action('OutcomesController@programAssessmentReport', Auth::user()->programs[0]->id) }}">Program
60
+                            Reports</a></li>
61
+
62
+            </li>
63
+
64
+            @if (count(Auth::user()->courses))
65
+                <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}
66
+                </li>
67
+            @endif
68
+
69
+
70
+            </li>
71
+            <li><a href="{{ URL::action('OutcomesController@annualReport', Auth::user()->programs[0]->id) }}">Annual
72
+                    Reports</a></li>
73
+
74
+            <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Formative Actions') }}
64
 
75
 
65
-      <li class="dropdown">
66
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span class="caret"></span></a>
67
-        <ul class="dropdown-menu" role="menu">
68
-          <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
69
-          <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
70
-          <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
71
-          <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
72
-          <li><a href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a></li>
73
-        </ul>
74
-      </li>
75
-      <li class="dropdown">
76
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account<span class="caret"></span></a>
77
-        <ul class="dropdown-menu" role="menu">
78
-          <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
79
-          <li>{{ HTML::linkAction('AuthController@logout', 'Log out ('.Auth::user()->email.')') }}</li>
80
         </ul>
76
         </ul>
81
-      </li>
82
-      <li>
83
-    </ul>
84
-  </div>
77
+        </li>
78
+
79
+        <li class="dropdown">
80
+            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
81
+                    class="caret"></span></a>
82
+            <ul class="dropdown-menu" role="menu">
83
+                <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
84
+                <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
85
+                <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
86
+                <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
87
+                <li><a
88
+                        href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a>
89
+                </li>
90
+            </ul>
91
+        </li>
92
+        <li class="dropdown">
93
+            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account<span
94
+                    class="caret"></span></a>
95
+            <ul class="dropdown-menu" role="menu">
96
+                <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
97
+                <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
98
+            </ul>
99
+        </li>
100
+        <li>
101
+            </ul>
102
+    </div>
85
 </div>
103
 </div>

+ 542
- 516
app/views/local/managers/pCoords/objectives.blade.php
File diff suppressed because it is too large
View File


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

1
 <div class="navbar navbar-inverse navbar-static-top">
1
 <div class="navbar navbar-inverse navbar-static-top">
2
-  <div class="container-fluid">
3
-    <!--<div class="navbar-header">
4
-      {{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Online Learning Assessment System · Administrator', array(), array('class'=>'navbar-brand')) }}
2
+    <div class="container-fluid">
3
+        <!--<div class="navbar-header">
4
+      {{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Online Learning Assessment System · Administrator', [], ['class' => 'navbar-brand']) }}
5
     </div>-->
5
     </div>-->
6
-    <ul class="nav navbar-nav navbar-right">
7
-      <li>{{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Overview') }}</li>
8
-           <li class="dropdown">
9
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning and Criterias<span class="caret"></span></a>
10
-        <ul class="dropdown-menu" role="menu">
11
-          <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
12
-          <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
13
-          </ul>
14
-      </li>
15
-      <li class="dropdown">
16
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Management<span class="caret"></span></a>
17
-        <ul class="dropdown-menu" role="menu">
18
-<li>{{ HTML::linkAction('Objective2Controller@editSchool', 'Objectives')}}</li>
19
-      <li>{{ HTML::linkAction('CriteriaController@editSchool', 'Criteria') }}</li>
20
- <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
21
- <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
22
-         
23
- <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}</li>
6
+        <ul class="nav navbar-nav navbar-right">
7
+            <li>{{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Overview') }}</li>
8
+            <li class="dropdown">
9
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning
10
+                    and Criterias<span class="caret"></span></a>
11
+                <ul class="dropdown-menu" role="menu">
12
+                    <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
13
+                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
14
+                </ul>
15
+            </li>
16
+            <li class="dropdown">
17
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
18
+                    aria-expanded="false">Management<span class="caret"></span></a>
19
+                <ul class="dropdown-menu" role="menu">
20
+                    <li>{{ HTML::linkAction('Objective2Controller@editSchool', 'Objectives') }}</li>
21
+                    <li>{{ HTML::linkAction('CriteriaController@editSchool', 'Criteria') }}</li>
22
+                    <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
23
+                    <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
24
 
24
 
25
+                    <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}
26
+                    </li>
25
 
27
 
26
-      </ul>
27
-      </li>
28
-            @if(count(Auth::user()->courses))
29
-      <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', NULL) }}</li>
30
-      <li class="dropdown">
31
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Sections<span class="caret"></span></a>
32
-        <ul class="dropdown-menu" role="menu">
33
-          @foreach ($courses as $course)
34
-          <li> {{ HTML::linkAction('CoursesController@show', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</li>
35
-          @endforeach
36
-        </ul>
37
-      </li>
38
-      @endif
39
 
28
 
40
-      <li class="dropdown">
41
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Reports<span class="caret"></span></a>
42
-        <ul class="dropdown-menu" role="menu">
43
-          <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Reports') }}</li>
44
-          @if(count(Auth::user()->courses))
45
-          <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}</li>
46
-          
47
-          @endif
48
-          <li>{{HTML::linkAction('AnnualPlansController@selectProgramPlan','Annual Reports')}}</li>
49
-          <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Tranformative and Formative Actions')}}
50
-    
51
-        </ul>
52
-      </li>
53
-      <li class='dropdown'>
54
-        <a href ='#' class ='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual Plans<span class="caret"></span></a>
55
-        <ul class ='dropdown-menu' role='menu'>
56
-          @foreach (Auth::user()->school->programs as $program)
57
-          <li><a href ="{{ URL::action('AnnualPlansController@showPlan', array($program->id))}}" >{{$program->name}}</a></li>
58
-          @endforeach
59
-        </ul></li>
60
-        <li class='dropdown'>
61
-          <a href ='#' class ='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three year Plans<span class="caret"></span></a>
62
-          <ul class ='dropdown-menu' role='menu'>
63
-            @foreach (Auth::user()->school->programs as $program)
64
-            <li><a href ="{{ URL::action('ThreeYearPlanController@threeYearsReport', array($program->id))}}" >{{$program->name}}</a></li>
65
-            @endforeach
66
-          </ul></li>
67
-      <li class="dropdown">
68
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span class="caret"></span></a>
69
-        <ul class="dropdown-menu" role="menu">
70
-          <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
71
-          <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
72
-          <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
73
-          <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
74
-          <li><a href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a></li>
75
-        </ul>
76
-      </li>
77
-      <li class="dropdown">
78
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account<span class="caret"></span></a>
79
-        <ul class="dropdown-menu" role="menu">
80
-          <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
81
-          <li>{{ HTML::linkAction('AuthController@logout', 'Log out ('.Auth::user()->email.')') }}</li>
29
+                </ul>
30
+            </li>
31
+            @if (count(Auth::user()->courses))
32
+                <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', null) }}</li>
33
+                <li class="dropdown">
34
+                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
35
+                        aria-expanded="false">Sections<span class="caret"></span></a>
36
+                    <ul class="dropdown-menu" role="menu">
37
+                        @foreach ($courses as $course)
38
+                            <li> {{ HTML::linkAction('CoursesController@show', $course->code . $course->number . '-' . $course->section . ' (' . $course->semester->code . ')', ['id' => $course->id]) }}
39
+                            </li>
40
+                        @endforeach
41
+                    </ul>
42
+                </li>
43
+            @endif
44
+
45
+            <li class="dropdown">
46
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
47
+                    aria-expanded="false">Reports<span class="caret"></span></a>
48
+                <ul class="dropdown-menu" role="menu">
49
+                    <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Reports') }}</li>
50
+                    @if (count(Auth::user()->courses))
51
+                        <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}
52
+                        </li>
53
+
54
+                    @endif
55
+                    <li>{{ HTML::linkAction('AnnualPlansController@selectProgramPlan', 'Annual Reports') }}</li>
56
+                    <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Formative Actions') }}
57
+
58
+                </ul>
59
+            </li>
60
+            <li class='dropdown'>
61
+                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
62
+                    Plans<span class="caret"></span></a>
63
+                <ul class='dropdown-menu' role='menu'>
64
+                    @foreach (Auth::user()->school->programs as $program)
65
+                        <li><a
66
+                                href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
67
+                        </li>
68
+                    @endforeach
69
+                </ul>
70
+            </li>
71
+            <li class='dropdown'>
72
+                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
73
+                    year Plans<span class="caret"></span></a>
74
+                <ul class='dropdown-menu' role='menu'>
75
+                    @foreach (Auth::user()->school->programs as $program)
76
+                        <li><a
77
+                                href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
78
+                        </li>
79
+                    @endforeach
80
+                </ul>
81
+            </li>
82
+            <li class="dropdown">
83
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
84
+                        class="caret"></span></a>
85
+                <ul class="dropdown-menu" role="menu">
86
+                    <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
87
+                    <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
88
+                    <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
89
+                    <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
90
+                    <li><a
91
+                            href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a>
92
+                    </li>
93
+                </ul>
94
+            </li>
95
+            <li class="dropdown">
96
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
97
+                    aria-expanded="false">Account<span class="caret"></span></a>
98
+                <ul class="dropdown-menu" role="menu">
99
+                    <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
100
+                    <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
101
+                </ul>
102
+            </li>
82
         </ul>
103
         </ul>
83
-      </li>
84
-    </ul>
85
-  </div>
104
+    </div>
86
 </div>
105
 </div>

+ 1246
- 1020
app/views/local/managers/sCoords/criteria.blade.php
File diff suppressed because it is too large
View File


+ 537
- 514
app/views/local/managers/sCoords/objectives.blade.php
File diff suppressed because it is too large
View File


+ 325
- 544
app/views/local/managers/shared/view_formative.blade.php
File diff suppressed because it is too large
View File


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

47
         </ul>
47
         </ul>
48
         <div id="allLists" class="tab-content">
48
         <div id="allLists" class="tab-content">
49
             <div role="tabpanel" class='tab-pane first' id="activity_1">
49
             <div role="tabpanel" class='tab-pane first' id="activity_1">
50
-
50
+<h3 style="text-align: center">Performance by Learning Outcome Criteria in {{ $activity_1->name }}</h3><hr>
51
                 <div class="col-md-9" id="graph_1"></div>
51
                 <div class="col-md-9" id="graph_1"></div>
52
                 
52
                 
53
             </div>
53
             </div>
54
 
54
 
55
             <div role="tabpanel" class='tab-pane' id="activity_2">
55
             <div role="tabpanel" class='tab-pane' id="activity_2">
56
-
56
+                <h3 style="text-align: center">Performance by Learning Outcome Criteria in {{ $activity_2->name }}</h3><hr>
57
                 <div class="col-md-9" id="graph_2"></div>
57
                 <div class="col-md-9" id="graph_2"></div>
58
                
58
                
59
             </div>
59
             </div>
79
         </ul>
79
         </ul>
80
         <div id="allLists" class="tab-content">
80
         <div id="allLists" class="tab-content">
81
             <div role="tabpanel" class='tab-pane first' id="activity_criteriaGraph_1">
81
             <div role="tabpanel" class='tab-pane first' id="activity_criteriaGraph_1">
82
-                <div class="col-md-9" id="criteriaGraph_1"></div>
82
+                <h3 style="text-align: center">Criteria Achievement {{ $activity_1->name }}</h3><hr>
83
+                <div class="col-md-9" id="criteriaGraph_1">
84
+                    
85
+                </div>
83
             </div>
86
             </div>
84
             <div role="tabpanel" class='tab-pane' id="activity_criteriaGraph_2">
87
             <div role="tabpanel" class='tab-pane' id="activity_criteriaGraph_2">
85
-                <div class="col-md-9" id="criteriaGraph_2"></div>
88
+                <h3 style="text-align: center">Criteria Achievement {{ $activity_2->name }}</h3><hr>
89
+                <div class="col-md-9" id="criteriaGraph_2">
90
+                    
91
+                </div>
86
             </div>
92
             </div>
87
         </div>
93
         </div>
88
     </div>
94
     </div>
549
         @endif,
555
         @endif,
550
     },
556
     },
551
     title: {
557
     title: {
552
-        text: 'Criteria Achievement',
558
+        text: ' ',
553
     },
559
     },
554
     xAxis: {
560
     xAxis: {
555
         categories: [
561
         categories: [
597
 
603
 
598
     tooltip: {
604
     tooltip: {
599
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
605
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
600
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
606
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
601
             '<td style="padding:0"><b>{point.y:.2f}%</b></td> </tr>',
607
             '<td style="padding:0"><b>{point.y:.2f}%</b></td> </tr>',
602
         footerFormat: '</table>',
608
         footerFormat: '</table>',
603
         shared: true,
609
         shared: true,
658
         @endif,
664
         @endif,
659
     },
665
     },
660
     title: {
666
     title: {
661
-        text: 'Criteria Achievement',
667
+        text: ' ',
662
     },
668
     },
663
     xAxis: {
669
     xAxis: {
664
         categories: [
670
         categories: [
706
 
712
 
707
     tooltip: {
713
     tooltip: {
708
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
714
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
709
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
715
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
710
             '<td style="padding:0"><b>{point.y:.2f}%</b></td> </tr>',
716
             '<td style="padding:0"><b>{point.y:.2f}%</b></td> </tr>',
711
         footerFormat: '</table>',
717
         footerFormat: '</table>',
712
         shared: true,
718
         shared: true,
761
         type: 'bar',
767
         type: 'bar',
762
     },
768
     },
763
     title: {
769
     title: {
764
-        text: 'Performance by Learning Outcome Criteria in {{ $activity_1->name }}<br><br>'
770
+        text: ' '
765
     },
771
     },
766
     xAxis: {
772
     xAxis: {
767
         categories: [
773
         categories: [
790
     },
796
     },
791
     tooltip: {
797
     tooltip: {
792
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
798
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
793
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
799
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
794
             '<td style="padding:0"><b>{point.y:.2f}</b></td> </tr>',
800
             '<td style="padding:0"><b>{point.y:.2f}</b></td> </tr>',
795
         footerFormat: '</table>',
801
         footerFormat: '</table>',
796
         shared: true,
802
         shared: true,
863
         type: 'bar',
869
         type: 'bar',
864
     },
870
     },
865
     title: {
871
     title: {
866
-        text:'Performance by Learning Outcome Criteria in {{ $activity_2->name }}<br><br>'
872
+        text:' '
867
         },
873
         },
868
     xAxis: {
874
     xAxis: {
869
         categories: [
875
         categories: [
892
     },
898
     },
893
     tooltip: {
899
     tooltip: {
894
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
900
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
895
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
901
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
896
             '<td style="padding:0"><b>{point.y:.2f}</b></td> </tr>',
902
             '<td style="padding:0"><b>{point.y:.2f}</b></td> </tr>',
897
         footerFormat: '</table>',
903
         footerFormat: '</table>',
898
         shared: true,
904
         shared: true,

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

178
                   </div>
178
                   </div>
179
                 <div class="modal-footer">
179
                 <div class="modal-footer">
180
                       <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
180
                       <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
181
-                     <button type ="button" class= 'btn btn-primary' onclick ="goToURL()">Compare</button>
181
+                     <button type ="button" class= 'btn btn-primary' onclick ="goToURL()" 
182
+                     @if(!count($activities))
183
+                     disabled
184
+                     @endif
185
+                     >Compare</button>
182
                   {{ Form::close() }}
186
                   {{ Form::close() }}
183
                 </div>
187
                 </div>
184
               </div><!-- /.modal-content -->
188
               </div><!-- /.modal-content -->
226
     function goToURL(){
230
     function goToURL(){
227
         activity1 = $('#select-activity-1').val();
231
         activity1 = $('#select-activity-1').val();
228
         activity2 = $('#select-activity-2').val();
232
         activity2 = $('#select-activity-2').val();
229
-
233
+        if(activity1 && activity2)
230
         window.open('../compare_activities/'+activity1+'/'+activity2,'_self');
234
         window.open('../compare_activities/'+activity1+'/'+activity2,'_self');
235
+
231
     }
236
     }
232
 </script>
237
 </script>
233
 @stop
238
 @stop