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 0964049e
authored
2024-03-21 11:51:38 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Propago peso por el ABM
1 parent
12a21a28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
static/src/report.js
templates/form.html
static/src/report.js
View file @
0964049
...
...
@@ -33,6 +33,18 @@ for (var i = 0; i < ListenerFrenoMano.length; i++) {
agregaCampoAListenerFrenoMano
(
ListenerFrenoMano
[
i
]);
}
var
peso_genral_campo
=
document
.
getElementById
(
"peso_estatico_general"
);
peso_genral_campo
.
addEventListener
(
'input'
,
propagarCampoPeso
);
function
propagarCampoPeso
()
{
let
peso
=
peso_genral_campo
.
value
;
let
campos
=
[
"peso_freno_estatico_1"
,
"peso_freno_estatico_4"
,
"peso_freno_estatico_3"
,
"peso_freno_estatico_4"
,
"peso_estatico_1"
,
"peso_estatico_2"
,
"peso_estatico_freno_mano"
]
for
(
var
i
=
0
;
i
<
campos
.
length
;
i
++
)
{
document
.
getElementById
(
campos
[
i
]).
value
=
peso
;
}
}
function
agregaCampoAListenerFrenoMano
(
reportCampo
)
{
try
{
var
numero1Input
=
document
.
getElementById
(
reportCampo
);
...
...
templates/form.html
View file @
0964049
...
...
@@ -58,7 +58,7 @@
<br>
Rend. Derecho
<input
sub=
"suspension"
type=
"text"
name=
"rendimiento_derecho_{{ eje + 1 }}"
>
<br>
Peso Total
<input
sub=
"suspension"
type=
"text"
name=
"peso_estatico_{{ eje + 1 }}"
>
Peso Total
<input
sub=
"suspension"
type=
"text"
name=
"peso_estatico_{{ eje + 1 }}"
id=
"peso_estatico_{{ eje + 1 }}"
>
<br>
<br>
...
...
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