Fix broken section view

This commit is contained in:
Reynaldo Reyes
2016-03-02 20:25:52 -04:30
parent 90d22e3405
commit 4b3ce9f406
2 changed files with 24 additions and 24 deletions

View File

@@ -25,11 +25,11 @@
vm.matricula = successResult; vm.matricula = successResult;
angular.forEach(vm.matricula, function (value){ angular.forEach(vm.matricula, function (value){
matriculaArray.push({ matriculaArray.push({
Nombre:value.Nombre, section:value.section,
Codigo:value.Codigo, code:value.code,
Materia:value.Materia, course:value.course,
Semestre:value.Semestre, semester:value.semester,
Estudiantes: value.Estudiantes student: value.student
}); });
}); });
$rootScope.loading = false; $rootScope.loading = false;
@@ -59,7 +59,7 @@
$scope.modalInstance = $modal.open({ $scope.modalInstance = $modal.open({
animation: $rootScope.animationsEnabled, animation: $rootScope.animationsEnabled,
templateUrl: 'partials/matricula/modal/eliminar_matricula_modal.html', templateUrl: 'partials/section/modal/delete_section_modal.html',
scope: $scope, scope: $scope,
size: 'sm', size: 'sm',
resolve: { resolve: {
@@ -159,7 +159,7 @@
$scope.modalInstance = $modal.open({ $scope.modalInstance = $modal.open({
animation: $rootScope.animationsEnabled, animation: $rootScope.animationsEnabled,
templateUrl: 'partials/matricula/modal/crear_matricula_modal.html', templateUrl: 'partials/section/modal/create_section_modal.html',
scope: $scope, scope: $scope,
size: 'sm', size: 'sm',
resolve: { resolve: {
@@ -244,7 +244,7 @@
$scope.modalInstance = $modal.open({ $scope.modalInstance = $modal.open({
animation: $rootScope.animationsEnabled, animation: $rootScope.animationsEnabled,
templateUrl: 'partials/matricula/modal/actualizar_matricula_modal.html', templateUrl: 'partials/section/modal/update_section_modal.html',
scope: $scope, scope: $scope,
size: 'sm', size: 'sm',
resolve: { resolve: {

View File

@@ -5,33 +5,33 @@
<thead> <thead>
<tr> <tr>
<th width="20%"> <th width="20%">
<a href="" ng-click="sortType = 'Nombre'; <a href="" ng-click="sortType = 'section';
sortReverse = !sortReverse"> sortReverse = !sortReverse">
Sección Sección
<span ng-show="sortType == 'Nombre' && !sortReverse" class="fa fa-caret-down"></span> <span ng-show="sortType == 'section' && !sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'Nombre' && sortReverse" class="fa fa-caret-up"></span> <span ng-show="sortType == 'section' && sortReverse" class="fa fa-caret-up"></span>
</a> </a>
</th> </th>
<th width="20%"> <th width="20%">
<a href="" <a href=""
ng-click="sortType = 'Materia'; sortReverse = !sortReverse"> ng-click="sortType = 'course'; sortReverse = !sortReverse">
Nombre de la Materia Nombre de la Materia
<span ng-show="sortType == 'Materia' && !sortReverse" class="fa fa-caret-down"></span> <span ng-show="sortType == 'course' && !sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'Materia' && sortReverse" class="fa fa-caret-up"></span> <span ng-show="sortType == 'course' && sortReverse" class="fa fa-caret-up"></span>
</a> </a>
</th> </th>
<th width="20%"> <th width="20%">
<a href="" ng-click="sortType = 'Codigo'; sortReverse = !sortReverse"> <a href="" ng-click="sortType = 'code'; sortReverse = !sortReverse">
Codigo de la Materia Codigo de la Materia
<span ng-show="sortType == 'Codigo' && !sortReverse" class="fa fa-caret-down"></span> <span ng-show="sortType == 'code' && !sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'Codigo' && sortReverse" class="fa fa-caret-up"></span> <span ng-show="sortType == 'code' && sortReverse" class="fa fa-caret-up"></span>
</a> </a>
</th> </th>
<th width="20%"> <th width="20%">
<a href="" ng-click="sortType = 'Semestre'; sortReverse = !sortReverse"> <a href="" ng-click="sortType = 'semester'; sortReverse = !sortReverse">
Semestre Semestre
<span ng-show="sortType == 'Semestre' && !sortReverse" class="fa fa-caret-down"></span> <span ng-show="sortType == 'semester' && !sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'Semestre' && sortReverse" class="fa fa-caret-up"></span> <span ng-show="sortType == 'semester' && sortReverse" class="fa fa-caret-up"></span>
</a> </a>
</th> </th>
<th width="10%" style="text-align: center"> <th width="10%" style="text-align: center">
@@ -45,10 +45,10 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="matricula in vm.listaMatricula | orderBy:sortType:sortReverse | filter:searchUser"> <tr ng-repeat="matricula in vm.listaMatricula | orderBy:sortType:sortReverse | filter:searchUser">
<td style="vertical-align:middle">{{ matricula.Nombre }}</td> <td style="vertical-align:middle">{{ matricula.section }}</td>
<td style="vertical-align:middle">{{ matricula.Materia }}</td> <td style="vertical-align:middle">{{ matricula.course }}</td>
<td style="vertical-align:middle">{{ matricula.Codigo }}</td> <td style="vertical-align:middle">{{ matricula.code }}</td>
<td style="vertical-align:middle">{{ matricula.Semestre }}</td> <td style="vertical-align:middle">{{ matricula.semester }}</td>
<td style="text-align: center"> <td style="text-align: center">
<span title="Click aqui para Modificar la Matricula" <span title="Click aqui para Modificar la Matricula"
class="glyphicon glyphicon-edit" aria-hidden="true" class="glyphicon glyphicon-edit" aria-hidden="true"