From 4b3ce9f406b7324ee2aa3b349f3f89696d1291d3 Mon Sep 17 00:00:00 2001 From: Reynaldo Reyes Date: Wed, 2 Mar 2016 20:25:52 -0430 Subject: [PATCH] Fix broken section view --- app/js/section/section.controllers.js | 16 ++++++------- app/partials/section/list_section.html | 32 +++++++++++++------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/app/js/section/section.controllers.js b/app/js/section/section.controllers.js index fd5714f..9f3790b 100644 --- a/app/js/section/section.controllers.js +++ b/app/js/section/section.controllers.js @@ -25,11 +25,11 @@ vm.matricula = successResult; angular.forEach(vm.matricula, function (value){ matriculaArray.push({ - Nombre:value.Nombre, - Codigo:value.Codigo, - Materia:value.Materia, - Semestre:value.Semestre, - Estudiantes: value.Estudiantes + section:value.section, + code:value.code, + course:value.course, + semester:value.semester, + student: value.student }); }); $rootScope.loading = false; @@ -59,7 +59,7 @@ $scope.modalInstance = $modal.open({ animation: $rootScope.animationsEnabled, - templateUrl: 'partials/matricula/modal/eliminar_matricula_modal.html', + templateUrl: 'partials/section/modal/delete_section_modal.html', scope: $scope, size: 'sm', resolve: { @@ -159,7 +159,7 @@ $scope.modalInstance = $modal.open({ animation: $rootScope.animationsEnabled, - templateUrl: 'partials/matricula/modal/crear_matricula_modal.html', + templateUrl: 'partials/section/modal/create_section_modal.html', scope: $scope, size: 'sm', resolve: { @@ -244,7 +244,7 @@ $scope.modalInstance = $modal.open({ animation: $rootScope.animationsEnabled, - templateUrl: 'partials/matricula/modal/actualizar_matricula_modal.html', + templateUrl: 'partials/section/modal/update_section_modal.html', scope: $scope, size: 'sm', resolve: { diff --git a/app/partials/section/list_section.html b/app/partials/section/list_section.html index 88a12ae..ad04562 100644 --- a/app/partials/section/list_section.html +++ b/app/partials/section/list_section.html @@ -5,33 +5,33 @@ - Sección - - + + + ng-click="sortType = 'course'; sortReverse = !sortReverse"> Nombre de la Materia - - + + - + Codigo de la Materia - - + + - + Semestre - - + + @@ -45,10 +45,10 @@ - {{ matricula.Nombre }} - {{ matricula.Materia }} - {{ matricula.Codigo }} - {{ matricula.Semestre }} + {{ matricula.section }} + {{ matricula.course }} + {{ matricula.code }} + {{ matricula.semester }}