Переглянути джерело

Arreglo a annual plan asociando typ_program al join, ediciones sencillas

Carlos J Corrada Bravo 2 роки тому
джерело
коміт
a8be92234a

+ 1
- 0
app/controllers/AnnualPlansController.php Переглянути файл

@@ -1100,6 +1100,7 @@ class AnnualPlansController extends \BaseController
1100 1100
   public function checkIfPlanReady()
1101 1101
   {
1102 1102
     $annual_plan = AnnualPlan::findOrFail(Input::get("annual_id"));
1103
+      Log::info('annual_plan'.$annual_plan->courses);
1103 1104
 
1104 1105
     /*
1105 1106
       error = [

+ 4
- 0
app/models/AnnualPlan.php Переглянути файл

@@ -32,6 +32,8 @@ class AnnualPlan extends \Eloquent
32 32
 					->orOn('typ_semester_outcome.semester_id', '=', 'annual_cycle.semester_end');
33 33
 			})
34 34
 			->join('annual_plans', 'annual_plans.annual_cycle_id', '=', 'annual_cycle.id')
35
+			->join('typ_program', 'typ_program.program_id','=','annual_plans.program_id')
36
+			->where('typ_program.id','=','typ_semester_outcome.typ_program_id')
35 37
 			->where('annual_plans.program_id', $this->program_id)
36 38
 			->where('annual_plans.id', $this->id)
37 39
 			->select('courses.*', 'typ_semester_courses.id as typ_semester_course_id', 'annual_plans.program_id', 'typ_semester_outcome.semester_id as semester_id')
@@ -46,6 +48,8 @@ class AnnualPlan extends \Eloquent
46 48
 					->orOn('typ_semester_outcome.semester_id', '=', 'annual_cycle.semester_end');
47 49
 			})
48 50
 			->join('annual_plans', 'annual_plans.annual_cycle_id', '=', 'annual_cycle.id')
51
+			->join('typ_program', 'typ_program.program_id','=','annual_plans.program_id')
52
+			->where('typ_program.id','=','typ_semester_outcome.typ_program_id')
49 53
 			->where('annual_plans.program_id', $this->program_id)
50 54
 			->where('annual_plans.id', $this->id)
51 55
 			->select('courses.*', 'typ_semester_courses.id as typ_semester_course_id', 'annual_plans.program_id', 'typ_semester_outcome.semester_id as semester_id')

+ 5
- 5
app/views/local/managers/pCoords/_new_navigation.blade.php Переглянути файл

@@ -20,9 +20,9 @@
20 20
 
21 21
             <li class='dropdown'>
22 22
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
23
-                    year Plans<span class="caret"></span></a>
23
+                    Year Plans<span class="caret"></span></a>
24 24
                 <ul class='dropdown-menu' role='menu'>
25
-                    <h6 class="dropdown-header">Create/Edit Three Year Plan For: </h6>
25
+                    <h6 class="dropdown-header">Create/Edit Three Year Plan for: </h6>
26 26
                     @foreach (Auth::user()->programs as $program)
27 27
                         <li><a
28 28
                                 href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
@@ -60,7 +60,7 @@
60 60
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
61 61
                     Plans<span class="caret"></span></a>
62 62
                 <ul class='dropdown-menu' role='menu'>
63
-                    <h6 class="dropdown-header">Create/Edit Annual Plan For: </h6>
63
+                    <h6 class="dropdown-header">Create/Edit Annual Plan for: </h6>
64 64
                     @foreach (Auth::user()->programs as $program)
65 65
                         <li><a
66 66
                                 href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
@@ -96,7 +96,7 @@
96 96
                     Results<span class="caret"></span></a>
97 97
                 <ul class="dropdown-menu" role="menu">
98 98
 
99
-                    <h6 class='dropdown-header'>Program Results For:</h6>
99
+                    <h6 class='dropdown-header'>Program Results for:</h6>
100 100
                     @foreach (Auth::user()->programs as $program)
101 101
                         <li><a href="{{ URL::action('OutcomesController@programAssessmentReport', $program->id) }}">{{ $program->name }}
102 102
                             </a></li>
@@ -136,7 +136,7 @@
136 136
                     Report<span class="caret"></span></a>
137 137
                 <ul class="dropdown-menu" role="menu">
138 138
 
139
-                    <h6 class='dropdown-header'>Create/Edit Annual Report For:</h6>
139
+                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
140 140
                     @foreach (Auth::user()->programs as $program)
141 141
                         <li><a
142 142
                                 href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>

+ 1
- 1
app/views/local/managers/sCoords/_navigation.blade.php Переглянути файл

@@ -70,7 +70,7 @@
70 70
             </li>
71 71
             <li class='dropdown'>
72 72
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
73
-                    year Plans<span class="caret"></span></a>
73
+                    Year Plans<span class="caret"></span></a>
74 74
                 <ul class='dropdown-menu' role='menu'>
75 75
                     @foreach (Auth::user()->school->programs as $program)
76 76
                         <li><a

+ 4
- 4
app/views/local/managers/sCoords/_new_navigation.blade.php Переглянути файл

@@ -20,9 +20,9 @@
20 20
 
21 21
             <li class='dropdown'>
22 22
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
23
-                    year Plans<span class="caret"></span></a>
23
+                    Year Plans<span class="caret"></span></a>
24 24
                 <ul class='dropdown-menu' role='menu'>
25
-                    <h6 class="dropdown-header">Create/Edit Three Year Plan For: </h6>
25
+                    <h6 class="dropdown-header">Create/Edit Three Year Plan for: </h6>
26 26
                     @foreach (Auth::user()->school->programs as $program)
27 27
                         <li><a
28 28
                                 href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
@@ -60,7 +60,7 @@
60 60
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
61 61
                     Plans<span class="caret"></span></a>
62 62
                 <ul class='dropdown-menu' role='menu'>
63
-                    <h6 class="dropdown-header">Create/Edit Annual Plan For: </h6>
63
+                    <h6 class="dropdown-header">Create/Edit Annual Plan for: </h6>
64 64
                     @foreach (Auth::user()->school->programs as $program)
65 65
                         <li><a
66 66
                                 href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
@@ -124,7 +124,7 @@
124 124
                     Report<span class="caret"></span></a>
125 125
                 <ul class="dropdown-menu" role="menu">
126 126
 
127
-                    <h6 class='dropdown-header'>Create/Edit Annual Report For:</h6>
127
+                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
128 128
                     @foreach (Auth::user()->school->programs as $program)
129 129
                         <li><a
130 130
                                 href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>

+ 2
- 2
app/views/local/managers/shared/objectives.blade.php Переглянути файл

@@ -249,7 +249,7 @@
249 249
             <div class="modal-content">
250 250
                 <div class="modal-header">
251 251
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
252
-                    <h5 class="modal-title">Would you like to pair these new Outcomes to all the Criteria associated to
252
+                    <h5 class="modal-title">Would you like to pair these new Learning Outcomes to all the Criteria associated to
253 253
                         this Objective?</h5>
254 254
 
255 255
                 </div>
@@ -479,7 +479,7 @@
479 479
                         }).html('<span aria-hidden="true">×</span>');
480 480
                         alert.append(button);
481 481
                         alert.append(
482
-                            '<strong>If you wish to edit the disabled Outcomes you need to detach the Objective from every Criteria paired to it and this Objectvie cannot be in any annual plan with that Outcome</strong>'
482
+                            '<strong>If you wish to edit the disabled Learning Outcomes you need to detach the Objective from every Criteria paired to it and this Objectvie cannot be in any annual plan with that Learning Outcome</strong>'
483 483
                         )
484 484
 
485 485
                         alert.appendTo($('#message_to_disconnect'))