Gabriel Santiago Plaza il y a 2 ans
Parent
révision
954612721e

+ 5
- 1
app/controllers/Objective2Controller.php Voir le fichier

@@ -129,7 +129,11 @@ class Objective2Controller extends \BaseController
129 129
 		$program_id = Input::get('program_fetch');
130 130
 		$outcome_id = Input::get('outcome_fetch');
131 131
 		$json = array();
132
+
133
+
132 134
 		$json['objective'] = DB::select("SELECT * FROM `objectives` where id in (select objective_id from objective_outcome where outcome_id ={$outcome_id}) and id in (select objective_id from objective_program where program_id = {$program_id})");
135
+		Log::info('En mi sueño');
136
+		Log::info($json);
133 137
 		return json_encode($json);
134 138
 	}
135 139
 	public function delete()
@@ -477,4 +481,4 @@ class Objective2Controller extends \BaseController
477 481
 	{
478 482
 		//
479 483
 	}
480
-}
484
+}

+ 2
- 1
app/routes.php Voir le fichier

@@ -260,6 +260,7 @@ Route::group(array('before' => 'auth|has_access'), function () {
260 260
         'as' => 'fetchRubricCriterion',
261 261
         'uses' => 'RubricsController@fetchRubricCriterion'
262 262
     ));
263
+    Route::post('fetchObjectives', 'Objective2Controller@fetchAllObjectives');
263 264
 
264 265
     // Load a rubric template
265 266
     Route::post('loadTemplate', array('uses' => 'TemplatesController@fetch'));
@@ -321,7 +322,7 @@ Route::group(array('before' => 'auth|has_access'), function () {
321 322
         Route::post('createCriterion', array('before' => 'csrf', 'uses' => 'CriteriaController@create'));
322 323
 
323 324
         Route::get('learning-outcomes', 'OutcomesController@index');
324
-        Route::post('fetchObjectives', 'Objective2Controller@fetchAllObjectives');
325
+        //Route::post('fetchObjectives', 'Objective2Controller@fetchAllObjectives');
325 326
         // TODO: Change later
326 327
         Route::get('new-learning-outcomes', 'OutcomesController@newIndex');
327 328
 

+ 2
- 2
app/views/local/managers/admins/new_assessment_report.blade.php Voir le fichier

@@ -279,14 +279,14 @@
279 279
                                             </p>
280 280
                                             <br>
281 281
 
282
-                                            <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
282
+                                            <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
283 283
                                             <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
284 284
                                             </p>
285 285
                                             <br>
286 286
                                             <h5 style="display: inline; margin:30px;">Expected percent of students
287 287
                                                 achieving
288 288
                                                 the
289
-                                                target by outcome: </h5>
289
+                                                target by learning outcome: </h5>
290 290
                                             <p style="display: inline;"> <i>
291 291
                                                     <?php
292 292
                                                     $expected = DB::table('target_outcomes_program')

+ 1
- 1
app/views/local/managers/admins/objectives.blade.php Voir le fichier

@@ -101,7 +101,7 @@
101 101
                         <div class="form-group">
102 102
                             <label>Associated Outcome</label>
103 103
                             {{-- Form::select('assoc_outcome_fetch', $outcomes, null, ['class'=>'form-control selectpicker', 'id'=>'assoc_outcomes_fetch', 'onchange'=>'fetchAllObjectives("select-program", "assoc_outcomes_fetch")']) --}}
104
-                            <select id="'assoc_outcomes_fetch" name="assoc_outcome_fetch" class="form-control selectpicker"
104
+                            <select id="assoc_outcomes_fetch" name="assoc_outcome_fetch" class="form-control selectpicker"
105 105
                                 onchange="fetchAllObjectives('select-program', 'assoc_outcomes_fetch')">
106 106
                                 @foreach ($outcomes as $outcome)
107 107
                                     <option value="{{ $outcome->id }}">

+ 2
- 2
app/views/local/managers/pCoords/new_assessment_report.blade.php Voir le fichier

@@ -256,12 +256,12 @@
256 256
                                         <strong>({{ $activity->date }})</strong>
257 257
                                     </p>
258 258
                                     <br>
259
-                                    <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
259
+                                    <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
260 260
                                     <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
261 261
                                     </p>
262 262
                                     <br>
263 263
                                     <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
264
-                                        target by outcome: </h5>
264
+                                        target by learning outcome: </h5>
265 265
                                     <p style="display: inline;"> <i>
266 266
                                             <?php
267 267
                                             $expected = DB::table('target_outcomes_program')

+ 1
- 1
app/views/local/managers/pCoords/objectives.blade.php Voir le fichier

@@ -115,7 +115,7 @@
115 115
                         <div class="form-group">
116 116
                             <label>Associated Outcome</label>
117 117
                             {{-- Form::select('assoc_outcome_fetch', $outcomes, null, ['class'=>'form-control selectpicker', 'id'=>'assoc_outcomes_fetch', 'onchange'=>'fetchAllObjectives("select-program", "assoc_outcomes_fetch")']) --}}
118
-                            <select id="'assoc_outcomes_fetch" name="assoc_outcome_fetch" class="form-control selectpicker"
118
+                            <select id="assoc_outcomes_fetch" name="assoc_outcome_fetch" class="form-control selectpicker"
119 119
                                 onchange="fetchAllObjectives('select-program', 'assoc_outcomes_fetch')">
120 120
                                 @foreach ($outcomes as $outcome)
121 121
                                     <option value="{{ $outcome->id }}">

+ 2
- 2
app/views/local/managers/sCoords/new_assessment_report.blade.php Voir le fichier

@@ -274,12 +274,12 @@
274 274
                                             <strong>({{ $activity->date }})</strong>
275 275
                                         </p>
276 276
                                         <br>
277
-                                        <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
277
+                                        <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
278 278
                                         <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
279 279
                                         </p>
280 280
                                         <br>
281 281
                                         <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
282
-                                            target by outcome: </h5>
282
+                                            target by learning outcome: </h5>
283 283
                                         <p style="display: inline;"> <i>
284 284
                                                 <?php
285 285
                                                 $expected = DB::table('target_outcomes_program')

+ 3
- 3
app/views/local/managers/sCoords/objectives.blade.php Voir le fichier

@@ -103,7 +103,7 @@
103 103
                         <div class="form-group">
104 104
                             <label>Associated Outcome</label>
105 105
                             {{-- Form::select('assoc_outcome_fetch', $outcomes, null, ['class'=>'form-control selectpicker', 'id'=>'assoc_outcomes_fetch', 'onchange'=>'fetchAllObjectives("select-program", "assoc_outcomes_fetch")']) --}}
106
-                            <select id="'assoc_outcomes_fetch" name="assoc_outcome_fetch" class="form-control selectpicker"
106
+                            <select id="assoc_outcomes_fetch" name="assoc_outcome_fetch" class="form-control selectpicker"
107 107
                                 onchange="fetchAllObjectives('select-program', 'assoc_outcomes_fetch')">
108 108
                                 @foreach ($outcomes as $outcome)
109 109
                                     <option value="{{ $outcome->id }}">
@@ -233,8 +233,8 @@
233 233
 
234 234
 
235 235
         function fetchAllObjectives(program, outcome) {
236
-            var program_id_fetch = $('#' + program).find(':selected').val();
237
-            var outcome_fetch = $('#' + outcome).find(':selected').val();
236
+            var program_id_fetch = $('#' + program).val();
237
+            var outcome_fetch = $('#' + outcome).val();
238 238
             $.post(
239 239
                 "{{ URL::action('Objective2Controller@fetchAllObjectives') }}", {
240 240
                     program_fetch: program_id_fetch,

+ 2
- 2
app/views/local/managers/shared/annual_report.blade.php Voir le fichier

@@ -130,10 +130,10 @@
130 130
                         $('#levelTabs').empty();
131 131
                         $('.no-outcome').hide();
132 132
                         var outcomeHTML = "<h4>Performance of Students by Learning Outcome</h4>" +
133
-                            '<h5 style = "display: inline; margin:30px;">Target by outcome: </h5>' +
133
+                            '<h5 style = "display: inline; margin:30px;">Target learning by learning outcome: </h5>' +
134 134
                             '<p  style = "display: inline;"> <i>>= ' + outcome.expected_outcome +
135 135
                             ' of the attempts</i>' + '</p>' +
136
-                            '<br><h5 style = "display: inline; margin:30px;">Expected percent of students achieving the target by outcome: </h5>' +
136
+                            '<br><h5 style = "display: inline; margin:30px;">Expected percent of students achieving the target by learning outcome: </h5>' +
137 137
                             '<p  style = "display: inline;"> <i>' + outcome.outcome_program_goal + '</i></p>';
138 138
                         $('#outcomeInfo').html('<p class="outcome-definition">' + outcome.definition + '</p>' +
139 139
                             outcomeHTML);

+ 4
- 4
app/views/local/professors/compare_activities.blade.php Voir le fichier

@@ -274,12 +274,12 @@
274 274
                 <h4>Performance of Students by Learning Outcome</h4>
275 275
 
276 276
                 <h5 style="text-align: center;">{{ $activity_1->name }} </h5>
277
-                <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
277
+                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
278 278
                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
279 279
                 </p>
280 280
                 <br>
281 281
                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
282
-                    target by outcome: </h5>
282
+                    target by learning outcome: </h5>
283 283
                 <p style="display: inline;"> <i>
284 284
                         <?php
285 285
                         $expected = DB::table('target_outcomes_program')
@@ -515,12 +515,12 @@
515 515
                 <br>
516 516
 
517 517
                 <h4>Performance of Students by Learning Outcome</h4>
518
-                <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
518
+                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
519 519
                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
520 520
                 </p>
521 521
                 <br>
522 522
                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
523
-                    target by outcome: </h5>
523
+                    target by learning outcome: </h5>
524 524
                 <p style="display: inline;"> <i>
525 525
                         <?php
526 526
                         $expected = DB::table('target_outcomes_program')

+ 2
- 2
app/views/local/professors/new_assessment_report.blade.php Voir le fichier

@@ -270,13 +270,13 @@
270 270
                                 <p style="display: inline;">{{ $activity->name }}
271 271
                                     <strong>({{ $activity->date }})</strong>
272 272
                                 </p>
273
-                                <h5 style="display: inline; margin:30px;">Target by outcome: </h5>
273
+                                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
274 274
                                 <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
275 275
                                 </p>
276 276
                                 <br>
277 277
                                 <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
278 278
                                     target
279
-                                    by outcome: </h5>
279
+                                    by learning outcome: </h5>
280 280
                                 <p style="display: inline;"> <i>
281 281
                                         <?php
282 282
                                         $expected = DB::table('target_outcomes_program')