Browse Source

resolver profes vean rubricas desde list

parent
commit
3c191f44e8

+ 5
- 0
app/controllers/TemplatesController.php View File

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

+ 1
- 0
app/routes.php View File

656
         Route::get('professor-assessment-reports', 'OutcomesController@professorAssessmentReport');
656
         Route::get('professor-assessment-reports', 'OutcomesController@professorAssessmentReport');
657
 
657
 
658
         Route::get('general-studies-overview', 'ProfessorsController@generalStudiesOverview');
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 View File

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
 

+ 1
- 1
app/views/local/managers/shared/rubric_list.blade.php View File

36
             <tbody>
36
             <tbody>
37
                 @foreach ($templates as $template)
37
                 @foreach ($templates as $template)
38
                     <tr>
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
                         <td>
40
                         <td>
41
                             @if ($template->school)
41
                             @if ($template->school)
42
                                 {{ $template->school->name }}
42
                                 {{ $template->school->name }}