Kaynağa Gözat

rubricas solo con critrios pareados.

Carlos J Corrada Bravo 2 yıl önce
ebeveyn
işleme
42de1ea6ca

+ 3
- 1
app/controllers/AnnualPlansController.php Dosyayı Görüntüle

129
   }*/
129
   }*/
130
   public function adminIndex()
130
   public function adminIndex()
131
   {
131
   {
132
+  	Log::info("Entre".json_encode($this));
133
+
132
     $title = "Annual Plans";
134
     $title = "Annual Plans";
133
-    $programs = Program::where("school_id", $school_id)->get();
135
+    $programs = Program::get();
134
 
136
 
135
     return View::make('local.managers.admins.appraisal-program', compact('title', 'programs'));
137
     return View::make('local.managers.admins.appraisal-program', compact('title', 'programs'));
136
   }
138
   }

+ 7
- 0
app/controllers/CriteriaController.php Dosyayı Görüntüle

124
                     ->lists('program_id');
124
                     ->lists('program_id');
125
 
125
 
126
                 break;
126
                 break;
127
+            case 4:
128
+
129
+                $program_ids = DB::table('program_user')
130
+                    ->where('user_id', Auth::user()->id)
131
+                    ->lists('program_id');
132
+
133
+                break;
127
         }
134
         }
128
         $outcome_id = Input::get('outcomeID');
135
         $outcome_id = Input::get('outcomeID');
129
         Log::info($outcome_id);
136
         Log::info($outcome_id);

+ 1
- 0
app/controllers/FeedbackController.php Dosyayı Görüntüle

80
           	Mail::send('emails.feedback-email-copy', $data, function($message){
80
           	Mail::send('emails.feedback-email-copy', $data, function($message){
81
         		$message
81
         		$message
82
         		->to(Input::get('email'), Auth::user()->first_name.' '.Auth::user()->surnames)
82
         		->to(Input::get('email'), Auth::user()->first_name.' '.Auth::user()->surnames)
83
+//                 ->cc('oeae.rrp@upr.edu')
83
                 ->cc('peticiones.diia@upr.edu')
84
                 ->cc('peticiones.diia@upr.edu')
84
         		->subject('Feedback for OLAS');
85
         		->subject('Feedback for OLAS');
85
     		});
86
     		});

+ 44
- 4
app/controllers/OutcomesController.php Dosyayı Görüntüle

13
     public function index()
13
     public function index()
14
     {
14
     {
15
         $title = "Learning Outcomes";
15
         $title = "Learning Outcomes";
16
-        $outcomes = Outcome::withTrashed()->orderBy('name', 'ASC')->get();
16
+        $outcomes = Outcome::withTrashed()->orderBy('id', 'ASC')->get();
17
+//         $outcomes = Outcome::withTrashed()->orderBy('name', 'ASC')->get();
17
         $schools = School::orderBy('name', 'ASC')->get();
18
         $schools = School::orderBy('name', 'ASC')->get();
18
         // $semesters_ids = Session::get('semesters_ids');
19
         // $semesters_ids = Session::get('semesters_ids');
19
         // $semesters = Semester::whereIn('id',$semesters_ids)->get();
20
         // $semesters = Semester::whereIn('id',$semesters_ids)->get();
339
     /**
340
     /**
340
      *Copy of update(), but also updates activation_date, deactivation_date and level
341
      *Copy of update(), but also updates activation_date, deactivation_date and level
341
      */
342
      */
343
+    public function delete()
344
+    {
345
+        $outcomeArray = json_decode(Input::get('outcomeArray'), true);
346
+// 		Log::info("delete".json_encode($outcomeArray));
347
+		$outcome = Outcome::withTrashed()
348
+			->where('id', '=', $outcomeArray['id'])
349
+			->firstOrFail();
350
+// 		Log::info("delete2".json_encode($outcome));
351
+		$outcome->forceDelete();
352
+// 		Log::info("sal".json_encode($sal));
353
+// 		if($sal)
354
+		{
355
+			Session::flash('status', 'success');
356
+			Session::flash('message', 'Learning Outcome deleted.');
357
+			
358
+		}
359
+
360
+	}
361
+    
342
     public function updateMore()
362
     public function updateMore()
343
     {
363
     {
344
         $outcomeArray = json_decode(Input::get('outcomeArray'), true);
364
         $outcomeArray = json_decode(Input::get('outcomeArray'), true);
345
         Session::flash('status', 'success');
365
         Session::flash('status', 'success');
346
         Session::flash('message', 'Learning Outcomes updated.');
366
         Session::flash('message', 'Learning Outcomes updated.');
367
+		Log::info("Ahora1".json_encode($outcomeArray));
347
 
368
 
348
         foreach ($outcomeArray as $outcomeObject) {
369
         foreach ($outcomeArray as $outcomeObject) {
349
 
370
 
352
                 array(
373
                 array(
353
                     'name' => $outcomeObject['name'],
374
                     'name' => $outcomeObject['name'],
354
                     'definition' => $outcomeObject['definition'],
375
                     'definition' => $outcomeObject['definition'],
355
-                    'expected_outcome' => $outcomeObject['expected_outcome']
376
+                    'expected_outcome' => $outcomeObject['expected_outcome'],
377
+                    'activation_date' => $outcomeObject['activation_date'],
378
+//                     'deactivation_date' => (isset($outcomeObject['deactivation_date'])?$outcomeObject['deactivation_date']:NULL),
379
+                    'level' => $outcomeObject['level'],
380
+//                     'new_outcome_id'=>$outcomeObject['new_outcome_id']
356
                     // TODO- validar los otros 3 valores
381
                     // TODO- validar los otros 3 valores
357
                 ),
382
                 ),
358
                 array(
383
                 array(
359
                     'name' => 'required',
384
                     'name' => 'required',
360
                     'definition' => 'required',
385
                     'definition' => 'required',
361
-                    'expected_outcome' => 'required|numeric'
386
+                    'expected_outcome' => 'required|numeric',
387
+                    'activation_date' => 'required|date',
388
+//                     'deactivation_date' => 'sometimes|required|date',
389
+                    'level' => 'required|numeric'
390
+//                     'new_outcome_id' => 'required|numeric'
362
                     // TODO- los requisitos de los otros 3 valores
391
                     // TODO- los requisitos de los otros 3 valores
363
                 )
392
                 )
364
             );
393
             );
372
                     $outcome->definition = $outcomeObject['definition'];
401
                     $outcome->definition = $outcomeObject['definition'];
373
                     $outcome->expected_outcome = $outcomeObject['expected_outcome'];
402
                     $outcome->expected_outcome = $outcomeObject['expected_outcome'];
374
                     $outcome->activation_date = $outcomeObject['activation_date'];
403
                     $outcome->activation_date = $outcomeObject['activation_date'];
375
-                    $outcome->deactivation_date = $outcomeObject['deactivation_date'];
404
+                    if($outcomeObject['deactivation_date']!="")
405
+                    {
406
+                    	$outcome->deactivation_date = $outcomeObject['deactivation_date'];
407
+	                    if(isset($outcomeObject['new_outcome_id']))$outcome->new_outcome_id = $outcomeObject['new_outcome_id'];
408
+                    }
409
+                    else 
410
+                    {
411
+                    	$outcome->deactivation_date = NULL;
412
+                    	$outcome->new_outcome_id=NULL;
413
+                    }
376
                     $outcome->level = $outcomeObject['level'];
414
                     $outcome->level = $outcomeObject['level'];
415
+		Log::info("Ahora2".json_encode($outcome));
416
+
377
                     $outcome->save();
417
                     $outcome->save();
378
 
418
 
379
                     // If delete is 1, and outcome isn't already trashed, delete
419
                     // If delete is 1, and outcome isn't already trashed, delete

+ 2
- 0
app/controllers/RubricsController.php Dosyayı Görüntüle

21
         // Select templates that belong to everyone or belong to the activity's course's school
21
         // Select templates that belong to everyone or belong to the activity's course's school
22
         $usable_templates = DB::table('templates')->join('template_criterion', 'template_criterion.template_id', '=', 'templates.id')
22
         $usable_templates = DB::table('templates')->join('template_criterion', 'template_criterion.template_id', '=', 'templates.id')
23
             ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'template_criterion.criterion_id')
23
             ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'template_criterion.criterion_id')
24
+            ->join('program_criterion_objective_outcome', 'criterion_objective_outcome.id', '=', 'program_criterion_objective_outcome.cri_obj_out_id')
24
             ->where('objective_id', '<>', 0)
25
             ->where('objective_id', '<>', 0)
26
+            ->where('program_criterion_objective_outcome.program_id', $activity->course->program->id)
25
             ->groupBy('template_id')
27
             ->groupBy('template_id')
26
             ->lists('template_id');
28
             ->lists('template_id');
27
         $templates = Template::where('is_visible', '=', 1)
29
         $templates = Template::where('is_visible', '=', 1)

+ 24
- 1
app/controllers/TemplatesController.php Dosyayı Görüntüle

11
 	{
11
 	{
12
 		return $this->show($template);
12
 		return $this->show($template);
13
 	}
13
 	}
14
+
14
 	public function ProfIndex()
15
 	public function ProfIndex()
15
 	{
16
 	{
16
 		$title = 'Rubric List';
17
 		$title = 'Rubric List';
192
 		return View::make('local.managers.shared.rubrics', compact('title', 'templates', 'outcomes', 'criteria', 'schools', 'programs'));
193
 		return View::make('local.managers.shared.rubrics', compact('title', 'templates', 'outcomes', 'criteria', 'schools', 'programs'));
193
 	}
194
 	}
194
 
195
 
196
+	public function newTemplateProf()
197
+	{
198
+		return $this->newTemplate_new();
199
+			
200
+	}
195
 	public function newTemplate_new()
201
 	public function newTemplate_new()
196
 	{
202
 	{
197
 		$title = "Rubric Builder";
203
 		$title = "Rubric Builder";
218
 				$programs = Auth::user()->programs()->get();
224
 				$programs = Auth::user()->programs()->get();
219
 				$school_id_user=Auth::user()->programs[0]->school->id;
225
 				$school_id_user=Auth::user()->programs[0]->school->id;
220
 			}
226
 			}
227
+			if ($role == 4) {
228
+				$programs = Auth::user()->programs()->get();
229
+				$school_id_user=Auth::user()->programs[0]->school->id;
230
+			}
231
+			Log::info(json_encode($school_id_user));
221
 			$program_ids = array();
232
 			$program_ids = array();
222
 			foreach ($programs as $program) {
233
 			foreach ($programs as $program) {
223
 				$program_ids[] = $program->id;
234
 				$program_ids[] = $program->id;
227
 				function ($q) use ($program_ids) {
238
 				function ($q) use ($program_ids) {
228
 					$q->whereIn('program_id', $program_ids);
239
 					$q->whereIn('program_id', $program_ids);
229
 				}
240
 				}
230
-			)->orderBy('name', 'ASC')->get();
241
+			)
242
+			->whereHas('getObjectivesAttribute', function ($q)
243
+				{
244
+					$q->where('objective_id','!=',0);
245
+				}
246
+			)
247
+			->orderBy('name', 'ASC')->get();
231
 			}
248
 			}
249
+// 			Log::info("aqui".(count($criteria)));
250
+// 			Log::info(json_encode(count($criteria)));
251
+			
232
 			$templates = Template::where('school_id', '=', $school_id_user)->orWhere('school_id', '=', NULL)
252
 			$templates = Template::where('school_id', '=', $school_id_user)->orWhere('school_id', '=', NULL)
233
 				->orderBy('name', 'ASC')->get();
253
 				->orderBy('name', 'ASC')->get();
234
 			$criteria_ids = array();
254
 			$criteria_ids = array();
255
+			
235
 			foreach ($criteria as $criterion) {
256
 			foreach ($criteria as $criterion) {
236
 				$criteria_ids[] = $criterion->id;
257
 				$criteria_ids[] = $criterion->id;
237
 			}
258
 			}
239
 				$q->whereNotIn('criterion_id', $criteria_ids);
260
 				$q->whereNotIn('criterion_id', $criteria_ids);
240
 			})
261
 			})
241
 				->orderBy('name', 'ASC')->get();
262
 				->orderBy('name', 'ASC')->get();
263
+				
264
+				
242
 			$templates_fuera_ids = array();
265
 			$templates_fuera_ids = array();
243
 			foreach ($templates_fuera as $tf) {
266
 			foreach ($templates_fuera as $tf) {
244
 				$templates_fuera_ids[] = $tf->id;
267
 				$templates_fuera_ids[] = $tf->id;

+ 22
- 0
app/controllers/ThreeYearPlanController.php Dosyayı Görüntüle

41
       return Redirect::to("three-years-plan/{$program_id}");
41
       return Redirect::to("three-years-plan/{$program_id}");
42
     }
42
     }
43
   }
43
   }
44
+    public function adminIndex()
45
+  {
46
+  	Log::info("Entre".json_encode($this));
47
+
48
+    $title = "Three Years Plans";
49
+    $programs = Program::get();
50
+
51
+    return View::make('local.managers.admins.show-typ-program', compact('title', 'programs'));
52
+  }
53
+
54
+    public function manageSemesterCycle()
55
+  {
56
+//   	Log::info("Entre".json_encode($this));
57
+
58
+    $title = "Semesters Cycles";
59
+//     $programs = Program::get();
60
+
61
+		return $this->adminIndex();
62
+//     return View::make('local.managers.admins.show-typ-program', compact('title', 'programs'));
63
+  }
64
+
65
+
44
   // load the Three year Plan page
66
   // load the Three year Plan page
45
   public function threeYearsReport($program_id)
67
   public function threeYearsReport($program_id)
46
   {
68
   {

+ 1
- 1
app/models/Criterion.php Dosyayı Görüntüle

29
 
29
 
30
 	public function getObjectivesAttribute()
30
 	public function getObjectivesAttribute()
31
 	{
31
 	{
32
-		return $this->belongsToMany('Objective');
32
+		return $this->belongsToMany('Objective','criterion_objective_outcome');
33
 	}
33
 	}
34
 
34
 
35
 	public function rubrics()
35
 	public function rubrics()

+ 4
- 4
app/routes.php Dosyayı Görüntüle

407
 
407
 
408
 
408
 
409
         //Plans routes
409
         //Plans routes
410
-        Route::post('showThreeYearPlans', 'ThreeYearPlanController@adminIndex');
411
-        Route::post('showAnnualPlans', 'AnnualPlansController@adminIndex');
410
+        Route::get('showThreeYearPlans', 'ThreeYearPlanController@adminIndex');
411
+        Route::get('showAnnualPlans', 'AnnualPlansController@adminIndex');
412
 
412
 
413
 
413
 
414
         //endhere
414
         //endhere
421
         Route::get('new-learning-outcomes', 'OutcomesController@newIndex');
421
         Route::get('new-learning-outcomes', 'OutcomesController@newIndex');
422
 
422
 
423
         Route::post('learning-outcomes/update', array('before' => 'csrf', 'uses' => 'OutcomesController@updateMore'));
423
         Route::post('learning-outcomes/update', array('before' => 'csrf', 'uses' => 'OutcomesController@updateMore'));
424
-        Route::post('learning-outcomes/update', array('before' => 'csrf', 'uses' => 'OutcomesController@update'));
424
+        Route::post('learning-outcomes/delete', array('before' => 'csrf', 'uses' => 'OutcomesController@delete'));
425
         Route::post('criteria/update', array('before' => 'csrf', 'uses' => 'CriteriaController@update'));
425
         Route::post('criteria/update', array('before' => 'csrf', 'uses' => 'CriteriaController@update'));
426
         Route::delete('critteria/delete', array('before' => 'csrf', 'uses' => 'CriteriaController@destroy'));
426
         Route::delete('critteria/delete', array('before' => 'csrf', 'uses' => 'CriteriaController@destroy'));
427
 
427
 
634
      */
634
      */
635
     Route::group(array('prefix' => 'professor', 'before' => 'prof'), function () {
635
     Route::group(array('prefix' => 'professor', 'before' => 'prof'), function () {
636
 
636
 
637
-
637
+        Route::get('rubrics', 'TemplatesController@newTemplateProf');
638
         Route::get('templateForProfessor', 'TemplatesController@ProfIndex');
638
         Route::get('templateForProfessor', 'TemplatesController@ProfIndex');
639
         Route::post('program', array('before' => 'csrf', 'uses' => 'ProfessorsController@program'));
639
         Route::post('program', array('before' => 'csrf', 'uses' => 'ProfessorsController@program'));
640
         Route::get('activities/{activity_id}/rubrics', 'RubricsController@newRubric');
640
         Route::get('activities/{activity_id}/rubrics', 'RubricsController@newRubric');

+ 16
- 0
app/views/global/agreement.blade.php Dosyayı Görüntüle

18
 <li>	you act within the framework of its role as coordinator of the learning assessment  and/or professor and
18
 <li>	you act within the framework of its role as coordinator of the learning assessment  and/or professor and
19
 <li>	you are committed to safeguarding the principle of privacy and confidentiality of the student.
19
 <li>	you are committed to safeguarding the principle of privacy and confidentiality of the student.
20
 </ul>
20
 </ul>
21
+<hr>
22
+<p>
23
+La Ley federal de Derechos Educativos y Privacidad Familiar, 1974 (FERPA) establece los parámetros para la protección a la confidencialidad de la información académica de los estudiantes, reconociéndoles el derecho a inspeccionar y revisar sus expedientes académicos. En 2012 se aprobó una enmienda que amplía las condiciones de acceso a cualquier tercero designado, a la información privada de identificación personal y a la que se encuentra en los registros educativos, incluyendo las calificaciones, para propósito de evaluar el progreso educativo y en consecuencia mejorar, entre otras cosas, la efectividad de dicho programa educativo.
24
+</p><p>
25
+La evaluación del aprendizaje estudiantil es una actividad mandatada por la normativa institucional y una práctica atada al proceso de enseñanza que busca medir la efectividad y propiciar las transformaciones dirigidas a la excelencia. OLAS, plataforma en línea creada en el Recinto, recopila información sobre el desempeño de estudiantes a través de rúbricas de avalúo desarrolladas y utilizadas por los usuarios (coordinadores de avalúo de la DIIA y de las facultades; y profesores) que recogen y reciben datos.
26
+</p><p>
27
+FERPA define representante autorizado a cualquiera entidad o individuo designado por un estado o autoridad local, que lleva a cabo cualquier auditoría o evaluación o cualquier actividad de cumplimiento en conexión con requerimientos legales federales, que se relacionan con los programas. Puede ser un oficial o funcionario universitario que tenga interés educativo legítimo como parte de sus responsabilidades profesionales-administrativas, supervisión académica, de investigación o de apoyo-bajo las tareas que desempeña.
28
+</p><p>
29
+La DIIA durante el proceso de recibir, analizar y divulgar la información contenida en los informes de avalúo del aprendizaje generados por las facultades, utiliza métodos razonables, como monitoreo continuo en la plataforma en línea, acceso controlado al programado, entre otras medidas, para asegurar que se mantiene protegida la identidad del estudiante.
30
+</p><p>
31
+Su ingreso a esta plataforma y la lectura de la información relacionada al manejo del expediente del estudiante, arriba expuesta, implica que:
32
+</p><ul>
33
+<li>	concuerda con que los datos ubicados y extraídos de la plataforma tienen un propósito educativo
34
+<li>	actúa en el marco de su rol de coordinador de avalúo del aprendizaje y/o profesor y 
35
+<li>	se compromete a resguardar el principio de privacidad y confidencialidad que le asiste al estudiante.
36
+</ul>
21
 
37
 
22
             {{ Form::open(['action' => 'AgreementController@agree', 'class' => 'form-horizontal']) }}
38
             {{ Form::open(['action' => 'AgreementController@agree', 'class' => 'form-horizontal']) }}
23
             <div class="form-group">
39
             <div class="form-group">

+ 2
- 2
app/views/local/managers/admins/_new_navigation.blade.php Dosyayı Görüntüle

4
       {{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Online Learning Assessment System · Program Coordinator', [], ['class' => 'navbar-brand']) }}
4
       {{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Online Learning Assessment System · Program Coordinator', [], ['class' => 'navbar-brand']) }}
5
     </div>-->
5
     </div>-->
6
         <ul class="nav navbar-nav navbar-right ml-auto">
6
         <ul class="nav navbar-nav navbar-right ml-auto">
7
-            <li>{{ HTML::linkAction('AdministratorsController@overview', 'Overview') }}</li>
8
-            <li>{{ HTML::linkAction('AdministratorsController@overview2', 'Overview2') }}</li>
7
+       <!--      <li>{{ HTML::linkAction('AdministratorsController@overview', 'Overview') }}</li>-->
8
+            <li>{{ HTML::linkAction('AdministratorsController@overview2', 'Overview') }}</li>
9
 
9
 
10
             <li class="dropdown">
10
             <li class="dropdown">
11
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
11
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"

+ 2
- 2
app/views/local/managers/admins/appraisal-program.blade.php Dosyayı Görüntüle

16
             <p>Click the links below to see annual appraisal plans for a specific program with assessed courses:</p>
16
             <p>Click the links below to see annual appraisal plans for a specific program with assessed courses:</p>
17
 
17
 
18
 
18
 
19
-            <ol id="table-of-contents" class="upper-roman">
19
+            <ol id="table-of-contents">
20
                 @foreach ($programs as $program)
20
                 @foreach ($programs as $program)
21
                     <li>
21
                     <li>
22
-                        <a href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">
22
+                        <a href="{{ URL::action('AnnualPlansController@annualPlansShow', ['plan',$program->id]) }}">
23
                             {{ $program->name }}
23
                             {{ $program->name }}
24
                         </a>
24
                         </a>
25
                     </li>
25
                     </li>

+ 64
- 26
app/views/local/managers/admins/learning-outcomes.blade.php Dosyayı Görüntüle

16
         <div class="col-md-12">
16
         <div class="col-md-12">
17
             <p>Click on the values you want to change. Invalid values will be rejected automatically. To save your changes,
17
             <p>Click on the values you want to change. Invalid values will be rejected automatically. To save your changes,
18
                 click the 'Save' button at the bottom of the page.</p>
18
                 click the 'Save' button at the bottom of the page.</p>
19
+                
19
             <table class="table table-striped table-condensed editable-table" id='outcomes_table'>
20
             <table class="table table-striped table-condensed editable-table" id='outcomes_table'>
20
                 <thead>
21
                 <thead>
21
                     <tr class="center-text">
22
                     <tr class="center-text">
23
+                        <th class="col-md-1">ID</th>
22
                         <th class="col-md-4">Learning Outcome</th>
24
                         <th class="col-md-4">Learning Outcome</th>
23
-                        <th class="col-md-7">Definition</th>
25
+                        <th class="col-md-6">Definition</th>
24
                         <th class="col-md-1">Expected Value</th>
26
                         <th class="col-md-1">Expected Value</th>
25
                         <th class="col-md-2">Activation date</th>
27
                         <th class="col-md-2">Activation date</th>
26
                         <th class="col-md-2">Deactivation date</th>
28
                         <th class="col-md-2">Deactivation date</th>
27
-                        <th class="col-md-1">Level</th>
29
+                        <th class="col-md-1">Level<br><font size="-5">1:undergrad, 2:grad, 3:both</font></th>
30
+                        <th class="col-md-1">Equivalent to</th>
28
 
31
 
29
                 </thead>
32
                 </thead>
30
                 <tbody>
33
                 <tbody>
31
                     @foreach ($outcomes as $outcome)
34
                     @foreach ($outcomes as $outcome)
32
                         {{-- @foreach ($semesters as $semester) --}}
35
                         {{-- @foreach ($semesters as $semester) --}}
33
                         {{-- display an outcome only if it is part of a currently selected semester --}}
36
                         {{-- display an outcome only if it is part of a currently selected semester --}}
34
-                        @if ($outcome->deactivation_date == '0000-00-00' or $outcome->deactivation_date == '';
35
-                        // and ($outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end))
37
+                        @if ($outcome->deactivation_date == '0000-00-00' or $outcome->deactivation_date == '')
38
+                         {{-- and ($outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end)) --}}
36
                             <tr data-id="{{ $outcome->id }}">
39
                             <tr data-id="{{ $outcome->id }}">
40
+                                <td class="id col-md-1">{{ $outcome->id }}</td>
37
                                 <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
41
                                 <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
38
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">
39
-                                    {{ $outcome->definition }}</td>
40
-                                <td contenteditable="true" class="expected-outcome col-md-1">
41
-                                    {{ $outcome->expected_outcome }}</td>
42
-                                <td contenteditable="true" class="activation-date col-md-2">
43
-                                    {{ $outcome->activation_date }}</td>
44
-                                <td contenteditable="true" class="deactivation-date col-md-2">
45
-                                    {{ $outcome->deactivation_date }}</td>
42
+                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">{{ $outcome->definition }}</td>
43
+                                <td contenteditable="true" class="expected-outcome col-md-1">{{ $outcome->expected_outcome }}</td>
44
+                                <td contenteditable="true" class="activation-date col-md-2">{{ $outcome->activation_date }}</td>
45
+                                <td contenteditable="true" class="deactivation-date col-md-2">{{ $outcome->deactivation_date }}</td>
46
                                 <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
46
                                 <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
47
-                            </tr>
47
+                                <td></td>
48
+                                <td><button class="btn btn-sm btn-primary center-block del" id='del{{ $outcome->id }}'>Del</button></td>
49
+                           </tr>
48
                         @endif
50
                         @endif
49
                         {{-- @endforeach --}}
51
                         {{-- @endforeach --}}
50
                     @endforeach
52
                     @endforeach
51
                     @foreach ($outcomes as $outcome)
53
                     @foreach ($outcomes as $outcome)
52
                         {{-- @foreach ($semesters as $semester) --}}
54
                         {{-- @foreach ($semesters as $semester) --}}
53
                         {{-- display an outcome only if it is part of a currently selected semester --}}
55
                         {{-- display an outcome only if it is part of a currently selected semester --}}
54
-                        @if ($outcome->deactivation_date != '0000-00-00' and $outcome->deactivation_date != '';
55
-                        // and ($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != ''))
56
+                        @if ($outcome->deactivation_date != '0000-00-00' and $outcome->deactivation_date != '')
57
+                         {{--  and ($outcome->deactivation_date != '0000-00-00') and ($outcome->deactivation_date != '')) --}}
56
                             <tr data-id="{{ $outcome->id }}">
58
                             <tr data-id="{{ $outcome->id }}">
59
+                                <td class="id col-md-1">{{ $outcome->id }}</td>
57
                                 <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
60
                                 <td contenteditable="true" class="name col-md-4">{{ $outcome->name }}</td>
58
-                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">
59
-                                    {{ $outcome->definition }}</td>
60
-                                <td contenteditable="true" class="expected-outcome col-md-1">
61
-                                    {{ $outcome->expected_outcome }}</td>
62
-                                <td contenteditable="true" class="activation-date col-md-2">
63
-                                    {{ $outcome->activation_date }}</td>
64
-                                <td contenteditable="true" class="deactivation-date col-md-2">
65
-                                    {{ $outcome->deactivation_date }}</td>
61
+                                <td contenteditable="true" data-type="textarea" class="definition col-md-6">{{ $outcome->definition }}</td>
62
+                                <td contenteditable="true" class="expected-outcome col-md-1">{{ $outcome->expected_outcome }}</td>
63
+                                <td contenteditable="true" class="activation-date col-md-2">{{ $outcome->activation_date }}</td>
64
+                                <td contenteditable="true" class="deactivation-date col-md-2">{{ $outcome->deactivation_date }}</td>
66
                                 <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
65
                                 <td contenteditable="true" class="level col-md-1">{{ $outcome->level }}</td>
66
+                                <td contenteditable="true" class="new_outcome_id col-md-1">{{ $outcome->new_outcome_id }}</td>
67
+                                <td><button class="btn btn-sm btn-primary center-block del" id='del{{ $outcome->id }}'>Del</button></td>
67
                             </tr>
68
                             </tr>
68
                         @endif
69
                         @endif
69
                         {{-- @endforeach --}}
70
                         {{-- @endforeach --}}
112
 @stop
113
 @stop
113
 
114
 
114
 @section('javascript')
115
 @section('javascript')
116
+@foreach ($outcomes as $outcome)
117
+     $('#del{{ $outcome->id }}').on('click', function(e)
118
+    {
119
+    	e.preventDefault();
120
+    	//outcomeObject.id= $(this).data('id');
121
+    	if(confirm("Are you sure you want to delete the outcome with id {{ $outcome->id }}"))
122
+    	{
123
+    		console.log("si");
124
+			var outcomeObject = new Object();
125
+
126
+			outcomeObject.id= {{ $outcome->id }};
127
+	    	outcomeObject.delete=1;
128
+	    	console.log("algo"+JSON.stringify({{ $outcome->id }}));
129
+	    	console.log("algo"+JSON.stringify(outcomeObject));
130
+			var clone = jQuery.extend({}, outcomeObject);
131
+		//	outcomeArray.push(clone);
132
+	    //	console.log("algo"+JSON.stringify(outcomeArray));
133
+			$.post(
134
+			"{{ URL::action('OutcomesController@delete') }}",
135
+			{ outcomeArray: JSON.stringify(outcomeObject)},
136
+			function(data)
137
+			{
138
+				location.reload();
139
+			}
140
+			);
141
+			
142
+   		}
143
+    	else 
144
+    	{
145
+	    	console.log("no");
146
+//			outcomeObject.delete=0;
147
+		}
148
+	});
149
+@endforeach
115
 
150
 
116
     $('#new_outcome_form').hide();
151
     $('#new_outcome_form').hide();
117
 
152
 
129
     $('#show').show();
164
     $('#show').show();
130
     });
165
     });
131
 
166
 
167
+	
132
     $('#save').on('click', function(e)
168
     $('#save').on('click', function(e)
133
     {
169
     {
134
     e.preventDefault();
170
     e.preventDefault();
147
     outcomeObject.activation_date= $(this).children('.activation-date').text();
183
     outcomeObject.activation_date= $(this).children('.activation-date').text();
148
     outcomeObject.deactivation_date= $(this).children('.deactivation-date').text();
184
     outcomeObject.deactivation_date= $(this).children('.deactivation-date').text();
149
     outcomeObject.level= $(this).children('.level').text();
185
     outcomeObject.level= $(this).children('.level').text();
186
+    if($(this).children('.new_outcome_id').text()!="")outcomeObject.new_outcome_id= $(this).children('.new_outcome_id').text();
150
 
187
 
151
     if($(this).find('.glyphicon-eye-close').length>0)
188
     if($(this).find('.glyphicon-eye-close').length>0)
152
     {
189
     {
153
-    outcomeObject.delete=1;
190
+    	outcomeObject.delete=1;
154
     }
191
     }
155
 
192
 
156
     else
193
     else
157
-    outcomeObject.delete=0;
158
-
194
+   	{
195
+	   	outcomeObject.delete=0;
196
+	}
159
     var clone = jQuery.extend({}, outcomeObject);
197
     var clone = jQuery.extend({}, outcomeObject);
160
     outcomeArray.push(clone);
198
     outcomeArray.push(clone);
161
     });
199
     });

+ 30
- 0
app/views/local/managers/admins/show-typ-program.blade.php Dosyayı Görüntüle

1
+@extends('layouts.master')
2
+
3
+@section('navigation')
4
+    @if (Auth::user()->role == 1)
5
+        @include('local.managers.admins._new_navigation')
6
+    @elseif(Auth::user()->role == 2)
7
+        @include('local.managers.sCoords._new_navigation')
8
+    @elseif(Auth::user()->role == 3)
9
+        @include('local.managers.pCoords._new_navigation')
10
+    @endif
11
+@stop
12
+
13
+@section('main')
14
+    <div class="row">
15
+        <div class="col-md-12">
16
+            <p>Click the links below to see annual appraisal plans for a specific program with assessed courses:</p>
17
+
18
+
19
+            <ol id="table-of-contents">
20
+                @foreach ($programs as $program)
21
+                    <li>
22
+                        <a href="{{ URL::action('ThreeYearPlanController@showPDFs', [$program->id]) }}">
23
+                            {{ $program->name }}
24
+                        </a>
25
+                    </li>
26
+                @endforeach
27
+            </ol>
28
+        </div>
29
+    </div>
30
+@stop

+ 18
- 25
app/views/local/managers/pCoords/_new_navigation.blade.php Dosyayı Görüntüle

112
             </li>
112
             </li>
113
 
113
 
114
 
114
 
115
+            <li class="dropdown">
116
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
117
+                    Report<span class="caret"></span></a>
118
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
115
 
119
 
120
+                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
121
+                    @foreach (Auth::user()->programs as $program)
122
+                        <li><a
123
+                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
124
+                        </li>
125
+                    @endforeach
126
+                    <h6 class="dropdown-header">View Annual Report from:</h6>
127
+                    @foreach (Auth::user()->programs as $program)
128
+                        <li><a
129
+                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
130
+                        </li>
131
+                    @endforeach
132
+                </ul>
133
+            </li>
116
 
134
 
117
 
135
 
118
             @if (count(Auth::user()->courses))
136
             @if (count(Auth::user()->courses))
137
 
155
 
138
 
156
 
139
 
157
 
140
-
141
-            <li class="dropdown">
142
-                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
143
-                    Report<span class="caret"></span></a>
144
-                <ul class="dropdown-menu dropdown-menu-left" role="menu">
145
-
146
-                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
147
-                    @foreach (Auth::user()->programs as $program)
148
-                        <li><a
149
-                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
150
-                        </li>
151
-                    @endforeach
152
-                    <h6 class="dropdown-header">View Annual Report from:</h6>
153
-                    @foreach (Auth::user()->programs as $program)
154
-                        <li><a
155
-                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
156
-                        </li>
157
-                    @endforeach
158
-                </ul>
159
-            </li>
160
-
161
-
162
-
163
-
164
-
165
             <li class="dropdown">
158
             <li class="dropdown">
166
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
159
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
167
                         class="caret"></span></a>
160
                         class="caret"></span></a>

+ 18
- 25
app/views/local/managers/sCoords/_new_navigation.blade.php Dosyayı Görüntüle

100
             <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Results') }}</li>
100
             <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Results') }}</li>
101
 
101
 
102
 
102
 
103
+            <li class="dropdown">
104
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
105
+                    Report<span class="caret"></span></a>
106
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
103
 
107
 
108
+                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
109
+                    @foreach (Auth::user()->school->programs as $program)
110
+                        <li><a
111
+                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
112
+                        </li>
113
+                    @endforeach
114
+                    <h6 class="dropdown-header">View Annual Report from:</h6>
115
+                    @foreach (Auth::user()->programs as $program)
116
+                        <li><a
117
+                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
118
+                        </li>
119
+                    @endforeach
120
+                </ul>
121
+            </li>
104
 
122
 
105
 
123
 
106
             @if (count(Auth::user()->courses))
124
             @if (count(Auth::user()->courses))
125
 
143
 
126
 
144
 
127
 
145
 
128
-
129
-            <li class="dropdown">
130
-                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
131
-                    Report<span class="caret"></span></a>
132
-                <ul class="dropdown-menu dropdown-menu-left" role="menu">
133
-
134
-                    <h6 class='dropdown-header'>Create/Edit Annual Report for:</h6>
135
-                    @foreach (Auth::user()->school->programs as $program)
136
-                        <li><a
137
-                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
138
-                        </li>
139
-                    @endforeach
140
-                    <h6 class="dropdown-header">View Annual Report from:</h6>
141
-                    @foreach (Auth::user()->programs as $program)
142
-                        <li><a
143
-                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
144
-                        </li>
145
-                    @endforeach
146
-                </ul>
147
-            </li>
148
-
149
-
150
-
151
-
152
-
153
             <li class="dropdown">
146
             <li class="dropdown">
154
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
147
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
155
                         class="caret"></span></a>
148
                         class="caret"></span></a>

+ 2
- 0
app/views/local/managers/shared/rubrics_new.blade.php Dosyayı Görüntüle

7
             @include('local.managers.sCoords._new_navigation')
7
             @include('local.managers.sCoords._new_navigation')
8
         @elseif(Auth::user()->role==3)
8
         @elseif(Auth::user()->role==3)
9
             @include('local.managers.pCoords._new_navigation')
9
             @include('local.managers.pCoords._new_navigation')
10
+        @elseif(Auth::user()->role==4)
11
+            @include('local.professors._navigation')
10
         @endif
12
         @endif
11
 @stop
13
 @stop
12
 
14
 

+ 9
- 1
app/views/local/professors/_navigation.blade.php Dosyayı Görüntüle

35
                 <li> {{ HTML::linkAction('ProfessorsController@program', 'Program') }}</li>
35
                 <li> {{ HTML::linkAction('ProfessorsController@program', 'Program') }}</li>
36
             @endif
36
             @endif
37
             <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'Results') }}</li>
37
             <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'Results') }}</li>
38
-            <li>{{ HTML::linkAction('TemplatesController@ProfIndex', 'Rubric List') }}</li>
38
+                      <li class="dropdown">
39
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
40
+                    aria-expanded="false">Rubrics<span class="caret"></span></a>
41
+                <ul class="dropdown-menu dropdown-menu-left" role="menu">
42
+                    <li>{{ HTML::linkAction('TemplatesController@newTemplateProf', 'Create/Edit Rubrics') }}</li>
43
+                    <li>{{ HTML::linkAction('TemplatesController@ProfIndex', 'View Rubric List') }}</li>
44
+                </ul>
45
+            </li>
39
             <li class="dropdown">
46
             <li class="dropdown">
40
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
47
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
41
                     aria-expanded="false">Help<span class="caret"></span></a>
48
                     aria-expanded="false">Help<span class="caret"></span></a>
48
                     </li>
55
                     </li>
49
                 </ul>
56
                 </ul>
50
             </li>
57
             </li>
58
+ 
51
             <li class="dropdown">
59
             <li class="dropdown">
52
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
60
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
53
                     aria-expanded="false">Account<span class="caret"></span></a>
61
                     aria-expanded="false">Account<span class="caret"></span></a>