Ver código fonte

resolver profes vean rubricas desde list

Carlos J Corrada Bravo 2 anos atrás
pai
commit
3c191f44e8

+ 5
- 0
app/controllers/TemplatesController.php Ver arquivo

@@ -6,6 +6,11 @@ class TemplatesController extends \BaseController
6 6
 	/**
7 7
 	 * List all templates, grouped by program
8 8
 	 */
9
+
10
+	public function profShow(Template $template)
11
+	{
12
+		return $this->show($template);
13
+	}
9 14
 	public function ProfIndex()
10 15
 	{
11 16
 		$title = 'Rubric List';

+ 1
- 0
app/routes.php Ver arquivo

@@ -656,5 +656,6 @@ Route::group(array('before' => 'auth|has_access'), function () {
656 656
         Route::get('professor-assessment-reports', 'OutcomesController@professorAssessmentReport');
657 657
 
658 658
         Route::get('general-studies-overview', 'ProfessorsController@generalStudiesOverview');
659
+        Route::get('template/{template}', 'TemplatesController@profShow');
659 660
     });
660 661
 });

+ 2
- 0
app/views/local/managers/admins/view_template.blade.php Ver arquivo

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

+ 1
- 1
app/views/local/managers/shared/rubric_list.blade.php Ver arquivo

@@ -36,7 +36,7 @@
36 36
             <tbody>
37 37
                 @foreach ($templates as $template)
38 38
                     <tr>
39
-                        <td>{{ HTML::linkAction('TemplatesController@show', $template->name, [$template->id]) }}</td>
39
+                        <td>{{ HTML::linkAction('TemplatesController@profShow', $template->name, [$template->id]) }}</td>
40 40
                         <td>
41 41
                             @if ($template->school)
42 42
                                 {{ $template->school->name }}