Browse Source

Los bugs marcados en verde

parent
commit
1439775929

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

256
     //  $typ_info['criteria'][$objective->id] = DB::select("select * from criteria where id in (select criterion_id from criterion_objective_outcome where outcome_id = ? and objective_id = {$objective->id})", array(Input::get('id')));
256
     //  $typ_info['criteria'][$objective->id] = DB::select("select * from criteria where id in (select criterion_id from criterion_objective_outcome where outcome_id = ? and objective_id = {$objective->id})", array(Input::get('id')));
257
     //}
257
     //}
258
     $annual_plan = DB::select("select annual_plans.id from annual_plans, annual_cycle where annual_plans.annual_cycle_id = annual_cycle.id and (semester_start = {$semester->id} or semester_end ={$semester->id}) and program_id ={$program_id}")[0];
258
     $annual_plan = DB::select("select annual_plans.id from annual_plans, annual_cycle where annual_plans.annual_cycle_id = annual_cycle.id and (semester_start = {$semester->id} or semester_end ={$semester->id}) and program_id ={$program_id}")[0];
259
-    $typ_info['expected_target'] = DB::select("select * from target_outcomes_program where program_id = {$program_id} and semester_id = {$semester->id}");
259
+    //$typ_info['expected_target'] = DB::select("select * from target_outcomes_program where program_id = {$program_id} and semester_id = {$semester->id}");
260
+    $typ_info['expected_target'] = DB::table('target_outcomes_program')
261
+      ->where('program_id', $program_id)
262
+      ->where('semester_id', $semester->id)
263
+      ->first();
264
+    if (!$typ_info['expected_target']) {
265
+      DB::beginTransaction();
266
+
267
+      DB::table('target_outcomes_program')->insert(
268
+        array(
269
+          'program_id' => $program_id,
270
+          'semester_id' => $semester->id,
271
+          'expected_target' => 70.00
272
+        )
273
+      );
274
+      DB::commit();
275
+      $typ_info['expected_target'] = DB::table('target_outcomes_program')
276
+        ->where('program_id', $program_id)
277
+        ->where('semester_id', $semester->id)
278
+        ->first();
279
+    }
280
+
260
     $typ_info['objectives'] = DB::select("select * from objectives where id in (select objective_id from typ_semester_objectives where typ_semester_outcome_id in(select id from typ_semester_outcome where outcome_id = ? and semester_id = {$semester->id} and typ_program_id in (select id from typ_program where program_id ={$program_id})))", array(Input::get('id')));
281
     $typ_info['objectives'] = DB::select("select * from objectives where id in (select objective_id from typ_semester_objectives where typ_semester_outcome_id in(select id from typ_semester_outcome where outcome_id = ? and semester_id = {$semester->id} and typ_program_id in (select id from typ_program where program_id ={$program_id})))", array(Input::get('id')));
261
     $typ_info['transformative_actions'] = DB::select("select * from transformative_actions where by_professor =0 and is_custom=0");
282
     $typ_info['transformative_actions'] = DB::select("select * from transformative_actions where by_professor =0 and is_custom=0");
262
     foreach ($typ_info['objectives'] as $objective) {
283
     foreach ($typ_info['objectives'] as $objective) {

+ 43
- 4
app/controllers/TemplatesController.php View File

6
 	/**
6
 	/**
7
 	 * List all templates, grouped by program
7
 	 * List all templates, grouped by program
8
 	 */
8
 	 */
9
+	public function ProfIndex()
10
+	{
11
+		$title = 'Rubric List';
12
+
13
+
14
+		$role = Auth::user()->role;
15
+		$program_id = DB::table("program_user")
16
+			->where('user_id', Auth::user()->id)
17
+			->lists('program_id')[0];
18
+		$school_id = DB::table('programs')
19
+			->where('id', $program_id)
20
+			->lists('school_id')[0];
21
+
22
+
23
+		$templates = Template::orderBy('name')
24
+			->whereNull("school_id")
25
+			->orWhere(function ($query) use (&$school_id) {
26
+				$query->where('school_id', $school_id)
27
+					->whereNull('program_id');
28
+			})
29
+			->orWhere(function ($query) use (&$program_id, &$school_id) {
30
+				$query->where('school_id', $school_id)
31
+					->where('program_id', $program_id);
32
+			})
33
+
34
+
35
+			->get();
36
+
37
+
38
+
39
+		return View::make('local.managers.shared.rubric_list', compact('title', 'global_templates', 'schools', 'templates', 'role'));
40
+	}
9
 	public function index()
41
 	public function index()
10
 	{
42
 	{
11
 		$title = 'Rubric List';
43
 		$title = 'Rubric List';
29
 					->get();
61
 					->get();
30
 				break;
62
 				break;
31
 			case 3:
63
 			case 3:
64
+			case 4:
32
 				$program_id = DB::table("program_user")
65
 				$program_id = DB::table("program_user")
33
 					->where('user_id', Auth::user()->id)
66
 					->where('user_id', Auth::user()->id)
34
 					->lists('program_id')[0];
67
 					->lists('program_id')[0];
39
 
72
 
40
 				$templates = Template::orderBy('name')
73
 				$templates = Template::orderBy('name')
41
 					->whereNull("school_id")
74
 					->whereNull("school_id")
42
-					->orWhere('school_id', $school_id)
43
-					->orWhere('program_id', $program_id)
75
+					->orWhere(function ($query) use (&$school_id) {
76
+						$query->where('school_id', $school_id)
77
+							->whereNull('program_id');
78
+					})
79
+					->orWhere(function ($query) use (&$program_id, &$school_id) {
80
+						$query->where('school_id', $school_id)
81
+							->where('program_id', $program_id);
82
+					})
44
 
83
 
45
 					->get();
84
 					->get();
46
 				break;
85
 				break;
47
 		}
86
 		}
48
-		$templates = Template::orderBy('name')->get();
87
+		//$templates = Template::orderBy('name')->get();
49
 
88
 
50
 		return View::make('local.managers.shared.rubric_list', compact('title', 'global_templates', 'schools', 'templates', 'role'));
89
 		return View::make('local.managers.shared.rubric_list', compact('title', 'global_templates', 'schools', 'templates', 'role'));
51
 	}
90
 	}
498
 			return Redirect::back();
537
 			return Redirect::back();
499
 		}
538
 		}
500
 	}
539
 	}
501
-}
540
+}

+ 3
- 0
app/routes.php View File

528
      * Professor Routes
528
      * Professor Routes
529
      */
529
      */
530
     Route::group(array('prefix' => 'professor', 'before' => 'prof'), function () {
530
     Route::group(array('prefix' => 'professor', 'before' => 'prof'), function () {
531
+
532
+
533
+        Route::get('templateForProfessor', 'TemplatesController@ProfIndex');
531
         Route::post('program', array('before' => 'csrf', 'uses' => 'ProfessorsController@program'));
534
         Route::post('program', array('before' => 'csrf', 'uses' => 'ProfessorsController@program'));
532
         Route::get('activities/{activity_id}/rubrics', 'RubricsController@newRubric');
535
         Route::get('activities/{activity_id}/rubrics', 'RubricsController@newRubric');
533
         Route::get('activities/{activity_id}/other_method', 'RubricsController@newOtherMethod');
536
         Route::get('activities/{activity_id}/other_method', 'RubricsController@newOtherMethod');

+ 2
- 2
app/views/global/view-three-year-plan.blade.php View File

104
         @endforeach
104
         @endforeach
105
       </div>
105
       </div>
106
       <br>
106
       <br>
107
-      <div>
107
+    </div>
108
         <button type="button" class="btn btn-secondary" id = "three_year_button" data-toggle="modal" data-target="#three_year">Create Three Year Cycle</button>
108
         <button type="button" class="btn btn-secondary" id = "three_year_button" data-toggle="modal" data-target="#three_year">Create Three Year Cycle</button>
109
 
109
 
110
 <!-- Modal -->
110
 <!-- Modal -->
139
   </div>
139
   </div>
140
 </div>
140
 </div>
141
       </div>
141
       </div>
142
-    </div>
142
+   
143
 
143
 
144
     <div class="col-md-9">
144
     <div class="col-md-9">
145
       <div class="btn-group pull-right">
145
       <div class="btn-group pull-right">

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

58
                                     <?php
58
                                     <?php
59
                                     
59
                                     
60
                                     /*$sections_evaluating = Course::has('activities')
60
                                     /*$sections_evaluating = Course::has('activities')
61
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->whereNotNull('outcomes_attempted')
62
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
63
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->with(array('activities'=>function($query) use(&$outcome){
64
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            $query->whereNotNull('outcomes_attempted');
65
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
66
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->where('code', $course->code)->where('number',$course->number)
67
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->whereIn('semester_id', Session::get('semesters_ids'))
68
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ->get();*/
61
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereNotNull('outcomes_attempted')
62
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
63
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->with(array('activities'=>function($query) use(&$outcome){
64
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    $query->whereNotNull('outcomes_attempted');
65
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
66
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->where('code', $course->code)->where('number',$course->number)
67
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereIn('semester_id', Session::get('semesters_ids'))
68
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->get();*/
69
                                     
69
                                     
70
                                     $sections_evaluating = Course::has('activities')
70
                                     $sections_evaluating = Course::has('activities')
71
                                     
71
                                     
165
                                             </p>
165
                                             </p>
166
 
166
 
167
                                             <br>
167
                                             <br>
168
-                                            <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
169
-                                            <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
170
-                                            @if ($formative_actions)
171
-                                                <p style="display: inline;">
172
-                                                    <strong>{{ $formative_actions[0]->at_text }}:
173
-                                                    </strong>
174
-
175
-                                                    <i>{{ $formative_actions[0]->description }}
176
-                                                    </i>
177
-                                                </p>
178
-                                                <br>
179
-                                                <h5>Formative Action's Associated
180
-                                                    Criteria: </h5>
181
-                                                <ul>
182
-                                                    @foreach ($formative_actions as $criteria)
183
-                                                        <li> <i>{{ $criteria->name }} <i></li>
184
-
185
-                                                    @endforeach
186
-                                                </ul>
187
 
168
 
188
-                                            @else
189
-                                                <p style="display: inline;"> <strong>Has no Formative Action yet </strong>
190
-
191
-                                            @endif
192
-                                            @if ($activity->assessment_comments != null)
193
-
194
-                                                <h5 style="display: inline; margin:30px;">Assessment Comments</h5>
195
-                                                <p style="display: inline;">{{ $activity->assessment_comments }}</p>
196
-                                            @endif
197
-                                            <br>
198
                                             <table class='table table-striped table-condensed datatable'>
169
                                             <table class='table table-striped table-condensed datatable'>
199
                                                 <thead>
170
                                                 <thead>
200
                                                     <tr>
171
                                                     <tr>
211
                                                             %
182
                                                             %
212
                                                         </th>
183
                                                         </th>
213
                                                         <th>
184
                                                         <th>
214
-                                                            Outcomes
185
+                                                            Learning Outcomes
215
                                                         </th>
186
                                                         </th>
216
                                                     </tr>
187
                                                     </tr>
217
                                                 </thead>
188
                                                 </thead>
253
 
224
 
254
                                                                 @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
225
                                                                 @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
255
 
226
 
256
-                                                                    {{ $index6 + 1 }}. <?php echo $outcome->name . "\n\n\n <br>"; ?>
227
+                                                                    <?php echo $outcome->name . "\n\n\n <br>"; ?>
257
 
228
 
258
 
229
 
259
 
230
 
266
                                                 </tbody>
237
                                                 </tbody>
267
 
238
 
268
                                             </table>
239
                                             </table>
240
+                                            <br>
241
+                                            <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
242
+                                            <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
243
+                                            @if ($formative_actions)
244
+                                                <p style="display: inline;">
245
+                                                    <u>{{ $formative_actions[0]->at_text }}:
246
+                                                    </u>
247
+
248
+                                                    <i>{{ $formative_actions[0]->description }}
249
+                                                    </i>
250
+                                                </p>
251
+                                                <br>
252
+                                                <h5 style="display: inline; margin:30px;">Formative Action's Associated
253
+                                                    Criteria: </h5>
254
+                                                <ul style="margin:30px;">
255
+                                                    @foreach ($formative_actions as $criteria)
256
+                                                        <li> <i>{{ $criteria->name }} <i></li>
257
+
258
+                                                    @endforeach
259
+                                                </ul>
260
+
261
+
262
+
263
+                                            @endif
264
+                                            <br>
265
+                                            <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
266
+                                            @if ($activity->assessment_comments != null)
267
+
268
+
269
+                                                <p style="display: inline;">{{ $activity->assessment_comments }}</p>
270
+                                            @endif
271
+                                            <br>
269
                                             <hr>
272
                                             <hr>
270
                                             <br>
273
                                             <br>
271
 
274
 
272
                                             <h4>Performance of Students by Learning Outcome</h4>
275
                                             <h4>Performance of Students by Learning Outcome</h4>
276
+                                            <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
277
+                                            <p style="display: inline;">{{ $activity->name }}
278
+                                                <strong>({{ $activity->date }})</strong>
279
+                                            </p>
280
+                                            <br>
281
+
273
                                             <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
282
                                             <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
274
                                             <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
283
                                             <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
275
                                             </p>
284
                                             </p>
276
                                             <br>
285
                                             <br>
277
-                                            <h5 style="display: inline; margin:30px;">Expected percent of students achieving
286
+                                            <h5 style="display: inline; margin:30px;">Expected percent of students
287
+                                                achieving
278
                                                 the
288
                                                 the
279
                                                 target by outcome: </h5>
289
                                                 target by outcome: </h5>
280
                                             <p style="display: inline;"> <i>
290
                                             <p style="display: inline;"> <i>
295
                                                 <thead>
305
                                                 <thead>
296
                                                     <tr>
306
                                                     <tr>
297
                                                         <th>
307
                                                         <th>
298
-                                                            Outcome
308
+                                                            Learning Outcome
299
                                                         </th>
309
                                                         </th>
300
                                                         <th>
310
                                                         <th>
301
                                                             Number of Students Assessed
311
                                                             Number of Students Assessed
322
                                                                 {{ $outcome->achieved }}
332
                                                                 {{ $outcome->achieved }}
323
                                                             </td>
333
                                                             </td>
324
                                                             @if ($outcome->percentage >= $expected)
334
                                                             @if ($outcome->percentage >= $expected)
325
-                                                                <td class="col-md-1 success">{{ $outcome->percentage }}%
335
+                                                                <td class="col-md-1 success">
336
+                                                                    {{ $outcome->percentage }}%
326
                                                                 </td>
337
                                                                 </td>
327
 
338
 
328
                                                             @else
339
                                                             @else
329
-                                                                <td class="col-md-1 danger">{{ $outcome->percentage }}%
340
+                                                                <td class="col-md-1 danger">
341
+                                                                    {{ $outcome->percentage }}%
330
                                                                 </td>
342
                                                                 </td>
331
 
343
 
332
                                                             @endif
344
                                                             @endif

+ 47
- 40
app/views/local/managers/pCoords/new_assessment_report.blade.php View File

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
                         
144
                                     </p>
144
                                     </p>
145
 
145
 
146
                                     <br>
146
                                     <br>
147
-                                    <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
148
-                                    <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
149
-                                    @if ($formative_actions)
150
-                                        <p style="display: inline;"> <strong>{{ $formative_actions[0]->at_text }}:
151
-                                            </strong>
152
-
153
-                                            <i>{{ $formative_actions[0]->description }}
154
-                                            </i>
155
-                                        </p>
156
-                                        <br>
157
-                                        <h5>Formative Action's Associated
158
-                                            Criteria: </h5>
159
-                                        <ul>
160
-                                            @foreach ($formative_actions as $criteria)
161
-                                                <li> <i>{{ $criteria->name }} <i></li>
162
-
163
-                                            @endforeach
164
-                                        </ul>
165
 
147
 
166
-                                    @else
167
-                                        <p style="display: inline;"> <strong>Has no Formative Action yet </strong>
168
-
169
-                                    @endif
170
-
171
-                                    @if ($activity->assessment_comments != null)
172
-
173
-                                        <h5 style="display: inline; margin:30px;">Assessment Comments</h5>
174
-                                        <p style="display: inline;">{{ $activity->assessment_comments }}</p>
175
-                                    @endif
176
-                                    <br>
177
                                     <table class='table table-striped table-condensed datatable'>
148
                                     <table class='table table-striped table-condensed datatable'>
178
                                         <thead>
149
                                         <thead>
179
                                             <tr>
150
                                             <tr>
190
                                                     %
161
                                                     %
191
                                                 </th>
162
                                                 </th>
192
                                                 <th>
163
                                                 <th>
193
-                                                    Outcomes
164
+                                                    Learning Outcomes
194
                                                 </th>
165
                                                 </th>
195
                                             </tr>
166
                                             </tr>
196
                                         </thead>
167
                                         </thead>
232
 
203
 
233
                                                         @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
204
                                                         @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
234
 
205
 
235
-                                                            {{ $index6 + 1 }}. <?php echo $outcome->name . "\n\n\n <br>"; ?>
206
+                                                            <?php echo $outcome->name . "\n\n\n <br>"; ?>
236
 
207
 
237
 
208
 
238
 
209
 
245
                                         </tbody>
216
                                         </tbody>
246
 
217
 
247
                                     </table>
218
                                     </table>
219
+                                    <br>
220
+                                    <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
221
+                                    <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
222
+                                    @if ($formative_actions)
223
+                                        <p style="display: inline;">
224
+                                            <u>{{ $formative_actions[0]->at_text }}:
225
+                                            </u>
226
+
227
+                                            <i>{{ $formative_actions[0]->description }}
228
+                                            </i>
229
+                                        </p>
230
+                                        <br>
231
+                                        <h5 style="display: inline; margin:30px;">Formative Action's Associated
232
+                                            Criteria: </h5>
233
+                                        <ul style="margin:30px;">
234
+                                            @foreach ($formative_actions as $criteria)
235
+                                                <li> <i>{{ $criteria->name }} <i></li>
236
+
237
+                                            @endforeach
238
+                                        </ul>
239
+
240
+
241
+                                    @endif
242
+                                    <br>
243
+                                    <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
244
+                                    @if ($activity->assessment_comments != null)
245
+
246
+
247
+                                        <p style="display: inline;">{{ $activity->assessment_comments }}</p>
248
+                                    @endif
249
+                                    <br>
248
                                     <hr>
250
                                     <hr>
249
                                     <br>
251
                                     <br>
250
 
252
 
251
                                     <h4>Performance of Students by Learning Outcome</h4>
253
                                     <h4>Performance of Students by Learning Outcome</h4>
254
+                                    <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
255
+                                    <p style="display: inline;">{{ $activity->name }}
256
+                                        <strong>({{ $activity->date }})</strong>
257
+                                    </p>
258
+                                    <br>
252
                                     <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
259
                                     <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
253
                                     <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
260
                                     <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
254
                                     </p>
261
                                     </p>
274
                                         <thead>
281
                                         <thead>
275
                                             <tr>
282
                                             <tr>
276
                                                 <th>
283
                                                 <th>
277
-                                                    Outcome
284
+                                                    Learning Outcome
278
                                                 </th>
285
                                                 </th>
279
                                                 <th>
286
                                                 <th>
280
                                                     Number of Students Assessed
287
                                                     Number of Students Assessed

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

56
                                 <?php
56
                                 <?php
57
                                 
57
                                 
58
                                 /*$sections_evaluating = Course::has('activities')
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
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereIn('semester_id', Session::get('semesters_ids'))
66
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->get();*/
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
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereIn('semester_id', Session::get('semesters_ids'))
66
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->get();*/
67
                                 
67
                                 
68
                                 $sections_evaluating = Course::has('activities')
68
                                 $sections_evaluating = Course::has('activities')
69
                                 
69
                                 
159
                                                 %</i>
159
                                                 %</i>
160
                                         </p>
160
                                         </p>
161
 
161
 
162
-                                        <br>
163
-                                        <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
164
-                                        <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
165
-                                        @if ($formative_actions)
166
-                                            <p style="display: inline;"> <strong>{{ $formative_actions[0]->at_text }}:
167
-                                                </strong>
168
-
169
-                                                <i>{{ $formative_actions[0]->description }}
170
-                                                </i>
171
-                                            </p>
172
-                                            <br>
173
-                                            <h5>Formative Action's Associated
174
-                                                Criteria: </h5>
175
-                                            <ul>
176
-                                                @foreach ($formative_actions as $criteria)
177
-                                                    <li> <i>{{ $criteria->name }} <i></li>
178
-
179
-                                                @endforeach
180
-                                            </ul>
181
-
182
-                                        @else
183
-                                            <p style="display: inline;"> <strong>Has no Formative Action yet </strong>
184
 
162
 
185
-                                        @endif
186
-                                        @if ($activity->assessment_comments != null)
187
-
188
-                                            <h5 style="display: inline; margin:30px;">Assessment Comments</h5>
189
-                                            <p style="display: inline;">{{ $activity->assessment_comments }}</p>
190
-                                        @endif
191
                                         <br>
163
                                         <br>
192
                                         <table class='table table-striped table-condensed datatable'>
164
                                         <table class='table table-striped table-condensed datatable'>
193
                                             <thead>
165
                                             <thead>
205
                                                         %
177
                                                         %
206
                                                     </th>
178
                                                     </th>
207
                                                     <th>
179
                                                     <th>
208
-                                                        Outcomes
180
+                                                        Learning Outcomes
209
                                                     </th>
181
                                                     </th>
210
                                                 </tr>
182
                                                 </tr>
211
                                             </thead>
183
                                             </thead>
247
 
219
 
248
                                                             @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
220
                                                             @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
249
 
221
 
250
-                                                                {{ $index6 + 1 }}. <?php echo $outcome->name . "\n\n\n <br>"; ?>
222
+                                                                <?php echo $outcome->name . "\n\n\n <br>"; ?>
251
 
223
 
252
 
224
 
253
 
225
 
260
                                             </tbody>
232
                                             </tbody>
261
 
233
 
262
                                         </table>
234
                                         </table>
235
+
236
+                                        <br>
237
+                                        <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
238
+                                        <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
239
+                                        @if ($formative_actions)
240
+                                            <p style="display: inline;"> <u>{{ $formative_actions[0]->at_text }}:
241
+                                                </u>
242
+
243
+                                                <i>{{ $formative_actions[0]->description }}
244
+                                                </i>
245
+                                            </p>
246
+                                            <br>
247
+                                            <h5 style="display: inline; margin:30px;">Formative Action's Associated
248
+                                                Criteria: </h5>
249
+                                            <ul style="margin:30px;">
250
+                                                @foreach ($formative_actions as $criteria)
251
+                                                    <li> <i>{{ $criteria->name }} <i></li>
252
+
253
+                                                @endforeach
254
+                                            </ul>
255
+
256
+
257
+
258
+                                        @endif
259
+                                        <br>
260
+                                        <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
261
+                                        @if ($activity->assessment_comments != null)
262
+
263
+
264
+                                            <p style="display: inline;">{{ $activity->assessment_comments }}</p>
265
+                                        @endif
263
                                         <hr>
266
                                         <hr>
264
                                         <br>
267
                                         <br>
265
 
268
 
269
+
270
+
266
                                         <h4>Performance of Students by Learning Outcome</h4>
271
                                         <h4>Performance of Students by Learning Outcome</h4>
272
+                                        <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
273
+                                        <p style="display: inline;">{{ $activity->name }}
274
+                                            <strong>({{ $activity->date }})</strong>
275
+                                        </p>
276
+                                        <br>
267
                                         <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
277
                                         <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
268
                                         <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
278
                                         <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
269
                                         </p>
279
                                         </p>
288
                                             <thead>
298
                                             <thead>
289
                                                 <tr>
299
                                                 <tr>
290
                                                     <th>
300
                                                     <th>
291
-                                                        Outcome
301
+                                                        Learning Outcome
292
                                                     </th>
302
                                                     </th>
293
                                                     <th>
303
                                                     <th>
294
                                                         Number of Students Assessed
304
                                                         Number of Students Assessed

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


+ 22
- 17
app/views/local/managers/shared/rubric_list.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)
7
-@include('local.managers.sCoords._navigation')
8
-@elseif($role==3)
9
-@include('local.managers.pCoords._navigation')
10
-@endif
11
-   
4
+    @if ($role == 1)
5
+        @include('local.managers.admins._navigation')
6
+    @elseif($role == 2)
7
+        @include('local.managers.sCoords._navigation')
8
+    @elseif($role == 3)
9
+        @include('local.managers.pCoords._navigation')
10
+    @elseif($role == 4)
11
+        @include('local.professors._navigation')
12
+    @endif
13
+
12
 @stop
14
 @stop
13
 
15
 
14
 @section('main')
16
 @section('main')
24
             </thead>
26
             </thead>
25
             <tfoot>
27
             <tfoot>
26
                 <tr class="column-search">
28
                 <tr class="column-search">
27
-                    <td><input class="column-search-bar form-control" type="text" placeholder="Buscar" aria-label="search rubric name"/></td>
28
-                    <td><select class="column-search-select form-control" aria-label="select associated school"><option value=""></option></select></td>
29
+                    <td><input class="column-search-bar form-control" type="text" placeholder="Buscar"
30
+                            aria-label="search rubric name" /></td>
31
+                    <td><select class="column-search-select form-control" aria-label="select associated school">
32
+                            <option value=""></option>
33
+                        </select></td>
29
                 </tr>
34
                 </tr>
30
             </tfoot>
35
             </tfoot>
31
             <tbody>
36
             <tbody>
32
-                @foreach($templates as $template)
37
+                @foreach ($templates as $template)
33
                     <tr>
38
                     <tr>
34
-                        <td>{{ HTML::linkAction('TemplatesController@show', $template->name, array($template->id)) }}</td>
39
+                        <td>{{ HTML::linkAction('TemplatesController@show', $template->name, [$template->id]) }}</td>
35
                         <td>
40
                         <td>
36
-                            @if($template->school)
37
-                                {{$template->school->name}}
41
+                            @if ($template->school)
42
+                                {{ $template->school->name }}
38
                             @else
43
                             @else
39
                                 All (global)
44
                                 All (global)
40
                             @endif
45
                             @endif
48
 
53
 
49
 @section('included-js')
54
 @section('included-js')
50
 
55
 
51
-<!-- Datatables -->
52
-@include('global._datatables_js')
56
+    <!-- Datatables -->
57
+    @include('global._datatables_js')
53
 
58
 
54
-@stop
59
+@stop

+ 53
- 45
app/views/local/professors/_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('ProfessorsController@overview', 'Online Learning Assessment System · Professor', array() ,array('class'=>'navbar-brand')) }}
2
+    <div class="container-fluid">
3
+        <!--<div class="navbar-header">
4
+      {{ HTML::linkAction('ProfessorsController@overview', 'Online Learning Assessment System · Professor', [], ['class' => 'navbar-brand']) }}
5
       <span></span>
5
       <span></span>
6
     </div>-->
6
     </div>-->
7
-    <ul class="nav navbar-nav navbar-right">
8
-      <li>{{ HTML::linkAction('ProfessorsController@overview', 'My Courses') }}</li>
9
-      {{-- la linea siguiente comentada es lo que habia originalmente. tanto la linea como este comentario se pueden borrar --}}
10
-      {{-- <li>{{ HTML::linkAction('CriteriaController@index', 'Learning Outcomes and Criteria') }}</li> --}}
11
-      {{--<li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}</li>--}}
12
-      <li class="dropdown">
13
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning and Criterias<span class="caret"></span></a>
14
-        <ul class="dropdown-menu" role="menu">
15
-          <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
16
-          <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
7
+        <ul class="nav navbar-nav navbar-right">
8
+            <li>{{ HTML::linkAction('ProfessorsController@overview', 'My Courses') }}</li>
9
+            {{-- la linea siguiente comentada es lo que habia originalmente. tanto la linea como este comentario se pueden borrar --}}
10
+            {{-- <li>{{ HTML::linkAction('CriteriaController@index', 'Learning Outcomes and Criteria') }}</li> --}}
11
+            {{-- <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}</li> --}}
12
+            <li class="dropdown">
13
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning
14
+                    and Criterias<span class="caret"></span></a>
15
+                <ul class="dropdown-menu" role="menu">
16
+                    <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
17
+                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
18
+                </ul>
19
+            </li>
20
+            @if (count(Auth::user()->courses))
21
+                <li class="dropdown">
22
+                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
23
+                        aria-expanded="false">Sections<span class="caret"></span></a>
24
+                    <ul class="dropdown-menu" role="menu">
25
+                        @foreach ($courses as $course)
26
+                            <li> {{ HTML::linkAction('CoursesController@show', $course->code . $course->number . '-' . $course->section . ' (' . $course->semester->code . ')', ['id' => $course->id]) }}
27
+                            </li>
28
+                        @endforeach
29
+                    </ul>
30
+                </li>
31
+            @endif
32
+            <li> {{ HTML::linkAction('ProfessorsController@program', 'Program') }}</li>
33
+            <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'Reports') }}</li>
34
+            <li>{{ HTML::linkAction('TemplatesController@ProfIndex', 'Rubric List') }}</li>
35
+            <li class="dropdown">
36
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
37
+                        class="caret"></span></a>
38
+                <ul class="dropdown-menu" role="menu">
39
+                    <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
40
+                    <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
41
+                    <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
42
+                    <li><a
43
+                            href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a>
44
+                    </li>
45
+                </ul>
46
+            </li>
47
+            <li class="dropdown">
48
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
49
+                    aria-expanded="false">Account<span class="caret"></span></a>
50
+                <ul class="dropdown-menu" role="menu">
51
+                    <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
52
+                    <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
53
+                </ul>
54
+            </li>
17
         </ul>
55
         </ul>
18
-      </li>
19
-      @if(count(Auth::user()->courses))
20
-      <li class="dropdown">
21
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Sections<span class="caret"></span></a>
22
-        <ul class="dropdown-menu" role="menu">
23
-          @foreach ($courses as $course)
24
-          <li> {{ HTML::linkAction('CoursesController@show', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</li>
25
-          @endforeach
26
-        </ul>
27
-      </li>
28
-      @endif
29
-      <li> {{ HTML::linkAction('ProfessorsController@program', 'Program') }}</li>
30
-      <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'Reports') }}</li>
31
-      <li class="dropdown">
32
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span class="caret"></span></a>
33
-        <ul class="dropdown-menu" role="menu">
34
-          <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
35
-          <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
36
-          <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
37
-          <li><a href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a></li>
38
-        </ul>
39
-      </li>
40
-      <li class="dropdown">
41
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account<span class="caret"></span></a>
42
-        <ul class="dropdown-menu" role="menu">
43
-          <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
44
-          <li>{{ HTML::linkAction('AuthController@logout', 'Log out ('.Auth::user()->email.')') }}</li>
45
-        </ul>
46
-      </li>
47
-    </ul>
48
-  </div>
49
-</div>
56
+    </div>
57
+</div>

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

63
                     <li>If a student dropped the class, select "N/A" (Not Applicable) for all columns in that student's row.</li>
63
                     <li>If a student dropped the class, select "N/A" (Not Applicable) for all columns in that student's row.</li>
64
                     <li>Cells with "N/A" <strong>will not</strong> be used to determine whether a criterion is achieved. Only scores from 0 to {{$rubric->max_score}} will be considered for this purpose.</li>
64
                     <li>Cells with "N/A" <strong>will not</strong> be used to determine whether a criterion is achieved. Only scores from 0 to {{$rubric->max_score}} will be considered for this purpose.</li>
65
                     <li>For this activity, <strong>at least one score must be from 1-{{$rubric->max_score}}.</strong> Otherwise, the 'Publish Assessment' and 'Save as Draft' buttons will be <strong>disabled</strong>. If you want to delete previously saved scores, go back to the activity and click the "Delete Assessment" button.</li>
65
                     <li>For this activity, <strong>at least one score must be from 1-{{$rubric->max_score}}.</strong> Otherwise, the 'Publish Assessment' and 'Save as Draft' buttons will be <strong>disabled</strong>. If you want to delete previously saved scores, go back to the activity and click the "Delete Assessment" button.</li>
66
-
66
+                    <li>If some criterion has more weight on the student's final percentage, you can add it in the 'Weight' box above the criterion but be sure that the sum of criteria weights is equal to 100 (or aproximates it).
67
                 </ul>
67
                 </ul>
68
             </div>
68
             </div>
69
 
69
 
84
                     <li>Si un estudiante se dio de baja, seleccione "N/A" (No Aplica) en todas las columnas de la fila de ese estudiante.</li>
84
                     <li>Si un estudiante se dio de baja, seleccione "N/A" (No Aplica) en todas las columnas de la fila de ese estudiante.</li>
85
                     <li>Las celdas con "N/A" <strong>no</strong> serán utilizadas para determinar si un criterio se alcanzó o no. Solamente las puntuaciones del 0 al {{$rubric->max_score}} serán consideradas.</li>
85
                     <li>Las celdas con "N/A" <strong>no</strong> serán utilizadas para determinar si un criterio se alcanzó o no. Solamente las puntuaciones del 0 al {{$rubric->max_score}} serán consideradas.</li>
86
                     <li>Para esta actividad, <strong>al menos una puntuación deber ser del 1 al {{$rubric->max_score}}.</strong> De otra manera, el botón para guardar <strong>se desactivará</strong>. Si quiere borrar los resultados del avalúo, vuelva a la actividad y oprima el botón que dice "Delete Assessment".</li>
86
                     <li>Para esta actividad, <strong>al menos una puntuación deber ser del 1 al {{$rubric->max_score}}.</strong> De otra manera, el botón para guardar <strong>se desactivará</strong>. Si quiere borrar los resultados del avalúo, vuelva a la actividad y oprima el botón que dice "Delete Assessment".</li>
87
-
87
+                    <li>Si algún criterio tiene más peso en el porcentaje final del estudiante, puedes añadirlo en la caja de "Weight" arriba del criterio deseado, pero debe asegurarse que la suma de los criterios sea igual a cien, o se aproxime. 
88
 
88
 
89
                 </ul>
89
                 </ul>
90
             </div>
90
             </div>

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

185
                                 %
185
                                 %
186
                             </th>
186
                             </th>
187
                             <th>
187
                             <th>
188
-                                Outcomes
188
+                                Learning Outcomes
189
                             </th>
189
                             </th>
190
                         </tr>
190
                         </tr>
191
                     </thead>
191
                     </thead>
240
                     </tbody>
240
                     </tbody>
241
 
241
 
242
                 </table>
242
                 </table>
243
+
244
+                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
245
+                <?php $formative_actions = $activity_1->formativeActionsWithCriteria(); ?>
246
+                @if ($formative_actions)
247
+                    <p style="display: inline;"> <u>{{ $formative_actions[0]->at_text }}:
248
+                        </u>
249
+
250
+                        <i>{{ $formative_actions[0]->description }}
251
+                        </i>
252
+                    </p>
253
+                    <br>
254
+                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
255
+                        Criteria: </h5>
256
+                    <ul style=" margin:30px;">
257
+                        @foreach ($formative_actions as $criteria)
258
+                            <li> <i>{{ $criteria->name }} <i></li>
259
+
260
+                        @endforeach
261
+                    </ul>
262
+                @endif
263
+                <br>
264
+
265
+                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
266
+                @if ($activity_1->assessment_comments != null)
267
+
268
+
269
+                    <p style="display: inline;">{{ $activity_1->assessment_comments }}</p>
270
+                @endif
243
                 <hr>
271
                 <hr>
244
                 <br>
272
                 <br>
245
 
273
 
246
                 <h4>Performance of Students by Learning Outcome</h4>
274
                 <h4>Performance of Students by Learning Outcome</h4>
275
+
276
+                <h5 style="text-align: center;">{{ $activity_1->name }} </h5>
247
                 <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
277
                 <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
248
                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
278
                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
249
                 </p>
279
                 </p>
270
                     <thead>
300
                     <thead>
271
                         <tr>
301
                         <tr>
272
                             <th>
302
                             <th>
273
-                                Outcome
303
+                                Learning Outcome
274
                             </th>
304
                             </th>
275
                             <th>
305
                             <th>
276
                                 Number of Students Assessed
306
                                 Number of Students Assessed
370
                 <br>
400
                 <br>
371
                 <br>
401
                 <br>
372
                 <h4>Performance of Students by Learning Outcome Criteria</h4>
402
                 <h4>Performance of Students by Learning Outcome Criteria</h4>
403
+                <h5 style="text-align: center;">{{ $activity_2->name }} </h5>
373
                 <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
404
                 <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
374
                 <p style="display: inline;"> <i>{{ $activity_2->rubric[0]->expected_points }} or more</i>
405
                 <p style="display: inline;"> <i>{{ $activity_2->rubric[0]->expected_points }} or more</i>
375
                 </p>
406
                 </p>
395
                                 %
426
                                 %
396
                             </th>
427
                             </th>
397
                             <th>
428
                             <th>
398
-                                Outcomes
429
+                                Learning Outcomes
399
                             </th>
430
                             </th>
400
                         </tr>
431
                         </tr>
401
                     </thead>
432
                     </thead>
437
 
468
 
438
                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
469
                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
439
 
470
 
440
-                                        {{ $index6 + 1 }}. <?php echo $outcome->name . "\n\n\n <br>"; ?>
471
+                                        <?php echo $outcome->name . "\n\n\n <br>"; ?>
441
 
472
 
442
 
473
 
443
 
474
 
450
                     </tbody>
481
                     </tbody>
451
 
482
 
452
                 </table>
483
                 </table>
484
+
485
+                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
486
+                <?php $formative_actions = $activity_2->formativeActionsWithCriteria(); ?>
487
+                @if ($formative_actions)
488
+                    <p style="display: inline;"> <u>{{ $formative_actions[0]->at_text }}:
489
+                        </u>
490
+
491
+                        <i>{{ $formative_actions[0]->description }}
492
+                        </i>
493
+                    </p>
494
+                    <br>
495
+                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
496
+                        Criteria: </h5>
497
+                    <ul style=" margin:30px;">
498
+                        @foreach ($formative_actions as $criteria)
499
+                            <li> <i>{{ $criteria->name }} <i></li>
500
+
501
+                        @endforeach
502
+                    </ul>
503
+                @endif
504
+                <br>
505
+                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
506
+                @if ($activity_2->assessment_comments != null)
507
+
508
+
509
+                    <p style="display: inline;">{{ $activity_2->assessment_comments }}</p>
510
+                @endif
453
                 <hr>
511
                 <hr>
454
                 <br>
512
                 <br>
455
 
513
 
478
                     <thead>
536
                     <thead>
479
                         <tr>
537
                         <tr>
480
                             <th>
538
                             <th>
481
-                                Outcome
539
+                                Learning Outcome
482
                             </th>
540
                             </th>
483
                             <th>
541
                             <th>
484
                                 Number of Students Assessed
542
                                 Number of Students Assessed

+ 48
- 41
app/views/local/professors/new_assessment_report.blade.php View File

49
                     <?php
49
                     <?php
50
                     
50
                     
51
                     /*$sections_evaluating = Course::has('activities')
51
                     /*$sections_evaluating = Course::has('activities')
52
-                                                                                       ->whereNotNull('outcomes_attempted')
53
-                                                                                       ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
54
-                                                                                       ->with(array('activities'=>function($query) use(&$outcome){
55
-                                                                                           $query->whereNotNull('outcomes_attempted');
56
-                                                                                           $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
57
-                                                                                       ->where('code', $course->code)->where('number',$course->number)
58
-                                                                                       ->whereIn('semester_id', Session::get('semesters_ids'))
59
-                                                                                       ->get();*/
52
+                                                                                                                                                                                                                                                                                                                                       ->whereNotNull('outcomes_attempted')
53
+                                                                                                                                                                                                                                                                                                                                       ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
54
+                                                                                                                                                                                                                                                                                                                                       ->with(array('activities'=>function($query) use(&$outcome){
55
+                                                                                                                                                                                                                                                                                                                                           $query->whereNotNull('outcomes_attempted');
56
+                                                                                                                                                                                                                                                                                                                                           $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
57
+                                                                                                                                                                                                                                                                                                                                       ->where('code', $course->code)->where('number',$course->number)
58
+                                                                                                                                                                                                                                                                                                                                       ->whereIn('semester_id', Session::get('semesters_ids'))
59
+                                                                                                                                                                                                                                                                                                                                       ->get();*/
60
                     
60
                     
61
                     $sections_evaluating = Course::has('activities')
61
                     $sections_evaluating = Course::has('activities')
62
                     
62
                     
152
                                 </p>
152
                                 </p>
153
 
153
 
154
                                 <br>
154
                                 <br>
155
-                                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
156
-                                <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
157
-                                @if ($formative_actions)
158
-                                    <p style="display: inline;"> <strong>{{ $formative_actions[0]->at_text }}:
159
-                                        </strong>
160
-
161
-                                        <i>{{ $formative_actions[0]->description }}
162
-                                        </i>
163
-                                    </p>
164
-                                    <br>
165
-                                    <h5>Formative Action's Associated
166
-                                        Criteria: </h5>
167
-                                    <ul>
168
-                                        @foreach ($formative_actions as $criteria)
169
-                                            <li> <i>{{ $criteria->name }} <i></li>
170
 
155
 
171
-                                        @endforeach
172
-                                    </ul>
173
-
174
-                                @else
175
-                                    <p style="display: inline;"> <strong>Has no Formative Action yet </strong>
176
-
177
-                                @endif
178
-                                @if ($activity->assessment_comments != null)
179
-
180
-                                    <h5 style="display: inline; margin:30px;">Assessment Comments</h5>
181
-                                    <p style="display: inline;">{{ $activity->assessment_comments }}</p>
182
-                                @endif
183
-                                <br>
184
 
156
 
185
                                 <table class='table table-striped table-condensed datatable'>
157
                                 <table class='table table-striped table-condensed datatable'>
186
                                     <thead>
158
                                     <thead>
198
                                                 %
170
                                                 %
199
                                             </th>
171
                                             </th>
200
                                             <th>
172
                                             <th>
201
-                                                Outcomes
173
+                                                Learning Outcomes
202
                                             </th>
174
                                             </th>
203
                                         </tr>
175
                                         </tr>
204
                                     </thead>
176
                                     </thead>
248
 
220
 
249
                                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
221
                                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
250
 
222
 
251
-                                                        {{ $index6 + 1 }}. <?php echo $outcome->name . "\n\n\n <br>"; ?>
223
+                                                        <?php echo $outcome->name . "\n\n\n <br>"; ?>
252
 
224
 
253
 
225
 
254
 
226
 
261
                                     </tbody>
233
                                     </tbody>
262
 
234
 
263
                                 </table>
235
                                 </table>
236
+                                <br>
237
+                                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
238
+                                <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
239
+                                @if ($formative_actions)
240
+                                    <p style="display: inline;"> <u>{{ $formative_actions[0]->at_text }}:
241
+                                        </u>
242
+
243
+                                        <i>{{ $formative_actions[0]->description }}
244
+                                        </i>
245
+                                    </p>
246
+                                    <br>
247
+                                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
248
+                                        Criteria: </h5>
249
+                                    <ul style="margin:30px;">
250
+                                        @foreach ($formative_actions as $criteria)
251
+                                            <li> <i>{{ $criteria->name }} <i></li>
252
+
253
+                                        @endforeach
254
+                                    </ul>
255
+                                @endif
256
+                                <br>
257
+
258
+                                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
259
+                                @if ($activity->assessment_comments != null)
260
+
261
+
262
+                                    <p style="display: inline;">{{ $activity->assessment_comments }}</p>
263
+                                @endif
264
+                                <br>
264
                                 <hr>
265
                                 <hr>
265
                                 <br>
266
                                 <br>
266
 
267
 
267
                                 <h4>Performance of Students by Learning Outcome</h4>
268
                                 <h4>Performance of Students by Learning Outcome</h4>
269
+                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5><br>
270
+                                <p style="display: inline;">{{ $activity->name }}
271
+                                    <strong>({{ $activity->date }})</strong>
272
+                                </p>
268
                                 <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
273
                                 <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
269
                                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
274
                                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
270
                                 </p>
275
                                 </p>
271
                                 <br>
276
                                 <br>
272
-                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the target
277
+                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
278
+                                    target
273
                                     by outcome: </h5>
279
                                     by outcome: </h5>
274
                                 <p style="display: inline;"> <i>
280
                                 <p style="display: inline;"> <i>
275
                                         <?php
281
                                         <?php
290
                                     <thead>
296
                                     <thead>
291
                                         <tr>
297
                                         <tr>
292
                                             <th>
298
                                             <th>
293
-                                                Outcome
299
+                                                Learning Outcome
294
                                             </th>
300
                                             </th>
295
                                             <th>
301
                                             <th>
296
                                                 Number of Students Assessed
302
                                                 Number of Students Assessed
342
 
348
 
343
 
349
 
344
 
350
 
345
-                            @endforeach
346
 
351
 
352
+
353
+                            @endforeach
347
                         @endforeach
354
                         @endforeach
348
                     </div>
355
                     </div>
349
 
356