Fix delete professor not reloading issue, total lecture day issue
This commit is contained in:
@@ -68,8 +68,8 @@
|
|||||||
<label for="telefono">Número de Teléfono</label>
|
<label for="telefono">Número de Teléfono</label>
|
||||||
<input type="telefono" class="form-control"
|
<input type="telefono" class="form-control"
|
||||||
name="telefono" ng-model="vm.profesor.Telefono"
|
name="telefono" ng-model="vm.profesor.Telefono"
|
||||||
ng-pattern="/\d{4}-\d{3}-\d{4}/" maxlength="13"
|
ng-pattern="/\d{4}-\d{7}/" maxlength="13"
|
||||||
placeholder="0424-123-9876"/>
|
placeholder="0424-1239876"/>
|
||||||
<small class="error"
|
<small class="error"
|
||||||
ng-show="vm.data_input_form.telefono.$error.pattern">
|
ng-show="vm.data_input_form.telefono.$error.pattern">
|
||||||
El Formato del Número de Teléfono es incorrecto.
|
El Formato del Número de Teléfono es incorrecto.
|
||||||
|
@@ -102,7 +102,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.ok = function (urlLo) {
|
$scope.ok = function (urlLo) {
|
||||||
$state.go('ProfessorList');
|
$state.reload();
|
||||||
$scope.modalInstance.dismiss('cancel');
|
$scope.modalInstance.dismiss('cancel');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
function (value){
|
function (value){
|
||||||
angular.forEach (value.students,
|
angular.forEach (value.students,
|
||||||
function (valued){
|
function (valued){
|
||||||
|
vm.lectures = valued.assistance;
|
||||||
angular.forEach (valued.assistanceTotal,
|
angular.forEach (valued.assistanceTotal,
|
||||||
function (valueda){
|
function (valueda){
|
||||||
if (valueda.assistance) {
|
if (valueda.assistance) {
|
||||||
|
@@ -30,8 +30,10 @@
|
|||||||
|
|
||||||
angular.forEach (vm.section.students,
|
angular.forEach (vm.section.students,
|
||||||
function (value){
|
function (value){
|
||||||
|
vm.lectures = value.assistance;
|
||||||
angular.forEach (value.assistanceTotal,
|
angular.forEach (value.assistanceTotal,
|
||||||
function (valued){
|
function (valued){
|
||||||
|
|
||||||
if (valued.assistance) {
|
if (valued.assistance) {
|
||||||
vm.positive++;
|
vm.positive++;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user