Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Asistencia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Billy Larru
Asistencia
Commits
9d1a776d
Commit
9d1a776d
authored
Aug 20, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mostrando detalle de rol
parent
bd9e4301
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
5 deletions
+28
-5
crearRolPolicia.js
src/main/webapp/js/pages/crearRolPolicia.js
+24
-1
detalleRol.jspf
...p/vistas/modals/policias/mantenimientoRol/detalleRol.jspf
+4
-4
No files found.
src/main/webapp/js/pages/crearRolPolicia.js
View file @
9d1a776d
...
...
@@ -92,7 +92,30 @@ function listarRolesPolicias() {
}).
then
((
datatable
)
=>
{
$
(
datatable
).
on
(
"click"
,
".ver-detalle"
,
function
()
{
let
data
=
$
(
datatable
).
DataTable
().
row
(
$
(
this
).
parents
(
"tr"
)).
data
();
debugger
axios
.
get
(
"modals/policias/mantenimientoRol/detalleRol.jspf"
).
then
((
response
)
=>
{
debugger
swal
({
title
:
'<strong>Detalle de rol</strong>'
,
html
:
response
.
data
,
showCloseButton
:
true
,
showCancelButton
:
true
,
focusConfirm
:
false
,
confirmButtonText
:
'<i class="fa fa-thumbs-up"></i> Great!'
,
confirmButtonAriaLabel
:
'Thumbs up, great!'
,
cancelButtonText
:
'Cancelar'
,
cancelButtonAriaLabel
:
'Thumbs down'
,
width
:
'30%'
,
onOpen
:
()
=>
{
$
(
"#spanNombres"
).
html
(
data
.
policia_nombres
);
$
(
"#spanSede"
).
html
(
data
.
sede_descripcion
);
$
(
"#spanHorario"
).
html
(
`
${
data
.
tiporol_descripcion
}
${
data
.
frecuencia_descripcion
}
`
);
$
(
"#spanRangoFechas"
).
html
(
`
${
data
.
fecha_inicio
}
-
${
data
.
fecha_fin
}
`
);
}
});
});
});
});
...
...
src/main/webapp/vistas/modals/policias/mantenimientoRol/detalleRol.jspf
View file @
9d1a776d
...
...
@@ -6,7 +6,7 @@
<div class="form-group">
<label>Apellidos y Nombres</label>
<span class="label label-left border-left-primary label-striped form-control"
>DEZA CORREA OSCAR MIGUEL
</span>
<span class="label label-left border-left-primary label-striped form-control"
id="spanNombres">
</span>
</div>
</div>
...
...
@@ -15,7 +15,7 @@
<div class="form-group">
<label>Sede</label>
<span class="label label-left border-left-primary label-striped form-control"
>LINCE
</span>
<span class="label label-left border-left-primary label-striped form-control"
id="spanSede">
</span>
</div>
</div>
...
...
@@ -23,14 +23,14 @@
<div class="row">
<div class="form-group">
<label>Horario</label>
<span class="label label-left border-left-primary label-striped form-control"
>AMANECIDA 24H IMPAR
</span>
<span class="label label-left border-left-primary label-striped form-control"
id="spanHorario">
</span>
</div>
</div>
<div class="row">
<div class="form-group">
<label>Rango de fechas</label>
<span class="label label-left border-left-primary label-striped form-control"
>01/06/2018 - 15/06/2018
</span>
<span class="label label-left border-left-primary label-striped form-control"
id="spanRangoFechas">
</span>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment