|
@@ -11,7 +11,76 @@
|
11
|
11
|
@stop
|
12
|
12
|
|
13
|
13
|
@section('main')
|
14
|
|
- <a href="{{ action('ProgramsController@showReport'); }}" class="btn btn-primary pull-right" alt="print">Report</a>
|
|
14
|
+ <button class="btn btn-lg btn-primary pull-right" id='show'>Custom Report</button>
|
|
15
|
+ <div class="" id='make_report'>
|
|
16
|
+ <hr>
|
|
17
|
+ <b><h3>Report Options</h3><br></b>
|
|
18
|
+ {{-- For for adding a new outcome --}}
|
|
19
|
+ {{ Form::open(array('action' => 'ProgramsController@showReport')) }}
|
|
20
|
+ <div class="row">
|
|
21
|
+ <div class="col-md-1">
|
|
22
|
+ </div>
|
|
23
|
+ <div class="col-md-5">
|
|
24
|
+ {{ Form::label('name', 'Select which semesters to report on') }}<br>
|
|
25
|
+ @foreach ($semesters as $semester)
|
|
26
|
+ @if ($semester->is_visible)
|
|
27
|
+ <div class="form-group">
|
|
28
|
+ <input type="checkbox" id="semester{{$semester->id}}" name="semester{{$semester->id}}" value="semester{{$semester->id}}">
|
|
29
|
+ <label for="semester{{$semester->id}}">{{$semester->name}}({{$semester->code}})</label>
|
|
30
|
+ {{-- {{ Form::checkbox('semester'.$semester->id, $semester->name, array('class' => 'form-control', 'id'=>$semester->id)) }}
|
|
31
|
+ {{ Form::label('semester'.$semester->id, $semester->name.'('.$semester->code.')') }}<br> --}}
|
|
32
|
+ </div>
|
|
33
|
+ @endif
|
|
34
|
+ @endforeach
|
|
35
|
+ </div>
|
|
36
|
+ <div class="col-md-6">
|
|
37
|
+ {{ Form::label('divulgacion', 'Select metodos de divulgacion') }}<br>
|
|
38
|
+ <div class="form-group">
|
|
39
|
+ <input type="checkbox" id="profesores" name="profesores" value="Profesores (pares)">
|
|
40
|
+ <label for="profesores">Profesores (pares)</label>
|
|
41
|
+ </div>
|
|
42
|
+ <div class="form-group">
|
|
43
|
+ <input type="checkbox" id="comiteDepartamental" name="comiteDepartamental" value="Comites de curriculo departamental">
|
|
44
|
+ <label for="comiteDepartamental">Comites de curriculo departamental</label>
|
|
45
|
+ </div>
|
|
46
|
+ <div class="form-group">
|
|
47
|
+ <input type="checkbox" id="comiteFacultadEscuela" name="comiteFacultadEscuela" value="Comites de curriculo de Facultad o Escuela">
|
|
48
|
+ <label for="comiteFacultadEscuela">Comites de curriculo de Facultad o Escuela</label>
|
|
49
|
+ </div>
|
|
50
|
+ <div class="form-group">
|
|
51
|
+ <input type="checkbox" id="pleno" name="pleno" value="Pleno de la Facultad">
|
|
52
|
+ <label for="pleno">Pleno de la Facultad</label>
|
|
53
|
+ </div>
|
|
54
|
+ <div class="form-group">
|
|
55
|
+ <input type="checkbox" id="estudiantes" name="estudiantes" value="Estudiantes">
|
|
56
|
+ <label for="estudiantes">Estudiantes</label>
|
|
57
|
+ </div>
|
|
58
|
+ <div class="form-group">
|
|
59
|
+ <input type="checkbox" id="administrativos" name="administrativos" value="Administrativos">
|
|
60
|
+ <label for="administrativos">Administrativos</label>
|
|
61
|
+ </div>
|
|
62
|
+ <div class="form-group">
|
|
63
|
+ <input type="checkbox" id="senado" name="senado" value="Senado">
|
|
64
|
+ <label for="senado">Senado</label>
|
|
65
|
+ </div>
|
|
66
|
+ <div class="form-group">
|
|
67
|
+ <input type="checkbox" id="comunidadWeb" name="comunidadWeb" value="Comunidad (pagina web)">
|
|
68
|
+ <label for="comunidadWeb">Comunidad (pagina web)</label>
|
|
69
|
+ </div>
|
|
70
|
+ <div class="form-group">
|
|
71
|
+ <input type="checkbox" id="otros" name="otros" value="Otros">
|
|
72
|
+ <label for="otros">Otro- <input type="text" id='otherBox'></label>
|
|
73
|
+ </div>
|
|
74
|
+ </div>
|
|
75
|
+ </div>
|
|
76
|
+ <div class="row">
|
|
77
|
+ <div class=""><button type="submit" id='submit' class="btn btn-lg btn-primary center-block">Create Report</button></div>
|
|
78
|
+ </div>
|
|
79
|
+ {{ Form::close() }}
|
|
80
|
+ <hr>
|
|
81
|
+ <button class="btn btn-lg btn-primary pull-right" id='hide'>Hide Form</button>
|
|
82
|
+ </div>
|
|
83
|
+
|
15
|
84
|
<div class="row">
|
16
|
85
|
<div class="col-md-12">
|
17
|
86
|
<table class="table table-condensed table-stripedd datatable">
|
|
@@ -48,3 +117,27 @@
|
48
|
117
|
@include('global._datatables_js')
|
49
|
118
|
|
50
|
119
|
@stop
|
|
120
|
+
|
|
121
|
+@section('javascript')
|
|
122
|
+
|
|
123
|
+ $('#make_report').hide();
|
|
124
|
+
|
|
125
|
+ //show form
|
|
126
|
+ $('#show').on('click', function(e)
|
|
127
|
+ {
|
|
128
|
+ $('#make_report').show();
|
|
129
|
+ $('#show').hide();
|
|
130
|
+ });
|
|
131
|
+
|
|
132
|
+ //hide form
|
|
133
|
+ $('#hide').on('click', function(e)
|
|
134
|
+ {
|
|
135
|
+ $('#make_report').hide();
|
|
136
|
+ $('#show').show();
|
|
137
|
+ });
|
|
138
|
+
|
|
139
|
+ //on submit, change value of the checkbox input of id 'other'
|
|
140
|
+ $('#submit').click(function(){
|
|
141
|
+ $('#otros').val('Otro- '+$('#otherBox').val());
|
|
142
|
+ });
|
|
143
|
+@stop
|