Nav apraksta

master-1.blade.php 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="csrf-token" content="<?= csrf_token() ?>">
  6. <link rel="shortcut icon" href="{{ asset('favicon.ico') }}">
  7. <!-- Bootstrap CSS-->
  8. {{ HTML::style('vendor/bootstrap/css/bootstrap.min.css') }}
  9. <!-- X-Editable -->
  10. {{ HTML::style('vendor/xeditable/bootstrap-editable.css') }}
  11. <!-- CSS -->
  12. {{ HTML::style('css/custom.css') }}
  13. {{ HTML::style('css/sticky-footer.css') }}
  14. @yield('css')
  15. <script src="{{ asset('vendor/modernizr-custom.min.js') }}"></script>
  16. <!-- jQuery -->
  17. <script src="{{ asset('vendor/jquery.min.js') }}"></script>
  18. <!-- Bootstrap js -->
  19. <script src="{{ asset('vendor/bootstrap/js/bootstrap.min.js') }}"></script>
  20. <title>Online Learning Assessment System</title>
  21. </head>
  22. <body>
  23. <!-- Modal to change term -->
  24. <div class="modal fade" id="changeTermModal" tabindex="-1" role="dialog" aria-labelledby="changeTermModalLabel" aria-hidden="true">
  25. <div class="modal-dialog modal-sm">
  26. <div class="modal-content">
  27. <div class="modal-header">
  28. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  29. <h4 class="modal-title" id="changeTermModalLabel">Change Semesters</h4>
  30. </div>
  31. <div class="modal-body">
  32. <p>Select one or more semesters to view their data. These settings will be applied site-wide.</p>
  33. {{ Form::open(array('action' => array('SemestersController@filterSemesters'))) }}
  34. @foreach (Semester::where('is_visible', 1)->get() as $semester)
  35. <div class="checkbox">
  36. <label>
  37. <input name="semesters_ids[]" value="{{ $semester->id }}" type="checkbox">{{ $semester->name }} ({{ $semester->code }})
  38. </label>
  39. </div>
  40. @endforeach
  41. </div>
  42. <div class="modal-footer">
  43. <div class="btn-group" role="group">
  44. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  45. <button type="submit" class="btn btn-default btn-primary">Submit</button>
  46. </div>
  47. {{ Form::close() }}
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <header class="header hidden-print">
  53. <div style="background-color: #e70033; background-image:url({{ URL::asset('images/header-olas-back.png')}}); background-repeat:no-repeat; min-height:100px; position: relative; width:100%; min-width:1560px">
  54. <div class="gotoright">
  55. <h1>Online Learning Assessment System -
  56. @if(Auth::user()->role == '1')
  57. <strong>Administrator</strong>
  58. @elseif (Auth::user()->role == '2')
  59. <strong>School Coordinator</strong>
  60. @elseif (Auth::user()->role == '3')
  61. <strong>Program Coordinator</strong>
  62. @elseif (Auth::user()->role == '4')
  63. <strong>Professor</h3></strong>
  64. @endif
  65. </h1>
  66. </div>
  67. </div>
  68. @yield('navigation')
  69. <div class="semesterbar">
  70. <p><strong>Viewing:</strong> @foreach (Session::get('semesters_info') as $semester_info)
  71. <strong>&#183;</strong> {{ $semester_info }}
  72. @endforeach
  73. <a href="#" data-toggle="modal" data-target="#changeTermModal"> <strong>Change</strong></a></p>
  74. </div>
  75. </header>
  76. <main class="main">
  77. <div class="container">
  78. <div class="row">
  79. <div class="col-md-12"><h2> {{ $title }} </h2></div>
  80. </div>
  81. @if(Session::get('status'))
  82. <div class="row">
  83. <div class="col-md-12">
  84. <div class="alert alert-{{ Session::get('status') }}" role="alert">
  85. {{ Session::get('message') }}
  86. </div>
  87. </div>
  88. </div>
  89. @endif
  90. <div id="js-error-row" class="row">
  91. <div class="col-md-12">
  92. <div class="alert alert-danger" role="alert">
  93. <span id="error-message">
  94. </span></span>
  95. </div>
  96. </div>
  97. </div>
  98. @yield('main')
  99. </div>
  100. </main>
  101. @include('layouts/footer')
  102. <!-- File specific scripts -->
  103. @yield('included-js')
  104. <!-- General Scripts -->
  105. <script type="text/javascript">
  106. $(document).ready(function() {
  107. $('#js-error-row').hide();
  108. // Always scroll to the top
  109. $(this).scrollTop(0);
  110. $('html').animate({scrollTop:0}, 1);
  111. $('body').animate({scrollTop:0}, 1);
  112. // Yield to js
  113. @yield('javascript')
  114. // Turn on tooltips
  115. $('[data-toggle="tooltip"]').tooltip();
  116. });
  117. </script>
  118. <!-- AJAX setup for CSRF protection -->
  119. <script src="{{ asset('js/ajaxSetup.js') }}"></script>
  120. <script type="text/javascript">
  121. $('.panel-heading').css('cursor', 'pointer');
  122. </script>
  123. <!-- HighCharts -->
  124. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  125. </body>
  126. </html>