Sfoglia il codice sorgente

Los bugs marcados en verde

parent
commit
1439775929

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

@@ -256,7 +256,28 @@ class AnnualPlansController extends \BaseController
256 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 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 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 282
     $typ_info['transformative_actions'] = DB::select("select * from transformative_actions where by_professor =0 and is_custom=0");
262 283
     foreach ($typ_info['objectives'] as $objective) {

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

@@ -6,6 +6,38 @@ class TemplatesController extends \BaseController
6 6
 	/**
7 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 41
 	public function index()
10 42
 	{
11 43
 		$title = 'Rubric List';
@@ -29,6 +61,7 @@ class TemplatesController extends \BaseController
29 61
 					->get();
30 62
 				break;
31 63
 			case 3:
64
+			case 4:
32 65
 				$program_id = DB::table("program_user")
33 66
 					->where('user_id', Auth::user()->id)
34 67
 					->lists('program_id')[0];
@@ -39,13 +72,19 @@ class TemplatesController extends \BaseController
39 72
 
40 73
 				$templates = Template::orderBy('name')
41 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 84
 					->get();
46 85
 				break;
47 86
 		}
48
-		$templates = Template::orderBy('name')->get();
87
+		//$templates = Template::orderBy('name')->get();
49 88
 
50 89
 		return View::make('local.managers.shared.rubric_list', compact('title', 'global_templates', 'schools', 'templates', 'role'));
51 90
 	}
@@ -498,4 +537,4 @@ class TemplatesController extends \BaseController
498 537
 			return Redirect::back();
499 538
 		}
500 539
 	}
501
-}
540
+}

+ 3
- 0
app/routes.php Vedi File

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

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

@@ -104,7 +104,7 @@
104 104
         @endforeach
105 105
       </div>
106 106
       <br>
107
-      <div>
107
+    </div>
108 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 110
 <!-- Modal -->
@@ -139,7 +139,7 @@
139 139
   </div>
140 140
 </div>
141 141
       </div>
142
-    </div>
142
+   
143 143
 
144 144
     <div class="col-md-9">
145 145
       <div class="btn-group pull-right">

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

@@ -58,14 +58,14 @@
58 58
                                     <?php
59 59
                                     
60 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 70
                                     $sections_evaluating = Course::has('activities')
71 71
                                     
@@ -165,36 +165,7 @@
165 165
                                             </p>
166 166
 
167 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 169
                                             <table class='table table-striped table-condensed datatable'>
199 170
                                                 <thead>
200 171
                                                     <tr>
@@ -211,7 +182,7 @@
211 182
                                                             %
212 183
                                                         </th>
213 184
                                                         <th>
214
-                                                            Outcomes
185
+                                                            Learning Outcomes
215 186
                                                         </th>
216 187
                                                     </tr>
217 188
                                                 </thead>
@@ -253,7 +224,7 @@
253 224
 
254 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,15 +237,54 @@
266 237
                                                 </tbody>
267 238
 
268 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 272
                                             <hr>
270 273
                                             <br>
271 274
 
272 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 282
                                             <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
274 283
                                             <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
275 284
                                             </p>
276 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 288
                                                 the
279 289
                                                 target by outcome: </h5>
280 290
                                             <p style="display: inline;"> <i>
@@ -295,7 +305,7 @@
295 305
                                                 <thead>
296 306
                                                     <tr>
297 307
                                                         <th>
298
-                                                            Outcome
308
+                                                            Learning Outcome
299 309
                                                         </th>
300 310
                                                         <th>
301 311
                                                             Number of Students Assessed
@@ -322,11 +332,13 @@
322 332
                                                                 {{ $outcome->achieved }}
323 333
                                                             </td>
324 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 337
                                                                 </td>
327 338
 
328 339
                                                             @else
329
-                                                                <td class="col-md-1 danger">{{ $outcome->percentage }}%
340
+                                                                <td class="col-md-1 danger">
341
+                                                                    {{ $outcome->percentage }}%
330 342
                                                                 </td>
331 343
 
332 344
                                                             @endif

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

@@ -44,14 +44,14 @@
44 44
                         <?php
45 45
                         
46 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 56
                         $sections_evaluating = Course::has('activities')
57 57
                         
@@ -144,36 +144,7 @@
144 144
                                     </p>
145 145
 
146 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 148
                                     <table class='table table-striped table-condensed datatable'>
178 149
                                         <thead>
179 150
                                             <tr>
@@ -190,7 +161,7 @@
190 161
                                                     %
191 162
                                                 </th>
192 163
                                                 <th>
193
-                                                    Outcomes
164
+                                                    Learning Outcomes
194 165
                                                 </th>
195 166
                                             </tr>
196 167
                                         </thead>
@@ -232,7 +203,7 @@
232 203
 
233 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,10 +216,46 @@
245 216
                                         </tbody>
246 217
 
247 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 250
                                     <hr>
249 251
                                     <br>
250 252
 
251 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 259
                                     <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
253 260
                                     <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
254 261
                                     </p>
@@ -274,7 +281,7 @@
274 281
                                         <thead>
275 282
                                             <tr>
276 283
                                                 <th>
277
-                                                    Outcome
284
+                                                    Learning Outcome
278 285
                                                 </th>
279 286
                                                 <th>
280 287
                                                     Number of Students Assessed

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

@@ -56,14 +56,14 @@
56 56
                                 <?php
57 57
                                 
58 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 68
                                 $sections_evaluating = Course::has('activities')
69 69
                                 
@@ -159,35 +159,7 @@
159 159
                                                 %</i>
160 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 163
                                         <br>
192 164
                                         <table class='table table-striped table-condensed datatable'>
193 165
                                             <thead>
@@ -205,7 +177,7 @@
205 177
                                                         %
206 178
                                                     </th>
207 179
                                                     <th>
208
-                                                        Outcomes
180
+                                                        Learning Outcomes
209 181
                                                     </th>
210 182
                                                 </tr>
211 183
                                             </thead>
@@ -247,7 +219,7 @@
247 219
 
248 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,10 +232,48 @@
260 232
                                             </tbody>
261 233
 
262 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 266
                                         <hr>
264 267
                                         <br>
265 268
 
269
+
270
+
266 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 277
                                         <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
268 278
                                         <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
269 279
                                         </p>
@@ -288,7 +298,7 @@
288 298
                                             <thead>
289 299
                                                 <tr>
290 300
                                                     <th>
291
-                                                        Outcome
301
+                                                        Learning Outcome
292 302
                                                     </th>
293 303
                                                     <th>
294 304
                                                         Number of Students Assessed

+ 635
- 605
app/views/local/managers/shared/annual-plans.blade.php
File diff soppresso perché troppo grande
Vedi File


+ 22
- 17
app/views/local/managers/shared/rubric_list.blade.php Vedi File

@@ -1,14 +1,16 @@
1 1
 @extends('layouts.master')
2 2
 
3 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 14
 @stop
13 15
 
14 16
 @section('main')
@@ -24,17 +26,20 @@
24 26
             </thead>
25 27
             <tfoot>
26 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 34
                 </tr>
30 35
             </tfoot>
31 36
             <tbody>
32
-                @foreach($templates as $template)
37
+                @foreach ($templates as $template)
33 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 40
                         <td>
36
-                            @if($template->school)
37
-                                {{$template->school->name}}
41
+                            @if ($template->school)
42
+                                {{ $template->school->name }}
38 43
                             @else
39 44
                                 All (global)
40 45
                             @endif
@@ -48,7 +53,7 @@
48 53
 
49 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 Vedi File

@@ -1,49 +1,57 @@
1 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 5
       <span></span>
6 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 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 Vedi File

@@ -63,7 +63,7 @@
63 63
                     <li>If a student dropped the class, select "N/A" (Not Applicable) for all columns in that student's row.</li>
64 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 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 67
                 </ul>
68 68
             </div>
69 69
 
@@ -84,7 +84,7 @@
84 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 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 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 89
                 </ul>
90 90
             </div>

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

@@ -185,7 +185,7 @@
185 185
                                 %
186 186
                             </th>
187 187
                             <th>
188
-                                Outcomes
188
+                                Learning Outcomes
189 189
                             </th>
190 190
                         </tr>
191 191
                     </thead>
@@ -240,10 +240,40 @@
240 240
                     </tbody>
241 241
 
242 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 271
                 <hr>
244 272
                 <br>
245 273
 
246 274
                 <h4>Performance of Students by Learning Outcome</h4>
275
+
276
+                <h5 style="text-align: center;">{{ $activity_1->name }} </h5>
247 277
                 <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
248 278
                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
249 279
                 </p>
@@ -270,7 +300,7 @@
270 300
                     <thead>
271 301
                         <tr>
272 302
                             <th>
273
-                                Outcome
303
+                                Learning Outcome
274 304
                             </th>
275 305
                             <th>
276 306
                                 Number of Students Assessed
@@ -370,6 +400,7 @@
370 400
                 <br>
371 401
                 <br>
372 402
                 <h4>Performance of Students by Learning Outcome Criteria</h4>
403
+                <h5 style="text-align: center;">{{ $activity_2->name }} </h5>
373 404
                 <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
374 405
                 <p style="display: inline;"> <i>{{ $activity_2->rubric[0]->expected_points }} or more</i>
375 406
                 </p>
@@ -395,7 +426,7 @@
395 426
                                 %
396 427
                             </th>
397 428
                             <th>
398
-                                Outcomes
429
+                                Learning Outcomes
399 430
                             </th>
400 431
                         </tr>
401 432
                     </thead>
@@ -437,7 +468,7 @@
437 468
 
438 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,6 +481,33 @@
450 481
                     </tbody>
451 482
 
452 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 511
                 <hr>
454 512
                 <br>
455 513
 
@@ -478,7 +536,7 @@
478 536
                     <thead>
479 537
                         <tr>
480 538
                             <th>
481
-                                Outcome
539
+                                Learning Outcome
482 540
                             </th>
483 541
                             <th>
484 542
                                 Number of Students Assessed

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

@@ -49,14 +49,14 @@
49 49
                     <?php
50 50
                     
51 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 61
                     $sections_evaluating = Course::has('activities')
62 62
                     
@@ -152,35 +152,7 @@
152 152
                                 </p>
153 153
 
154 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 157
                                 <table class='table table-striped table-condensed datatable'>
186 158
                                     <thead>
@@ -198,7 +170,7 @@
198 170
                                                 %
199 171
                                             </th>
200 172
                                             <th>
201
-                                                Outcomes
173
+                                                Learning Outcomes
202 174
                                             </th>
203 175
                                         </tr>
204 176
                                     </thead>
@@ -248,7 +220,7 @@
248 220
 
249 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,15 +233,49 @@
261 233
                                     </tbody>
262 234
 
263 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 265
                                 <hr>
265 266
                                 <br>
266 267
 
267 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 273
                                 <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
269 274
                                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
270 275
                                 </p>
271 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 279
                                     by outcome: </h5>
274 280
                                 <p style="display: inline;"> <i>
275 281
                                         <?php
@@ -290,7 +296,7 @@
290 296
                                     <thead>
291 297
                                         <tr>
292 298
                                             <th>
293
-                                                Outcome
299
+                                                Learning Outcome
294 300
                                             </th>
295 301
                                             <th>
296 302
                                                 Number of Students Assessed
@@ -342,8 +348,9 @@
342 348
 
343 349
 
344 350
 
345
-                            @endforeach
346 351
 
352
+
353
+                            @endforeach
347 354
                         @endforeach
348 355
                     </div>
349 356