No Description

programs.blade.php 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if($role==1)
  4. @include('local.managers.admins._navigation')
  5. @elseif($role==2)
  6. @include('local.managers.sCoords._navigation')
  7. @elseif($role==3)
  8. @include('local.managers.pCoords._navigation')
  9. @endif
  10. @stop
  11. @section('main')
  12. <button class="btn btn-lg btn-primary pull-right" id='show'>Custom Report</button>
  13. <div class="" id='make_report'>
  14. <hr>
  15. <b><h3>Report Options</h3><br></b>
  16. {{-- For for adding a new outcome --}}
  17. {{ Form::open(array('action' => 'ProgramsController@showReport')) }}
  18. <div class="row">
  19. <div class="col-md-1">
  20. </div>
  21. <div class="col-md-5">
  22. {{ Form::label('name', 'Select which semesters to report on') }}<br>
  23. @foreach ($semesters as $semester)
  24. @if ($semester->is_visible)
  25. <div class="form-group">
  26. <input type="checkbox" id="semester{{$semester->id}}" name="semester{{$semester->id}}" value="semester{{$semester->id}}">
  27. <label for="semester{{$semester->id}}">{{$semester->name}}({{$semester->code}})</label>
  28. {{-- {{ Form::checkbox('semester'.$semester->id, $semester->name, array('class' => 'form-control', 'id'=>$semester->id)) }}
  29. {{ Form::label('semester'.$semester->id, $semester->name.'('.$semester->code.')') }}<br> --}}
  30. </div>
  31. @endif
  32. @endforeach
  33. </div>
  34. <div class="col-md-6">
  35. {{ Form::label('divulgacion', 'Select metodos de divulgacion') }}<br>
  36. <div class="form-group">
  37. <input type="checkbox" id="profesores" name="profesores" value="Profesores (pares)">
  38. <label for="profesores">Profesores (pares)</label>
  39. </div>
  40. <div class="form-group">
  41. <input type="checkbox" id="comiteDepartamental" name="comiteDepartamental" value="Comites de curriculo departamental">
  42. <label for="comiteDepartamental">Comites de curriculo departamental</label>
  43. </div>
  44. <div class="form-group">
  45. <input type="checkbox" id="comiteFacultadEscuela" name="comiteFacultadEscuela" value="Comites de curriculo de Facultad o Escuela">
  46. <label for="comiteFacultadEscuela">Comites de curriculo de Facultad o Escuela</label>
  47. </div>
  48. <div class="form-group">
  49. <input type="checkbox" id="pleno" name="pleno" value="Pleno de la Facultad">
  50. <label for="pleno">Pleno de la Facultad</label>
  51. </div>
  52. <div class="form-group">
  53. <input type="checkbox" id="estudiantes" name="estudiantes" value="Estudiantes">
  54. <label for="estudiantes">Estudiantes</label>
  55. </div>
  56. <div class="form-group">
  57. <input type="checkbox" id="administrativos" name="administrativos" value="Administrativos">
  58. <label for="administrativos">Administrativos</label>
  59. </div>
  60. <div class="form-group">
  61. <input type="checkbox" id="senado" name="senado" value="Senado">
  62. <label for="senado">Senado</label>
  63. </div>
  64. <div class="form-group">
  65. <input type="checkbox" id="comunidadWeb" name="comunidadWeb" value="Comunidad (pagina web)">
  66. <label for="comunidadWeb">Comunidad (pagina web)</label>
  67. </div>
  68. <div class="form-group">
  69. <input type="checkbox" id="otros" name="otros" value="Otros">
  70. <label for="otros">Otro- <input type="text" id='otherBox'></label>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="row">
  75. <div class=""><button type="submit" id='submit' class="btn btn-lg btn-primary center-block">Create Report</button></div>
  76. </div>
  77. {{ Form::close() }}
  78. <hr>
  79. <button class="btn btn-lg btn-primary pull-right" id='hide'>Hide Form</button>
  80. </div>
  81. <div class="row">
  82. <div class="col-md-12">
  83. <table class="table table-condensed table-stripedd datatable">
  84. <thead>
  85. <tr>
  86. <th>Name</th>
  87. <th>School</th>
  88. </tr>
  89. </thead>
  90. <tfoot>
  91. <tr class="column-search">
  92. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  93. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  94. </tr>
  95. </tfoot>
  96. <tbody>
  97. @foreach($programs as $program)
  98. <tr>
  99. <td>{{ HTML::linkAction('ProgramsController@show', $program->name, array($program->id)) }}</td>
  100. <td>{{ $program->school->name }}</td>
  101. </tr>
  102. @endforeach
  103. </tbody>
  104. </table>
  105. </div>
  106. </div>
  107. @stop
  108. @section('included-js')
  109. <!-- Datatables -->
  110. @include('global._datatables_js')
  111. @stop
  112. @section('javascript')
  113. $('#make_report').hide();
  114. //show form
  115. $('#show').on('click', function(e)
  116. {
  117. $('#make_report').show();
  118. $('#show').hide();
  119. });
  120. //hide form
  121. $('#hide').on('click', function(e)
  122. {
  123. $('#make_report').hide();
  124. $('#show').show();
  125. });
  126. //on submit, change value of the checkbox input of id 'other'
  127. $('#submit').click(function(){
  128. $('#otros').val('Otro- '+$('#otherBox').val());
  129. });
  130. @stop