No Description

rubric_list.blade.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if ($role == 1)
  4. @include('local.managers.admins._new_navigation')
  5. @elseif($role == 2)
  6. @include('local.managers.sCoords._new_navigation')
  7. @elseif($role == 3)
  8. @include('local.managers.pCoords._new_navigation')
  9. @elseif($role == 4)
  10. @include('local.professors._navigation')
  11. @endif
  12. @stop
  13. @section('main')
  14. <div class="row">
  15. <table class="table table-striped datatable">
  16. <thead>
  17. <tr>
  18. <th>Name</th>
  19. <th>School</th>
  20. </tr>
  21. </thead>
  22. <tfoot>
  23. <tr class="column-search">
  24. <td><input class="column-search-bar form-control" type="text" placeholder="Buscar"
  25. aria-label="search rubric name" /></td>
  26. <td><select class="column-search-select form-control" aria-label="select associated school">
  27. <option value=""></option>
  28. </select></td>
  29. </tr>
  30. </tfoot>
  31. <tbody>
  32. @foreach ($templates as $template)
  33. <tr>
  34. @if($role==4)
  35. <td>{{ HTML::linkAction('TemplatesController@profShow', $template->name, [$template->id]) }}</td>
  36. @else
  37. <td>{{ HTML::linkAction('TemplatesController@show', $template->name, [$template->id]) }}</td>
  38. @endif
  39. <td>
  40. @if ($template->school)
  41. {{ $template->school->name }}
  42. @else
  43. All (global)
  44. @endif
  45. </td>
  46. </tr>
  47. @endforeach
  48. </tbody>
  49. </table>
  50. </div>
  51. @stop
  52. @section('included-js')
  53. <!-- Datatables -->
  54. @include('global._datatables_js')
  55. @stop