Browse Source

Arreglo a annual plan asociando typ_program al join, ediciones sencillas

parent
commit
a8be92234a

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

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

+ 4
- 0
app/models/AnnualPlan.php View File

32
 					->orOn('typ_semester_outcome.semester_id', '=', 'annual_cycle.semester_end');
32
 					->orOn('typ_semester_outcome.semester_id', '=', 'annual_cycle.semester_end');
33
 			})
33
 			})
34
 			->join('annual_plans', 'annual_plans.annual_cycle_id', '=', 'annual_cycle.id')
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
 			->where('annual_plans.program_id', $this->program_id)
37
 			->where('annual_plans.program_id', $this->program_id)
36
 			->where('annual_plans.id', $this->id)
38
 			->where('annual_plans.id', $this->id)
37
 			->select('courses.*', 'typ_semester_courses.id as typ_semester_course_id', 'annual_plans.program_id', 'typ_semester_outcome.semester_id as semester_id')
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
 					->orOn('typ_semester_outcome.semester_id', '=', 'annual_cycle.semester_end');
48
 					->orOn('typ_semester_outcome.semester_id', '=', 'annual_cycle.semester_end');
47
 			})
49
 			})
48
 			->join('annual_plans', 'annual_plans.annual_cycle_id', '=', 'annual_cycle.id')
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
 			->where('annual_plans.program_id', $this->program_id)
53
 			->where('annual_plans.program_id', $this->program_id)
50
 			->where('annual_plans.id', $this->id)
54
 			->where('annual_plans.id', $this->id)
51
 			->select('courses.*', 'typ_semester_courses.id as typ_semester_course_id', 'annual_plans.program_id', 'typ_semester_outcome.semester_id as semester_id')
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 View File

20
 
20
 
21
             <li class='dropdown'>
21
             <li class='dropdown'>
22
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
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
                 <ul class='dropdown-menu' role='menu'>
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
                     @foreach (Auth::user()->programs as $program)
26
                     @foreach (Auth::user()->programs as $program)
27
                         <li><a
27
                         <li><a
28
                                 href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
28
                                 href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
60
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
60
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
61
                     Plans<span class="caret"></span></a>
61
                     Plans<span class="caret"></span></a>
62
                 <ul class='dropdown-menu' role='menu'>
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
                     @foreach (Auth::user()->programs as $program)
64
                     @foreach (Auth::user()->programs as $program)
65
                         <li><a
65
                         <li><a
66
                                 href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
66
                                 href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
96
                     Results<span class="caret"></span></a>
96
                     Results<span class="caret"></span></a>
97
                 <ul class="dropdown-menu" role="menu">
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
                     @foreach (Auth::user()->programs as $program)
100
                     @foreach (Auth::user()->programs as $program)
101
                         <li><a href="{{ URL::action('OutcomesController@programAssessmentReport', $program->id) }}">{{ $program->name }}
101
                         <li><a href="{{ URL::action('OutcomesController@programAssessmentReport', $program->id) }}">{{ $program->name }}
102
                             </a></li>
102
                             </a></li>
136
                     Report<span class="caret"></span></a>
136
                     Report<span class="caret"></span></a>
137
                 <ul class="dropdown-menu" role="menu">
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
                     @foreach (Auth::user()->programs as $program)
140
                     @foreach (Auth::user()->programs as $program)
141
                         <li><a
141
                         <li><a
142
                                 href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
142
                                 href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>

+ 1
- 1
app/views/local/managers/sCoords/_navigation.blade.php View File

70
             </li>
70
             </li>
71
             <li class='dropdown'>
71
             <li class='dropdown'>
72
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
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
                 <ul class='dropdown-menu' role='menu'>
74
                 <ul class='dropdown-menu' role='menu'>
75
                     @foreach (Auth::user()->school->programs as $program)
75
                     @foreach (Auth::user()->school->programs as $program)
76
                         <li><a
76
                         <li><a

+ 4
- 4
app/views/local/managers/sCoords/_new_navigation.blade.php View File

20
 
20
 
21
             <li class='dropdown'>
21
             <li class='dropdown'>
22
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
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
                 <ul class='dropdown-menu' role='menu'>
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
                     @foreach (Auth::user()->school->programs as $program)
26
                     @foreach (Auth::user()->school->programs as $program)
27
                         <li><a
27
                         <li><a
28
                                 href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
28
                                 href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
60
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
60
                 <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
61
                     Plans<span class="caret"></span></a>
61
                     Plans<span class="caret"></span></a>
62
                 <ul class='dropdown-menu' role='menu'>
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
                     @foreach (Auth::user()->school->programs as $program)
64
                     @foreach (Auth::user()->school->programs as $program)
65
                         <li><a
65
                         <li><a
66
                                 href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
66
                                 href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
124
                     Report<span class="caret"></span></a>
124
                     Report<span class="caret"></span></a>
125
                 <ul class="dropdown-menu" role="menu">
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
                     @foreach (Auth::user()->school->programs as $program)
128
                     @foreach (Auth::user()->school->programs as $program)
129
                         <li><a
129
                         <li><a
130
                                 href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
130
                                 href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>

+ 2
- 2
app/views/local/managers/shared/objectives.blade.php View File

249
             <div class="modal-content">
249
             <div class="modal-content">
250
                 <div class="modal-header">
250
                 <div class="modal-header">
251
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
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
                         this Objective?</h5>
253
                         this Objective?</h5>
254
 
254
 
255
                 </div>
255
                 </div>
479
                         }).html('<span aria-hidden="true">×</span>');
479
                         }).html('<span aria-hidden="true">×</span>');
480
                         alert.append(button);
480
                         alert.append(button);
481
                         alert.append(
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
                         alert.appendTo($('#message_to_disconnect'))
485
                         alert.appendTo($('#message_to_disconnect'))