-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
188 lines (162 loc) · 12.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head lang="es">
<meta charset="UTF-8">
<title></title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/app.css" rel="stylesheet">
</head>
<body ng-app="requisitos_aulas" >
<div ng-controller="controllerTitulaciones as titu" ng-cloak="">
<!-- The splash screen must be first -->
<div class="row clearfix">
<div class="col-md-12 column" >
<div class="row clearfix">
<div class="col-md-4 column">
<div sticky offset="105" id="MenuRecursos">
<h5> Gestión de Aulas </h5>
<accordion close-others="oneAtATime" >
<accordion-group is-open="status.open" >
<accordion-heading ng-click="isopen=!isopen">
<div style="display: block;">
Aulas Centralizadas <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.open, 'glyphicon-chevron-right': !status.open}"></i>
</div>
</accordion-heading>
<div class="btn btn-default" ng-repeat="aula in titu.tiposAulaCentralizadas"
dnd-draggable="aula"
dnd-effect-allowed="copy"
dnd-type="tipoAulaNombre"
>
{{aula.DESCRIP}}
</div>
</accordion-group>
<accordion-group is-open="status.open" >
<accordion-heading ng-click="isopen=!isopen">
<div style="display: block;">
Aulas No Centralizadas <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.open, 'glyphicon-chevron-right': !status.open}"></i>
</div>
</accordion-heading>
<div class="btn btn-default" ng-repeat="aula in titu.tiposAulaNoCentralizadas"
dnd-draggable="aula"
dnd-effect-allowed="copy"
dnd-type="tipoAulaNombre"
>
{{aula.DESCRIP}}
</div>
</accordion-group>
</accordion>
<h5> Recursos Específicos </h5>
<accordion close-others="oneAtATime" >
<accordion-group is-open="status.open" ng-repeat="recurso in titu.listaRecursos" ng-click="titu.showListaRecursos(recurso)">
<accordion-heading ng-click="isopen=!isopen">
<div style="display: block;">
{{recurso.tipo}} <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.open, 'glyphicon-chevron-right': !status.open}"></i>
</div>
</accordion-heading>
<div class="btn btn-default" ng-repeat="tipoRecurso in recurso.recursos"
dnd-draggable="tipoRecurso"
dnd-effect-allowed="copy"
dnd-type="tipoRecursoNombre"
>
{{tipoRecurso.DESCRIP}}
</div>
</accordion-group>
</accordion>
</div>
</div>
<div class="col-md-8 column">
<div>
<tabset type="pills">
<tab ng-repeat="titulacion in titulaciones" heading="{{titulacion.CODTIT}}" active="tab.active" disabled="tab.disabled">
<accordion id="accordionCustom" close-others="oneAtATime" >
<accordion-group is-open="status.open" ng-repeat="curso in titulacion.cursos">
<accordion-heading ng-click="isopen=!isopen">
<div style="display: block;">
{{curso.nombre}}
<i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.open, 'glyphicon-chevron-right': !status.open}"></i>
</div>
</accordion-heading>
<i type="btn" class="close" data-dismiss="modal" aria-label="Close" ng-click="removeByCurso(titulacion.CODTIT, curso.nombre)" ><span aria-hidden="true">×</span></i>
<div ng-repeat="asignatura in curso.asignaturas">
<table class="table table-bordered table-fixed">
<thead>
<tr>
<th class="tablaNombreAsignatura">{{asignatura.NOMBRE}}
</th>
<th ng-mouseover="hoverEdit = true" ng-mouseleave="hoverEdit = false">Recurso
<i ng-show="hoverEdit" type="btn" class="close" data-dismiss="modal" aria-label="Close" ng-click="removeByAsignatura(titulacion.CODTIT, curso.nombre, asignatura.CODASI, true)" ><span aria-hidden="true">×</span></i>
</th>
<th ng-mouseover="hoverEdit2 = true" ng-mouseleave="hoverEdit2 = false">Aulas
<i ng-show="hoverEdit2" type="btn" class="close" data-dismiss="modal" aria-label="Close" ng-click="removeByAsignatura(titulacion.CODTIT, curso.nombre, asignatura.CODASI, false)" ><span aria-hidden="true">×</span></i>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="actividad in asignatura.actividades">
<td >{{actividad.ACTIVIDAD | capitalize}}
</td>
<td class="col-md-4" ng-mouseover="hoverEdit3 = actividad.listaRecursos.length" ng-mouseleave="hoverEdit3 = false"
dnd-list="actividad.listaRecursos"
dnd-allowed-types="allowedTypes1"
dnd-drop="dropRecurso(titulacion.CODTIT, curso.nombre, asignatura.CODASI, actividad.CODACT, item, type)">
<i ng-show="hoverEdit3" type="btn" class="close" data-dismiss="modal" ng-click="removeByActividad(titulacion.CODTIT, curso.nombre, asignatura.CODASI, actividad.CODACT, true)"
aria-label="Close"><span aria-hidden="true">×</span></i>
<div ng-mouseover="hoverEdit4 = true" ng-mouseleave="hoverEdit4 = false"
class="btn btn-default" ng-repeat="tipoRecurso in actividad.listaRecursos"
dnd-draggable="tipoRecurso"
dnd-effect-allowed="move"
dnd-type="tipoRecursoNombre"
dnd-moved="actividad.listaRecursos.splice($index, 1)"
>
<i ng-show="hoverEdit4" type="btn" class="close" data-dismiss="modal" ng-click="removeByRecurso(titulacion.CODTIT, curso.nombre, asignatura.CODASI, actividad.CODACT, true, tipoRecurso)"
aria-label="Close"><span aria-hidden="true">×</span></i>
{{tipoRecurso.DESCRIP}}
</div>
</td>
<td class="col-md-4"
ng-mouseover="hoverEdit5 = actividad.listaAulas.length" ng-mouseleave="hoverEdit5 = false"
dnd-list="actividad.listaAulas"
dnd-disable-if="actividad.listaAulas.length >= 1"
dnd-allowed-types="allowedTypes2"
dnd-drop="dropRecurso(titulacion.CODTIT, curso.nombre, asignatura.CODASI, actividad.CODACT, item, type)">
<i ng-show="hoverEdit5" type="btn" class="close" data-dismiss="modal" ng-click="removeByActividad(titulacion.CODTIT, curso.nombre, asignatura.CODASI, actividad.CODACT, false)"
aria-label="Close"><span aria-hidden="true">×</span></i>
<span us-spinner="{radius:30, width:8, length: 16}" spinner-key="spinner-1"></span>
<div
ng-mouseover="hoverEdit6 = true" ng-mouseleave="hoverEdit6 = false"
class="btn btn-default" ng-repeat="aula in actividad.listaAulas"
dnd-draggable="aula"
dnd-type="tipoAulaNombre"
dnd-effect-allowed="move"
dnd-moved="actividad.listaAulas.splice($index, 1)"
>
<i
ng-show="hoverEdit6"
type="btn" class="close" data-dismiss="modal" ng-click="removeByRecurso(titulacion.CODTIT, curso.nombre, asignatura.CODASI, actividad.CODACT, false, aula)"
aria-label="Close"><span aria-hidden="true">×</span></i>
{{aula.DESCRIP}}
</div>
</td>
</tr>
</tbody>
</table>
</div>
</accordion-group>
</accordion>
</tab>
</tabset>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="js/spin.min.js"></script>
<script src="js/angular-spinner.min.js"></script>
<script src="js/angular-drag-and-drop-lists.min.js"></script>
<script src="js/ui-bootstrap-tpls-0.12.1.min.js"></script>
<script src="js/sticky.js"></script>
<script src="js/app.js"></script>
</div>
</body>
</html>