Bez popisu

new-course-show.blade.php 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if(Auth::user()->role==1)
  4. @include('local.managers.admins._navigation')
  5. @elseif(Auth::user()->role==2)
  6. @include('local.managers.sCoords._navigation')
  7. @elseif(Auth::user()->role==3)
  8. @include('local.managers.pCoords._navigation')
  9. @else
  10. @include('local.professors._navigation')
  11. @endif
  12. @stop
  13. @section('main')
  14. <div class="row">
  15. <div class="col-md-12">
  16. <p>{{$course->name}}</p>
  17. </div>
  18. </div>
  19. <div class="row">
  20. <div class="col-md-12">
  21. <h3>Activities</h3>
  22. @if(!$activities->isEmpty())
  23. @if ($is_active_semester)
  24. <a href="{{ URL::action('ActivitiesController@newCreate', ['course_id' => $course->id]) }}" class="btn btn-sm btn-default pull-right">New Activity</a>
  25. @endif
  26. <table class="table table-striped table-condensed">
  27. <thead>
  28. <tr>
  29. <th>Name</th>
  30. <th>Date</th>
  31. <th>Updated</th>
  32. <th>Assessed</th>
  33. <th>Published</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. @foreach ($activities as $activity)
  38. <tr>
  39. <td>{{ link_to_action('ActivitiesController@show', $activity->name, $parameters = array('id'=>$activity->id)) }}</td>
  40. <td>{{ date('M d, Y', strtotime($activity->date)) }}</td>
  41. <td>{{ date('M d, Y', strtotime($activity->updated_at)) }}</td>
  42. <td>
  43. @if($activity->outcomes_attempted!=NULL)
  44. <span class="glyphicon glyphicon-ok"></span>
  45. @endif
  46. </td>
  47. <td>
  48. @if($activity->outcomes_attempted!=NULL && !$activity->draft && !$activity->diagnostic)
  49. <span class="glyphicon glyphicon-ok"></span>
  50. @endif
  51. </td>
  52. </tr>
  53. @endforeach
  54. @if (!$is_active_semester)
  55. <tr>
  56. <td colspan="3"><div class="alert alert-info">The semester for this course is inactive. You cannot create any more activities.</div></td>
  57. </tr>
  58. @endif
  59. </tbody>
  60. </table>
  61. <p>Unplublished activity results are <strong>not considered</strong> in the graph above.</p>
  62. @else
  63. <div class="alert alert-info">
  64. @if($is_active_semester)
  65. <p>
  66. No activities.
  67. <a data-toggle="modal" data-target="#newActivityModal">
  68. Create one.
  69. </a>
  70. </p>
  71. @else
  72. <p>The semester for this course is inactive. You cannot create any activities.</p>
  73. @endif
  74. </div>
  75. @endif
  76. </div>
  77. </div>
  78. @stop
  79. @section('included-js')
  80. <!-- HighCharts -->
  81. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  82. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  83. @stop
  84. @section('javascript')
  85. @stop