Gabriel Santiago Plaza пре 3 година
родитељ
комит
ef0c334fdb
2 измењених фајлова са 13 додато и 5 уклоњено
  1. 1
    1
      app/models/Course.php
  2. 12
    4
      app/views/local/professors/activity.blade.php

+ 1
- 1
app/models/Course.php Прегледај датотеку

@@ -61,7 +61,7 @@ class Course extends Eloquent
61 61
       ->select('activities.id')
62 62
       ->distinct()
63 63
       ->lists('activities.id');
64
-    //return $this->hasMany('Activity')->whereNotNull('activities.outcomes_attempted')->where('activities.draft', 0)->orderBy('date', 'asc');
64
+    //$this->hasMany('Activity')->whereNotNull('activities.outcomes_attempted')->where('activities.draft', 0)->orderBy('date', 'asc');
65 65
     return  $this->hasMany('Activity')->whereIn('activities.id', $activitiesAssessed)->orderBy('date', 'asc');
66 66
   }
67 67
 

+ 12
- 4
app/views/local/professors/activity.blade.php Прегледај датотеку

@@ -236,11 +236,19 @@
236 236
         <hr>
237 237
             <h5>Description</h5>
238 238
             <p>{{ $activity->description }}</p>
239
-
240
-        @if($activity->transforming_actions != NULL)
239
+        <?php
240
+        $formative_actions = $activity->formativeActionsWithCriteria();
241
+        ?>
242
+        @if($formative_actions != NULL)
241 243
             <hr>
242
-            <h5>Transforming Actions</h5>
243
-            {{{ $activity->transforming_actions }}}
244
+            <h5>Formative Actions</h5>
245
+            <p><strong>{{ $formative_actions[0]->at_text }}: </strong> {{$formative_actions[0]->description}}</p>
246
+            <h5>Formative Action's Associated Criteria</h5>
247
+            <ul>
248
+                @foreach($formative_actions as $criteria)
249
+                <li>{{$criteria->name}}</li>
250
+                @endforeach
251
+            </ul>
244 252
         @endif
245 253
 
246 254
         @if($activity->assessment_comments != NULL)