Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 6f262503
authored
2024-07-22 17:49:46 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Se mejora historico
1 parent
0c684495
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
static/src/historico.js
templates/historico.html
static/src/historico.js
View file @
6f26250
...
...
@@ -5,7 +5,7 @@ function CargarLista() {
"clear"
:
true
,
"params"
:
{
"ApiKey"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"id_cent"
:
"
0
61"
"id_cent"
:
"61"
}
};
...
...
@@ -30,18 +30,29 @@ function CargarLista() {
function
createHistoricoList
(
data
)
{
const
historicoDiv
=
document
.
getElementById
(
'div_historico'
);
historicoDiv
.
innerHTML
=
""
;
//historicoDiv.innerText = "Dominios del dia"
data
.
inspecciones
.
forEach
(
inspeccion
=>
{
const
div
=
document
.
createElement
(
'div'
);
div
.
textContent
=
inspeccion
.
name
+
" "
+
inspeccion
.
resultado
+
" "
+
inspeccion
.
fecha
+
" "
;
const
button
=
document
.
createElement
(
'button'
);
button
.
className
=
'PDFButton'
;
button
.
id
=
inspeccion
.
name
;
button
.
textContent
=
'Ir dominio '
;
const
div
=
document
.
createElement
(
'div'
);
//div.textContent = inspeccion.name + " " + inspeccion.resultado + " " + inspeccion.fecha + " ";
const
titulo
=
document
.
createElement
(
'H4'
);
titulo
.
textContent
=
inspeccion
.
name
+
" "
+
inspeccion
.
resultado
;
const
ftl
=
document
.
createElement
(
'H6'
);
ftl
.
textContent
=
"Linea "
+
inspeccion
.
linea
+
", Planilla "
+
inspeccion
.
numeroplanilla
+
", Categoria "
+
inspeccion
.
categoria
;
div
.
appendChild
(
titulo
);
div
.
appendChild
(
ftl
);
div
.
appendChild
(
button
);
const
separador
=
document
.
createElement
(
'hr'
)
separador
.
className
=
'custom-hr'
;
historicoDiv
.
appendChild
(
div
);
historicoDiv
.
appendChild
(
document
.
createElement
(
'br'
)
);
historicoDiv
.
appendChild
(
separador
);
});
}
...
...
templates/historico.html
View file @
6f26250
...
...
@@ -11,6 +11,15 @@
<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/cmu-typewriter" type="text/css" />
-->
<title>
Pruebas de Alineamiento
</title>
<style>
.custom-hr
{
border
:
none
;
border-top
:
1px
solid
#000
;
/* Personaliza el color y grosor aquí */
width
:
66.67%
;
/* Dos tercios del ancho de la página */
margin
:
20px
0
;
/* Ajusta el espacio alrededor de la línea aquí */
margin-left
:
0
;
/* Alinea la línea al inicio (izquierda) */
}
</style>
</head>
<body>
<div
>
...
...
@@ -19,11 +28,15 @@
Pueden ser completados a mano antes de convertir a PDF.
<br>
De no ser completados, se completaran automáticamente con el valor del campo 'Por defecto' al final de la página.
</div>
<div
class=
"DataCard"
id=
"div_historico"
>
</div>
<div
class=
"PDFButtonContainerFixed"
>
<h3>
Dominios del dia
</h3>
<button
class=
"PDFButton"
onclick=
"location.href='/'"
>
Carga
</button>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment