Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
ModuloPersonalCliente
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SistemaGestionAdministrativa
ModuloPersonalCliente
Commits
1f701d3e
Commit
1f701d3e
authored
Jul 07, 2016
by
Teodoro David Nina Mamani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iss6003 revision de la navegación entre opciones de las vistas.
parent
88bfd6a3
Pipeline
#24
failed with stage
Changes
37
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
190 additions
and
173 deletions
+190
-173
client/app/cargos/cargos.lista.html
client/app/cargos/cargos.lista.html
+6
-5
client/app/cargos/editar/cargos.editar.controller.js
client/app/cargos/editar/cargos.editar.controller.js
+0
-1
client/app/cargos/editar/cargos.editar.html
client/app/cargos/editar/cargos.editar.html
+2
-2
client/app/cargos/modals/cargos.editar.modal.controller.js
client/app/cargos/modals/cargos.editar.modal.controller.js
+3
-6
client/app/cargos/modals/cargos.modal.html
client/app/cargos/modals/cargos.modal.html
+1
-1
client/app/cargosConvocatorias/cargosConvocatorias.lista.html
...nt/app/cargosConvocatorias/cargosConvocatorias.lista.html
+12
-9
client/app/cargosConvocatorias/editar/cargosConvocatorias.editar.controller.js
...ocatorias/editar/cargosConvocatorias.editar.controller.js
+2
-1
client/app/cargosConvocatorias/editar/cargosConvocatorias.editar.html
...argosConvocatorias/editar/cargosConvocatorias.editar.html
+2
-3
client/app/convocatorias/convocatorias.controller.js
client/app/convocatorias/convocatorias.controller.js
+5
-2
client/app/convocatorias/convocatorias.lista.html
client/app/convocatorias/convocatorias.lista.html
+13
-10
client/app/convocatorias/editar/convocatorias.editar.controller.js
...p/convocatorias/editar/convocatorias.editar.controller.js
+0
-3
client/app/convocatorias/editar/convocatorias.editar.html
client/app/convocatorias/editar/convocatorias.editar.html
+7
-7
client/app/entidades/editar/entidades.editar.controller.js
client/app/entidades/editar/entidades.editar.controller.js
+0
-1
client/app/entidades/editar/entidades.editar.html
client/app/entidades/editar/entidades.editar.html
+2
-2
client/app/entidades/entidades.lista.html
client/app/entidades/entidades.lista.html
+7
-6
client/app/entidades/entidades.scss
client/app/entidades/entidades.scss
+7
-0
client/app/etapas/etapas.lista.html
client/app/etapas/etapas.lista.html
+19
-14
client/app/evaluaciones/evaluaciones.controller.js
client/app/evaluaciones/evaluaciones.controller.js
+0
-1
client/app/evaluaciones/evaluaciones.lista.html
client/app/evaluaciones/evaluaciones.lista.html
+7
-7
client/app/oficinas/editar/oficinas.editar.html
client/app/oficinas/editar/oficinas.editar.html
+7
-8
client/app/oficinas/modals/oficinas.crear.modal.controller.js
...nt/app/oficinas/modals/oficinas.crear.modal.controller.js
+1
-0
client/app/oficinas/modals/oficinas.editar.modal.controller.js
...t/app/oficinas/modals/oficinas.editar.modal.controller.js
+3
-0
client/app/oficinas/modals/oficinas.modal.html
client/app/oficinas/modals/oficinas.modal.html
+1
-1
client/app/personas/editar/personas.editar.controller.js
client/app/personas/editar/personas.editar.controller.js
+18
-1
client/app/personas/editar/personas.editar.html
client/app/personas/editar/personas.editar.html
+2
-2
client/app/personas/personas.controller.js
client/app/personas/personas.controller.js
+0
-1
client/app/personas/personas.js
client/app/personas/personas.js
+1
-1
client/app/postulaciones/postulaciones.controller.js
client/app/postulaciones/postulaciones.controller.js
+2
-2
client/app/postulaciones/postulaciones.lista.html
client/app/postulaciones/postulaciones.lista.html
+16
-12
client/app/relacionesLaborales/relacionesLaborales.lista.html
...nt/app/relacionesLaborales/relacionesLaborales.lista.html
+8
-8
client/app/tiposDato/tiposDato.lista.html
client/app/tiposDato/tiposDato.lista.html
+7
-7
client/app/tiposEntidad/tiposEntidad.lista.html
client/app/tiposEntidad/tiposEntidad.lista.html
+5
-5
client/app/unidadesOrganizacional/editar/unidadesOrganizacional.editar.controller.js
...cional/editar/unidadesOrganizacional.editar.controller.js
+0
-1
client/app/unidadesOrganizacional/editar/unidadesOrganizacional.editar.html
...sOrganizacional/editar/unidadesOrganizacional.editar.html
+18
-20
client/components/footer/footer.html
client/components/footer/footer.html
+6
-0
client/components/navbar/navbar.controller.js
client/components/navbar/navbar.controller.js
+0
-4
client/index.html
client/index.html
+0
-19
No files found.
client/app/cargos/cargos.lista.html
View file @
1f701d3e
...
...
@@ -24,21 +24,22 @@
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
Nombre del cargo
</th>
<th
class=
"text-
right"
>
Op
ciones
</th>
<th
class=
"text-primary"
>
Nombre del cargo
</th>
<th
class=
"text-
center text-primary"
width=
"15%"
>
Ac
ciones
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"cargo in vm.cargos"
ui-sref=
"cargos.editar({cargoId:cargo._id})"
>
<td>
{{cargo.nombre}}
<label
class=
"label label-warning"
ng-show=
"cargo.Contratos"
>
Ocupado
</label></td>
<td
class=
"text-
right
"
>
<td
class=
"text-
center
"
>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-info-outline btn-xs"
href=
"#"
role=
"button"
<a
class=
"btn btn-info-outline btn-xs"
href=
"#"
role=
"button"
uib-tooltip=
"Editar"
tooltip-placement=
"bottom-right"
ui-sref=
"cargos.editar({cargoId:cargo._id})"
>
<i
class=
"fa fa-edit fa-lg"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
href=
"#"
role=
"button"
ng-click=
"vm.eliminar(cargo)"
>
<a
class=
"btn btn-danger-outline btn-xs"
href=
"#"
role=
"button"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom-left"
ng-click=
"vm.eliminar(cargo)"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
...
...
client/app/cargos/editar/cargos.editar.controller.js
View file @
1f701d3e
...
...
@@ -20,7 +20,6 @@
return
this
.
tipoCargoService
.
tiposCargo
()
})
.
then
(
tiposCargo
=>
{
console
.
log
(
tiposCargo
);
this
.
tiposCargo
=
tiposCargo
;
this
.
tipoCargo
=
this
.
tiposCargo
.
rows
.
find
(
x
=>
x
.
_id
==
this
.
cargo
.
fk_tipo_cargo
)
})
...
...
client/app/cargos/editar/cargos.editar.html
View file @
1f701d3e
...
...
@@ -5,9 +5,9 @@
</div>
<div
class=
"col-sm-5 col-md-4 col-sm-offset-2"
>
<div
class=
"pull-right"
>
<a
class=
"btn btn-default header-button"
ng-click=
"vm.estadoAnterior.go()
"
>
<a
class=
"btn btn-default header-button"
ui-sref=
"cargos.lista
"
>
<i
class=
"fa fa-arrow-left"
></i>
Regresar
Regresar
a Lista Cargos
</a>
</div>
</div>
...
...
client/app/cargos/modals/cargos.editar.modal.controller.js
View file @
1f701d3e
...
...
@@ -8,20 +8,18 @@
this
.
service
=
cargoService
;
this
.
unidadService
=
UnidadService
;
this
.
cargoInicial
=
parametro
.
cargo
Convocatoria
;
this
.
cargoConvocatoria
=
Object
.
assign
({},
this
.
cargoInicial
);
this
.
cargoInicial
=
parametro
.
cargo
;
this
.
cargoConvocatoria
=
Object
.
assign
({
cargo_superior_id
:
null
},
this
.
cargoInicial
);
this
.
entidadSeleccionada
=
parametro
.
entidad
;
this
.
entidades
=
{
rows
:
[
this
.
entidadSeleccionada
],
count
:
1
}
this
.
unidad
=
parametro
.
unidad
;
console
.
log
(
parametro
);
this
.
unidadService
.
getUnidades
()
.
then
(
unidades
=>
{
this
.
unidades
=
unidades
;
this
.
unidadSeleccionada
=
this
.
unidades
.
rows
.
find
(
x
=>
x
.
_id
===
this
.
unidad
.
_id
);
});
this
.
service
.
getCargos
()
.
then
(
cargosSuperiores
=>
{
this
.
cargosSuperiores
=
cargosSuperiores
;
...
...
@@ -37,9 +35,8 @@
if
(
this
.
cargoSuperiorSeleccionada
)
{
this
.
cargoConvocatoria
.
cargo_superior_id
=
this
.
cargoSuperiorSeleccionada
.
_id
;
}
else
{
this
.
cargoConvocatoria
.
cargo_superior_id
=
this
.
cargoSuperiorSeleccionada
;
this
.
cargoConvocatoria
.
cargo_superior_id
=
null
;
}
console
.
log
(
this
.
cargoConvocatoria
);
this
.
cargoConvocatoria
.
fk_unidad_organizacional
=
this
.
unidadSeleccionada
.
_id
;
this
.
service
.
editarCargo
(
this
.
cargoInicial
.
_id
,
this
.
cargoConvocatoria
)
.
then
(
cargo
=>
{
...
...
client/app/cargos/modals/cargos.modal.html
View file @
1f701d3e
...
...
@@ -29,7 +29,7 @@
</div>
<div
class=
"col-md-10"
>
<label>
Nombre del cargo
</label>
<textarea
type=
"text"
name=
"nombre"
class=
"form-control"
ng-m
inlength=
"5"
ng-model=
"vm.cargo
.nombre"
<textarea
type=
"text"
name=
"nombre"
class=
"form-control"
ng-m
odel=
"vm.cargoConvocatoria
.nombre"
required
></textarea>
<p
class=
"help-block"
ng-show=
"form.nombre.$error.required && vm.enviado"
>
Ingrese nombre del cargo
...
...
client/app/cargosConvocatorias/cargosConvocatorias.lista.html
View file @
1f701d3e
...
...
@@ -16,22 +16,25 @@
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
Nombre del cargo
</th>
<th
class=
"text-
right"
>
Op
ciones
</th>
<th
class=
"text-primary"
>
Nombre del cargo
</th>
<th
class=
"text-
primary"
width=
"15%"
>
Ac
ciones
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"cargo in vm.cargosConvocatoria.rows"
ui-sref=
"entidades.convocatorias.cargosConvocatoria.editar({entidadId:vm.entidadId,convocatoriaId:vm.convocatoriaId,cargoConvocatoriaId:cargo._id})"
>
<tr
ng-repeat=
"cargo in vm.cargosConvocatoria.rows"
>
<td>
{{cargo.Cargo.nombre}}
</td>
<td
class=
"text-right"
>
<td>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-info-outline btn-xs"
role=
"button"
ui-sref=
"cargos.editar({cargoId:cargo._id})"
ng-click=
"$event.stopPropagation()"
>
<a
class=
"btn btn-primary-outline btn-xs"
role=
"button"
uib-tooltip=
"Detalle"
tooltip-placement=
"bottom-right"
ui-sref=
"entidades.convocatorias.cargosConvocatoria.editar({entidadId:vm.entidadId,convocatoriaId:vm.convocatoriaId,cargoConvocatoriaId:cargo._id})"
>
<i
class=
"fa fa-navicon fa-lg"
></i>
</a>
<a
class=
"btn btn-info-outline btn-xs"
role=
"button"
uib-tooltip=
"Editar"
tooltip-placement=
"top"
ui-sref=
"cargos.editar({cargoId:cargo._id})"
>
<i
class=
"fa fa-edit fa-lg"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
role=
"button"
ng-click=
"vm.eliminar(cargo);
$event.stopPropagation()
"
>
<a
class=
"btn btn-danger-outline btn-xs"
role=
"button"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom-left"
ng-click=
"vm.eliminar(cargo);"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
...
...
client/app/cargosConvocatorias/editar/cargosConvocatorias.editar.controller.js
View file @
1f701d3e
...
...
@@ -7,6 +7,8 @@
this
.
alertas
=
[];
this
.
estadoAnterior
=
$previousState
;
this
.
entidadId
=
$stateParams
.
entidadId
;
this
.
convocatoriaId
=
$stateParams
.
convocatoriaId
;
this
.
cargoConvocatoriaId
=
$stateParams
.
cargoConvocatoriaId
;
this
.
service
=
CargoConvocatoriaService
;
...
...
@@ -14,7 +16,6 @@
this
.
service
.
cargoConvocatoria
(
this
.
cargoConvocatoriaId
,
{
incluye
:
[{
entidad
:
'
Cargo
'
}]})
.
then
(
cargoConvocatoria
=>
{
console
.
log
(
cargoConvocatoria
);
this
.
cargoConvocatoria
=
cargoConvocatoria
;
})
}
...
...
client/app/cargosConvocatorias/editar/cargosConvocatorias.editar.html
View file @
1f701d3e
...
...
@@ -4,9 +4,9 @@
</div>
<div
class=
"col-sm-5 col-md-4 col-sm-offset-2"
>
<div
class=
"pull-right"
>
<a
class=
"btn btn-default header-button"
ng-click=
"vm.estadoAnterior.go(
)"
>
<a
class=
"btn btn-default header-button"
ui-sref=
"entidades.convocatorias.editar({entidadId:vm.entidadId, convocatoriaId: vm.convocatoriaId}
)"
>
<i
class=
"fa fa-arrow-left"
></i>
Regresar
Regresar
a Convocatoria
</a>
</div>
</div>
...
...
@@ -46,4 +46,3 @@
</blockquote>
</div>
</div>
client/app/convocatorias/convocatorias.controller.js
View file @
1f701d3e
...
...
@@ -77,6 +77,11 @@
});
})(
convocatoria
.
descripcion
,
convocatoria
);
}
validar
(){
console
.
log
(
'
validar?
'
);
}
}
angular
...
...
@@ -90,5 +95,3 @@
)
;
})();
client/app/convocatorias/convocatorias.lista.html
View file @
1f701d3e
...
...
@@ -29,23 +29,26 @@
<th><a
href=
""
ng-click=
"vm.ordenar('sigla')"
>
Descripción
</a></th>
<th><a
href=
""
ng-click=
"vm.ordenar('nombre')"
>
Inicio
</a></th>
<th><a
href=
""
ng-click=
"vm.ordenar('enlace_web')"
>
Finalización
</a></th>
<th
>
Op
ciones
</th>
<th
width=
"15%"
class=
"text-center text-primary"
>
Ac
ciones
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"convocatoria in vm.convocatorias.rows"
ui-sref=
"entidades.convocatorias.editar({entidadId:vm.entidadId,convocatoriaId:convocatoria._id})"
>
<td>
{{convocatoria.descripcion}}
</td>
<td>
{{convocatoria.fechaInicio |date:'dd/MM/yyyy'}}
</td>
<td>
{{convocatoria.fechaFin|date:'dd/MM/yyyy'}}
</td>
<tr
ng-repeat=
"convocatoria in vm.convocatorias.rows"
>
<td
class=
"text-justify"
>
{{convocatoria.descripcion}}
</td>
<td
class=
"vcenter"
>
{{convocatoria.fechaInicio |date:'dd/MM/yyyy'}}
</td>
<td
class=
"vcenter"
>
{{convocatoria.fechaFin|date:'dd/MM/yyyy'}}
</td>
<td>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-primary-outline btn-xs"
role=
"button"
ng-click=
"vm.editar(convocatoria);$event.stopPropagation();"
>
<a
class=
"btn btn-primary-outline btn-xs"
role=
"button"
uib-tooltip=
"Detalle"
tooltip-placement=
"bottom-right"
ui-sref=
"entidades.convocatorias.editar({entidadId:vm.entidadId,convocatoriaId:convocatoria._id})"
>
<i
class=
"fa fa-navicon fa-lg"
></i>
</a>
<a
class=
"btn btn-info-outline btn-xs"
role=
"button"
uib-tooltip=
"Editar"
tooltip-placement=
"top"
ng-click=
"vm.editar(convocatoria);"
>
<i
class=
"fa fa-edit fa-lg"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
role=
"button"
ng-click=
"vm.eliminar(convocatoria);
$event.stopPropagation();
"
>
<a
class=
"btn btn-danger-outline btn-xs"
role=
"button"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom-left"
ng-click=
"vm.eliminar(convocatoria);"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
...
...
client/app/convocatorias/editar/convocatorias.editar.controller.js
View file @
1f701d3e
...
...
@@ -13,7 +13,6 @@
this
.
convocatoriaId
=
$stateParams
.
convocatoriaId
;
this
.
convocatoriaService
=
ConvocatoriaService
;
this
.
convocatoriaService
.
convocatoria
(
this
.
convocatoriaId
)
.
then
(
convocatoria
=>
{
this
.
convocatoria
=
convocatoria
;
...
...
@@ -40,5 +39,3 @@
angular
.
module
(
'
moduloPersonalApp
'
)
.
controller
(
'
ConvocatoriaEditarCtrl
'
,
ConvocatoriaEditarController
);
})();
client/app/convocatorias/editar/convocatorias.editar.html
View file @
1f701d3e
<div
class=
"row"
>
<div
class=
"col-sm-
5
col-md-4 col-xs-6"
>
<div
class=
"col-sm-
4
col-md-4 col-xs-6"
>
<h3>
Convocatoria
</h3>
</div>
<div
class=
"col-sm-
5
col-md-4 col-sm-offset-2"
>
<div
class=
"pull-right"
>
<a
class=
"btn btn-default header-button"
ng-click=
"vm.estadoAnterior.go()
"
>
<div
class=
"col-sm-
6
col-md-4 col-sm-offset-2"
>
<div
class=
"pull-right
btn-group"
role=
"group
"
>
<a
class=
"btn btn-default header-button"
ui-sref=
"entidades.editar({entidadId:vm.entidadId})"
role=
"button
"
>
<i
class=
"fa fa-arrow-left"
></i>
Regresar
Regresar
a Entidad
</a>
<a
class=
"btn btn-primary
header-button"
ui-sref=
"migracionMoodle.categoria({entidadId:vm.entidadId, convocatoriaId:vm.convocatoriaId})
"
>
<a
class=
"btn btn-primary
-outline header-button"
ui-sref=
"migracionMoodle.categoria({entidadId:vm.entidadId, convocatoriaId:vm.convocatoriaId})"
role=
"button
"
>
<i
class=
"fa fa-database"
></i>
Migrar Datos
Moodle
Migrar Datos
</a>
</div>
</div>
...
...
client/app/entidades/editar/entidades.editar.controller.js
View file @
1f701d3e
...
...
@@ -20,7 +20,6 @@
this
.
tipoEntidadService
=
tipoEntidadService
;
this
.
oficinaService
=
OficinaService
;
this
.
service
=
EntidadService
;
this
.
service
.
getEntidad
(
this
.
id
)
.
then
(
entidad
=>
{
this
.
entidad
=
entidad
;
...
...
client/app/entidades/editar/entidades.editar.html
View file @
1f701d3e
...
...
@@ -5,9 +5,9 @@
</div>
<div
class=
"col-sm-5 col-md-4 col-sm-offset-2"
>
<div
class=
"pull-right"
>
<a
class=
"btn btn-default header-button"
ng-click=
"vm.estadoAnterior.go(
)"
>
<a
class=
"btn btn-default header-button"
ui-sref=
"entidades.lista({entidadId:vm.entidadId }
)"
>
<i
class=
"fa fa-arrow-left"
></i>
Regresar
Regresar
a Lista Entidades
</a>
</div>
</div>
...
...
client/app/entidades/entidades.lista.html
View file @
1f701d3e
...
...
@@ -17,14 +17,13 @@
<uib-alert
ng-repeat=
"alerta in vm.alertas"
type=
"{{alerta.tipo}}"
close=
"vm.alertas.splice($index,1)"
dismiss-on-timeout=
"3000"
>
{{alerta.mensaje}}
</uib-alert>
<div
class=
"table-responsive"
>
<table
class=
"table table-
striped
"
>
<table
class=
"table table-
hover
"
>
<thead>
<tr>
<th><a
href=
""
ng-click=
"vm.ordenar('nombres')"
>
Nombre
</a></th>
<th><a
href=
""
ng-click=
"vm.ordenar('siglas')"
>
Sigla
</a></th>
<th
colspan=
"2"
class=
"text-center"
>
Opciones
</th>
<th
colspan=
"2"
class=
"text-center
text-primary
"
>
Opciones
</th>
</tr>
</thead>
<tbody>
...
...
@@ -34,13 +33,15 @@
<td
class=
"text-center"
>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-primary-outline btn-xs"
role=
"button"
ui-sref=
"entidades.organigrama({entidadId:entidad._id})"
>
ui-sref=
"entidades.organigrama({entidadId:entidad._id})"
uib-tooltip=
"Organigrama"
tooltip-placement=
"bottom-right"
>
<i
class=
"fa fa-sitemap fa-lg"
></i>
</a>
<a
class=
"btn btn-info-outline btn-xs"
ui-sref=
"entidades.editar({entidadId:entidad._id})"
role=
"button"
ng-click=
"vm.editar(entidad)"
>
<a
class=
"btn btn-info-outline btn-xs"
role=
"button"
ui-sref=
"entidades.editar({entidadId:entidad._id})"
role=
"button"
ng-click=
"vm.editar(entidad)"
uib-tooltip=
"Editar"
tooltip-placement=
"top"
>
<i
class=
"fa fa-edit fa-lg"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
href=
"#"
role=
"button"
ng-click=
"vm.eliminar(entidad)"
>
<a
class=
"btn btn-danger-outline btn-xs"
role=
"button"
ng-click=
"vm.eliminar(entidad)"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom-left"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
...
...
client/app/entidades/entidades.scss
View file @
1f701d3e
...
...
@@ -18,3 +18,10 @@
.chevron-up-toggle.collapsed
>
div
:after
,
.chevron-up-toggle.collapsed
>
h3
:after
,
.chevron-up-toggle.collapsed
>
h4
:after
{
content
:
"\e114"
;
}
.table-hover
>
tbody
>
tr
:hover
>
td
,
.table-hover
>
tbody
>
tr
:hover
>
th
{
background-color
:
#FAFAFA
;
color
:
#000
;
}
.vcenter
{
vertical-align
:middle
!
important
;
}
client/app/etapas/etapas.lista.html
View file @
1f701d3e
...
...
@@ -24,28 +24,33 @@
<div
class=
"list-group-item"
ng-repeat=
"etapa in vm.etapas.rows"
ui-tree-node
>
<div>
<span
class=
"pull-right"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-info-outline"
ng-click=
"vm.editar(etapa);$event.stopPropagation();console.log('editar');"
><i
class=
"fa fa-edit fa-lg"
></i></button>
<button
type=
"button"
class=
"btn btn-danger-outline"
ng-click=
"vm.eliminar(etapa);$event.stopPropagation();"
>
<i
class=
"fa fa-trash fa-lg"
></i></button>
</div>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-info-outline btn-xs"
href=
"#"
role=
"button"
uib-tooltip=
"Editar"
tooltip-placement=
"bottom-right"
ng-click=
"vm.editar(etapa);"
>
<i
class=
"fa fa-edit fa-lg"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
href=
"#"
role=
"button"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom-left"
ng-click=
"vm.eliminar(etapa);"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
</span>
<h4
class=
"list-group-item-heading"
ui-tree-handle
>
{{etapa.nombre}}
<small>
porcentajes:
</small>
</h4>
<small>
Porcentaje de aprobación:
</small>
<div
class=
"progress"
>
<div
class=
"progress-bar progress-bar-success"
style=
"width: {{etapa.porcentajeMinimo}}%"
aria-valuenow=
"{{etapa.porcentajeMinimo}}"
>
{{etapa.porcentajeMinimo}} %
</div>
<div
class=
"progress-bar progress-bar-primary progress-bar-striped"
aria-valuenow=
"{{etapa.porcentaje}}"
<div
class=
"progress-bar progress-bar-success progress-bar-striped"
aria-valuenow=
"{{etapa.porcentaje}}"
style=
"width: {{etapa.porcentaje-etapa.porcentajeMinimo}}%"
>
{{etapa.porcentaje}} %
</div>
</div>
<small>
Porcentajes de la etapa:
</small>
<div
class=
"progress"
>
<div
class=
"progress-bar progress-bar-primary"
style=
"width: {{etapa.porcentajeMinimo}}%"
aria-valuenow=
"{{etapa.porcentajeMinimo}}"
>
{{etapa.porcentajeMinimo}} %
</div>
</div>
</div>
</div>
</div>
...
...
client/app/evaluaciones/evaluaciones.controller.js
View file @
1f701d3e
...
...
@@ -63,7 +63,6 @@
let
parametros
=
{
pagina
:
this
.
paginaActual
,
elementos
:
10
};
this
.
convocatoriaService
.
evaluaciones
(
this
.
convocatoriaId
,
parametros
)
.
then
(
evaluaciones
=>
{
console
.
log
(
evaluaciones
);
this
.
evaluaciones
=
evaluaciones
;
})
}
...
...
client/app/evaluaciones/evaluaciones.lista.html
View file @
1f701d3e
...
...
@@ -25,21 +25,21 @@
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
Nombre
</th>
<th
class=
"text-
right"
>
Op
ciones
</th>
<th
class=
"text-primary"
>
Nombre
</th>
<th
class=
"text-
primary"
width=
"15%"
>
Ac
ciones
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"evaluacion in vm.evaluaciones.rows"
>
<td>
{{evaluacion.nombre}}
</td>
<td
class=
"text-
right
"
>
<td
class=
"text-
center
"
>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-info-outline btn-xs"
role=
"button"
ng-click=
"vm.editar(evaluacion);
$event.stopPropagation();
"
>
<a
class=
"btn btn-info-outline btn-xs"
role=
"button"
uib-tooltip=
"Editar"
tooltip-placement=
"bottom-right"
ng-click=
"vm.editar(evaluacion);"
>
<i
class=
"fa fa-edit fa-lg"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
role=
"button"
ng-click=
"vm.eliminar(evaluacion);
$event.stopPropagation();
"
>
<a
class=
"btn btn-danger-outline btn-xs"
role=
"button"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom-left"
ng-click=
"vm.eliminar(evaluacion);"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
...
...
client/app/oficinas/editar/oficinas.editar.html
View file @
1f701d3e
...
...
@@ -24,10 +24,10 @@
<thead>
<tr>
<th><a
href=
""
ng-click=
"vm.ordenar('nombre')"
>
Nombre
</a></th>
<th>
Ubicación
</th>
<th
class=
"text-primary"
>
Ubicación
</th>
<th><a
href=
""
ng-click=
"vm.ordenar('pais')"
>
País
</a></th>
<th
class=
"text-
center"
width=
"12%
"
>
Tipo
</th>
<th
class=
"text-
center"
width=
"12%
"
>
Acciones
</th>
<th
class=
"text-
primary"
width=
"100
"
>
Tipo
</th>
<th
class=
"text-
primary"
width=
"100
"
>
Acciones
</th>
</tr>
</thead>
<tbody>
...
...
@@ -35,18 +35,17 @@
<td>
{{oficina.nombre}}
</td>
<td><a
href=
"https://www.google.com/maps?q={{oficina.latitud}},{{oficina.longitud}}"
>
Ubicación
</a></td>
<td>
{{oficina.pais}}
</td>
<td><label
class=
"label label-success"
ng-show=
"oficina.principal"
>
Oficina principal
</label><td>
<td
class=
"text-center"
>
<td><label
class=
"label label-success"
ng-show=
"oficina.principal"
>
Oficina principal
</label><
/
td>
<td>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-info-outline btn-xs"
href=
"#"
role=
"button"
<a
class=
"btn btn-info-outline btn-xs"
href=
"#"
role=
"button"
uib-tooltip=
"Editar"
tooltip-placement=
"bottom-right"
ng-click=
"vm.editarOficinaEntidad(oficina)"
>
<i
class=
"fa fa-edit fa-lg"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
href=
"#"
role=
"button"
<a
class=
"btn btn-danger-outline btn-xs"
href=
"#"
role=
"button"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom-left"
ng-click=
"vm.eliminarOficinaEntidad(oficina)"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
</td>
</tr>
...
...
client/app/oficinas/modals/oficinas.crear.modal.controller.js
View file @
1f701d3e
...
...
@@ -48,6 +48,7 @@
this
.
enviado
=
true
;
if
(
form
.
$valid
)
{
var
_this
=
this
;
this
.
oficina
.
fk_entidad
=
this
.
entidadSeleccionada
.
_id
;
this
.
oficinaService
.
crearOficina
(
this
.
oficina
)
.
then
(
oficina
=>
{
this
.
oficinaUnidad
.
principal
=
this
.
oficina
.
principal
;
...
...
client/app/oficinas/modals/oficinas.editar.modal.controller.js
View file @
1f701d3e
...
...
@@ -22,13 +22,16 @@
this
.
oficinaInicial
=
parametro
.
oficina
;
this
.
oficina
=
Object
.
assign
({},
parametro
.
oficina
);
this
.
oficinaUnidad
=
this
.
oficina
.
OficinaUnidad
;
}
guardarOficinaUnidad
(
form
)
{
this
.
enviado
=
true
;
if
(
form
.
$valid
)
{
this
.
oficinaUnidad
.
principal
=
this
.
oficina
.
principal
;
this
.
oficinaUnidad
.
fk_unidad_organizacional
=
this
.
unidadSeleccionada
.
_id
;
this
.
oficinaUnidad
.
fk_entidad
=
this
.
entidadSeleccionada
.
_id
;
this
.
service
.
editarOficinaUnidad
(
this
.
oficinaUnidad
.
_id
,
this
.
oficinaUnidad
)
.
then
(()
=>
{
return
this
.
oficinaService
.
editarOficina
(
this
.
oficina
.
_id
,
this
.
oficina
)
...
...
client/app/oficinas/modals/oficinas.modal.html
View file @
1f701d3e
...
...
@@ -8,7 +8,7 @@
<div
class=
"col-md-10"
>
<label>
Entidad
</label>
<div
class=
""
>
<select
class=
"form-control"
name=
"
entidades
"
ng-model=
"vm.entidadSeleccionada"
<select
class=
"form-control"
name=
"
fk_entidad
"
ng-model=
"vm.entidadSeleccionada"
ng-options=
"crg as (crg.nombre) for crg in vm.entidades.rows"
enabled=
"!vm.entidad"
required
>
</select>
<p
class=
"help-block"
ng-show=
"form.entidades.$error.required && vm.enviado"
>
...
...
client/app/personas/editar/personas.editar.controller.js
View file @
1f701d3e
...
...
@@ -16,7 +16,25 @@
this
.
comentarioService
=
comentarioService
;
this
.
id
=
$stateParams
.
postulanteId
;
this
.
estadoAnterior
=
$previousState
;
this
.
entidadId
=
$stateParams
.
entidadId
;
this
.
convocatoriaId
=
$stateParams
.
convocatoriaId
;
this
.
cargoConvocatoriaId
=
$stateParams
.
cargoConvocatoriaId
;
this
.
tags
=
{
count
:
0
};
this
.
atras
=
'
personas.lista
'
;
this
.
atrasTexto
=
'
Listado personas
'
;
if
(
this
.
entidadId
&&
this
.
convocatoriaId
&&
this
.
cargoConvocatoriaId
){
var
variables
=
{
entidadId
:
this
.
entidadId
,
convocatoriaId
:
this
.
convocatoriaId
,
cargoConvocatoriaId
:
this
.
cargoConvocatoriaId
}
this
.
atrasTexto
=
'
Regresar a Cargo Postulación
'
;
//entidades.convocatorias.cargosConvocatoria.editar({entidadId:vm.entidadId,convocatoriaId:vm.convocatoriaId,cargoConvocatoriaId:cargo._id})
this
.
atras
=
'
entidades.convocatorias.cargosConvocatoria.editar({entidadId:
'
+
this
.
entidadId
+
'
, convocatoriaId:
'
+
this
.
convocatoriaId
+
'
, cargoConvocatoriaId:
'
+
this
.
cargoConvocatoriaId
+
'
})
'
;
}
this
.
service
.
getPersona
(
this
.
id
,
{
incluye
:
[
{
entidad
:
'
Tags
'
},
...
...
@@ -26,7 +44,6 @@
]
}).
then
(
postulante
=>
{
this
.
postulante
=
postulante
;
console
.
log
(
postulante
);
});
this
.
tagService
.
getTags
()
.
then
(
tags
=>
{
...
...
client/app/personas/editar/personas.editar.html
View file @
1f701d3e
...
...
@@ -5,9 +5,9 @@
</div>
<div
class=
"col-sm-5 col-md-4 col-sm-offset-2"
>
<div
class=
"pull-right"
>
<a
class=
"btn btn-default header-button"
ng-click=
"vm.estadoAnterior.go()
"
>
<a
class=
"btn btn-default header-button"
ui-sref=
"{{vm.atras}}
"
>
<i
class=
"fa fa-arrow-left"
></i>
Regresar
{{vm.atrasTexto}}
</a>
</div>
</div>
...
...
client/app/personas/personas.controller.js
View file @
1f701d3e
...
...
@@ -18,7 +18,6 @@
this
.
postulacionService
=
postulacionService
;
this
.
tagService
=
tagService
;
this
.
datosPersonalesBusqueda
=
[];
this
.
tags
=
[];
this
.
tagsSeleccionados
=
[];
...
...
client/app/personas/personas.js
View file @
1f701d3e
...
...
@@ -25,7 +25,7 @@ angular.module('moduloPersonalApp')
controllerAs
:
'
vm
'
})
.
state
(
'
personas.editar
'
,{
url
:
'
/:postulanteId/editar
'
,
url
:
'
/:postulanteId/editar
/:entidadId/:convocatoriaId/:cargoConvocatoriaId
'
,
templateUrl
:
'
app/personas/editar/personas.editar.html
'
,
controller
:
'
PersonaEditarCtrl
'
,
controllerAs
:
'
vm
'
...
...
client/app/postulaciones/postulaciones.controller.js
View file @
1f701d3e
...
...
@@ -12,12 +12,12 @@
this
.
ordenDescendente
=
false
;
this
.
paginaActual
=
1
;
this
.
entidadId
=
$stateParams
.
entidadId
;
this
.
convocatoriaId
=
$stateParams
.
convocatoriaId
;
this
.
cargoConvocatoriaId
=
$stateParams
.
cargoConvocatoriaId
;
this
.
postulaciones
=
{
count
:
0
};
this
.
cargoConvocatoriaService
=
CargoConvocatoriaService
;
this
.
service
=
postulacionService
;
this
.
datosPersonalesBusqueda
=
[];
this
.
tags
=
[];
this
.
tagsSeleccionados
=
[];
...
...
client/app/postulaciones/postulaciones.lista.html
View file @
1f701d3e
...
...
@@ -36,17 +36,17 @@
</div>
</div>
<div
class=
"table-responsive col-md-10"
>
<table
class=
"table table-
striped
"
>
<table
class=
"table table-
hover
"
>
<thead>
<tr>
<th
rowspan=
"2"
>
Nombres y Apellidos
</th>
<th
rowspan=
"2"
class=
"text-primary"
>
Nombres y Apellidos
</th>
<th
ng-repeat=
"etapa in vm.cargoConvocatoria.Etapas"
colspan=
"{{etapa.Evaluaciones.length}}"
class=
"text-center"
>
{{etapa.nombre}}
<small>
{{etapa.porcentaje}} %
</small>
<small
class=
"text-default"
>
{{etapa.porcentaje}} %
</small>
</th>
<th
rowspan=
"2"
>
Total
</th>
<th
rowspan=
"2"
class=
"text-
right
"
>
Opciones
</th>
<th
rowspan=
"2"
class=
"text-primary"
>
Total
</th>
<th
rowspan=
"2"
class=
"text-
center text-primary"
width=
"25%
"
>
Opciones
</th>
</tr>
<tr>
<!--<th ng-repeat="evaluacion in vm.cargoConvocatoria.Evaluaciones" class="text-center">-->
...
...
@@ -55,7 +55,7 @@
<th
ng-repeat=
"etapa in vm.cargoConvocatoria.Etapas"
colspan=
"{{etapa.Evaluaciones.length}}"
>
<table
class=
"table"
style=
"background-color: transparent;margin-bottom: 0"
>
<tr>
<td
ng-repeat=
"evaluacion in etapa.Evaluaciones"
class=
"text-center"
<td
ng-repeat=
"evaluacion in etapa.Evaluaciones"
class=
"text-center
text-primary
"
style=
"padding: 0;width: {{100/etapa.Evaluaciones.length}}%;border-top:0;"
>
{{evaluacion.nombre}}
</td>
...
...
@@ -67,7 +67,8 @@
<tbody>
<tr
ng-repeat=
"postulacion in vm.postulaciones.rows"
ng-class=
"{success:postulacion.contratado}"
ng-show=
"postulacion.Cargos.length == 0 || postulacion.contratado"
>
<td>
{{postulacion.nombres}}, {{postulacion.apellidos}}
</td>
<td
nowrap
>
{{postulacion.nombres}}, {{postulacion.apellidos}}
</td>
<td
ng-repeat=
"etapa in postulacion.Etapas"
colspan=
"{{etapa.Evaluaciones.length}}"
ng-class=
"{danger:etapa.calificacion <etapa.porcentajeMinimo,success:etapa.calificacion >=etapa.porcentajeMinimo}"
>
<table
class=
"table"
style=
"background-color: transparent;margin-bottom: 0"
>
...
...
@@ -80,16 +81,20 @@
</tr>
</table>
</td>
<td>
{{postulacion.total}}
</td>
<td
class=
"text-right
"
>
<td
width=
"5%"
class=
"text-right"
>
{{postulacion.total}}
</td>
<td
width=
"22%
"
>
<div
class=
"btn-group"
role=
"group"
>
<a
class=
"btn btn-success-outline btn-xs"
href=
"#"
role=
"button"
ng-disabled=
"vm.existeRelacionLaboral"
ng-click=
"vm.contratar(postulacion)"
>
ng-click=
"vm.contratar(postulacion)"
uib-tooltip=
"Contratar"
tooltip-placement=
"bottom-right"
>
<i
class=
"fa fa-lg fa-pencil-square-o"
></i>
Relación laboral
</a>
<a
class=
"btn btn-info-outline btn-xs"
role=
"button"
uib-tooltip=
"Editar Postulante"
tooltip-placement=
"bottom"
ui-sref=
"personas.editar({postulanteId:postulacion._id, entidadId:vm.entidadId, convocatoriaId:vm.convocatoriaId, cargoConvocatoriaId:vm.cargoConvocatoriaId})"
>
<i
class=
"fa fa-lg fa-user"
></i>
</a>
<a
class=
"btn btn-danger-outline btn-xs"
href=
"#"
role=
"button"
ng-click=
"vm.eliminar(postulacion)"
>
ng-click=
"vm.eliminar(postulacion)"
uib-tooltip=
"Eliminar postulación"
tooltip-placement=
"bottom-left"
>
<i
class=
"fa fa-trash fa-lg"
></i>
</a>
</div>
...
...
@@ -110,4 +115,3 @@
previous-Text=
"Anterior"
></uib-pagination>
</div>
</blockquote>
client/app/relacionesLaborales/relacionesLaborales.lista.html
View file @
1f701d3e
...
...
@@ -22,13 +22,13 @@
<blockquote
class=
"col-md-12 blockquote-primary"
ng-show=
"vm.relacionesLaborales.count>0"
>
<div
class=
"row"
>
<div
class=
"table-responsive col-md-10"
>
<table
class=
"table table-
condensed table-
hover"
>
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
Nombres y Apellidos
</th>
<th>
Estado
</th>
<th>
Inicio de contratacion
</th>
<th
class=
"text-
right
"
>
Acción
</th>
<th
class=
"text-primary"
>
Nombres y Apellidos
</th>
<th
class=
"text-primary"
>
Estado
</th>
<th
class=
"text-primary"
>
Inicio de contratacion
</th>
<th
class=
"text-
center text-primary"
width=
"15%
"
>
Acción
</th>
</tr>
</thead>
<tbody>
...
...
@@ -36,14 +36,14 @@
ng-class=
"{success:relacionLaboral.estado}"
>
<td>
{{relacionLaboral.Persona.nombres}} {{relacionLaboral.Persona.apellidos}}
</td>
<td>
<button
type=
"button"
class=
"btn btn-xs"
ng-class=
"{'btn-success-outline':relacionLaboral.estado}"
<button
type=
"button"
class=
"btn btn-xs"
ng-class=
"{'btn-success-outline':relacionLaboral.estado}"
uib-tooltip=
"Cambiar a {{relacionLaboral.estado? 'Concluido':'Vigente'}}"
tooltip-placement=
"bottom"
ng-click=
"vm.cambiarEstadoContratacion(relacionLaboral);$event.stopPropagation();"
>
{{relacionLaboral.estado? 'Vigente':'Concluido'}}
</button>
</td>
<td>
{{relacionLaboral.fechaContratacion | date:"dd/MM/yyyy"}}
</td>
<td
class=
"text-
right
"
>
<button
type=
"button"
class=
"btn btn-danger-outline btn-xs"
<td
class=
"text-
center
"
>
<button
type=
"button"
class=
"btn btn-danger-outline btn-xs"
uib-tooltip=
"Eliminar"
tooltip-placement=
"bottom"
ng-click=
"vm.eliminarContratacion(relacionLaboral);$event.stopPropagation();"
><i
class=
"fa fa-lg fa-trash"
title=
"Eliminar contratación"
></i>
</button>
...
...
client/app/tiposDato/tiposDato.lista.html
View file @
1f701d3e
...
...
@@ -18,23 +18,23 @@
dismiss-on-timeout=
"5000"
>
{{alerta.mensaje}}
</uib-alert>
<div
class=
"table-responsive"
>
<table
class=
"table table-
striped
"
>