Change button style and layout
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
.controller('CourseCreateCtrl', CourseCreateCtrl)
|
||||
|
||||
CourseCreateCtrl.$inject =
|
||||
['$scope','$rootScope', '$modal', '$location', 'professors'];
|
||||
function CourseCreateCtrl($scope, $rootScope, $modal, $location, professors) {
|
||||
['$scope','$rootScope', '$modal', '$state', 'professors'];
|
||||
function CourseCreateCtrl($scope, $rootScope, $modal, $state, professors) {
|
||||
var vm = this;
|
||||
vm.submitted = false;
|
||||
vm.mayorque = false;
|
||||
@@ -50,13 +50,11 @@
|
||||
professors.update({ id: professorid }, vm.professor,
|
||||
function(){
|
||||
$rootScope.botonOk = true;
|
||||
$rootScope.urlLo = 'listarMateria';
|
||||
$rootScope.mensaje =
|
||||
"Materia " + vm.course.name + " creada";
|
||||
},
|
||||
function(){
|
||||
$rootScope.botonOk = true;
|
||||
$rootScope.urlLo = 'listarMateria';
|
||||
$rootScope.mensaje =
|
||||
"Error creando la materia " + vm.course.name;
|
||||
});
|
||||
@@ -67,21 +65,12 @@
|
||||
}
|
||||
|
||||
$scope.ok = function (urlLo) {
|
||||
$location.url(urlLo);
|
||||
$state.go('CourseList');
|
||||
$scope.modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
||||
$scope.cancel = function () {
|
||||
$scope.modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
||||
$rootScope.open = function($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
|
||||
$rootScope.opened = true;
|
||||
};
|
||||
|
||||
return vm;
|
||||
};
|
||||
})();
|
@@ -69,13 +69,5 @@
|
||||
$scope.cancel = function () {
|
||||
$scope.modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
||||
$rootScope.open = function($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
$rootScope.opened = true;
|
||||
};
|
||||
|
||||
return vm;
|
||||
};
|
||||
})();
|
@@ -65,12 +65,8 @@
|
||||
$scope.modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
||||
$rootScope.open = function($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
$rootScope.opened = true;
|
||||
vm.back = function () {
|
||||
$state.go('ProfessorList');
|
||||
};
|
||||
|
||||
return vm;
|
||||
};
|
||||
})();
|
@@ -93,7 +93,8 @@
|
||||
<label> </label>
|
||||
<p class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn-primary btn">Agregar Profesor</button>
|
||||
<button type="submit" class="btn-success btn">Agregar Profesor</button>
|
||||
<button type="button" class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</button>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
@@ -63,11 +63,8 @@
|
||||
$scope.modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
||||
$rootScope.open = function($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
$rootScope.opened = true;
|
||||
vm.back = function () {
|
||||
$state.go('ProfessorList');
|
||||
};
|
||||
return vm;
|
||||
};
|
||||
})();
|
@@ -53,7 +53,8 @@
|
||||
<label> </label>
|
||||
<p class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn-primary btn">Modificar Profesor</button>
|
||||
<button type="submit" class="btn-success btn">Modificar Profesor</button>
|
||||
<button type="button" class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</button>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
@@ -1,7 +1,13 @@
|
||||
<div class="row clearfix">
|
||||
<h4>Reportes de Secciones</h4>
|
||||
<br>
|
||||
</br>
|
||||
<button class = "btn-warning btn"
|
||||
type = "button"
|
||||
style = "margin: 10px"
|
||||
ng-click = "vm.back()">
|
||||
Regresar
|
||||
</button>
|
||||
<br>
|
||||
<div>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
@@ -48,10 +54,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<button class = "btn-warning btn"
|
||||
type = "button"
|
||||
style = "margin: 10px"
|
||||
ng-click = "vm.back()">
|
||||
Regresar
|
||||
</button>
|
||||
</div>
|
@@ -1,7 +1,13 @@
|
||||
<div class="row clearfix">
|
||||
<h4>Reportes de Estudiantes</h4>
|
||||
<br>
|
||||
</br>
|
||||
<button class = "btn-warning btn"
|
||||
type = "button"
|
||||
style = "margin: 10px"
|
||||
ng-click = "vm.back()">
|
||||
Regresar
|
||||
</button>
|
||||
<br>
|
||||
<div>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
@@ -35,10 +41,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<button class = "btn-warning btn"
|
||||
type = "button"
|
||||
style = "margin: 10px"
|
||||
ng-click = "vm.back()">
|
||||
Regresar
|
||||
</button>
|
||||
</div>
|
@@ -129,6 +129,8 @@
|
||||
$rootScope.opened = true;
|
||||
};
|
||||
|
||||
return vm;
|
||||
vm.back = function () {
|
||||
$state.go('SectionList');
|
||||
};
|
||||
};
|
||||
})();
|
@@ -63,7 +63,8 @@
|
||||
<label> </label>
|
||||
<p class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn-primary btn">Crear Matricula</button>
|
||||
<button type="submit" class="btn-success btn">Crear Sección</button>
|
||||
<button type="button" class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</button>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
@@ -77,12 +77,6 @@
|
||||
});
|
||||
};
|
||||
|
||||
vm.eliminarMatriculaSplice = function (index, rsplice) {
|
||||
if(rsplice){
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
/*************************Fin de Eliminar Matricula*******************/
|
||||
|
||||
vm.modificarMatricula = function (index) {
|
||||
@@ -91,12 +85,6 @@
|
||||
$state.go('SectionUpdate');
|
||||
};
|
||||
|
||||
$rootScope.open = function($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
$rootScope.opened = true;
|
||||
};
|
||||
|
||||
$scope.ok = function (urlLo) {
|
||||
$state.go('SectionList');
|
||||
$scope.modalInstance.dismiss('cancel');
|
||||
@@ -109,7 +97,5 @@
|
||||
vm.back = function () {
|
||||
$state.go('CourseList');
|
||||
};
|
||||
|
||||
return vm;
|
||||
};
|
||||
})();
|
@@ -1,7 +1,10 @@
|
||||
<div class="row clearfix">
|
||||
<h4>Listado de Secciones</h4></br>
|
||||
<div>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn-success btn" ng-click="vm.createSection()" style="margin: 10px"> Crear Sección </button>
|
||||
<button type="button" class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</button>
|
||||
</span>
|
||||
</br>
|
||||
</br>
|
||||
<table class="table table-bordered table-striped">
|
||||
@@ -57,5 +60,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<a class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</a>
|
||||
</div>
|
@@ -1,7 +1,11 @@
|
||||
<div class="row clearfix">
|
||||
<h4>Estudiantes Inscritos en {{ vm.section.course }} - Seccion {{ vm.section.name }} - Semestre {{ vm.section.semester }}</h4>
|
||||
<br>
|
||||
<button class="btn-success btn" ng-click="vm.addStudent()" style="margin: 10px"> Agregar Estudiante </button><br><br>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn-success btn" ng-click="vm.addStudent()" style="margin: 10px"> Agregar Estudiante </button>
|
||||
<button type="button" class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</button>
|
||||
</span>
|
||||
<br>
|
||||
<div>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
@@ -47,7 +51,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="container-fluid ">
|
||||
<a class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</a>
|
||||
</div>
|
||||
</div>
|
@@ -71,13 +71,14 @@
|
||||
<label> </label>
|
||||
<p class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn-primary btn">
|
||||
<button type="submit" class="btn-success btn">
|
||||
Agregar Alumno </button>
|
||||
<button type="button" class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</button>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<a class="btn-warning btn" style="margin: 10px" ng-click="vm.back()">Regresar</a>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user