Commit 6133ad9f authored by Eric Seigne's avatar Eric Seigne
Browse files

uuid

parent ecb7afb0
......@@ -31,6 +31,7 @@
</ons-row>
<input type="hidden" name="energievalue" id="energievalue" value="">
<input type="hidden" name="uuid" id="uuid" value="">
<input type="hidden" name="puissancevalue" id="puissancevalue" value="">
<input type="hidden" name="typevalue" id="typevalue" value="">
......@@ -125,8 +126,9 @@
let type = document.getElementById('typevalue').value;
let kmbefore = document.getElementById('kmbefore').value;
let immat = document.getElementById('immat').value;
let uuid = document.getElementById('uuid').value;
addVehicule("vehicules", nom, energie, puissance, type, kmbefore, immat).then(
addVehicule("vehicules", nom, energie, puissance, type, kmbefore, immat, uuid).then(
ons.notification.alert("Véhicule ajouté.", { title: "Information" }).then(
function () { closePage(true); }
)
......
......@@ -30,6 +30,7 @@
</ons-col>
</ons-row>
<input type="hidden" name="uuid" id="uuid" value="">
<input type="hidden" name="energievalue" id="energievalue" value="">
<input type="hidden" name="puissancevalue" id="puissancevalue" value="">
<input type="hidden" name="typevalue" id="typevalue" value="">
......@@ -121,8 +122,9 @@
let type = document.getElementById('typevalue').value;
let kmbefore = 0; //En vehicule pro on s'en fiche
let immat = document.getElementById('immat').value;
let uuid = document.getElementById('uuid').value;
addVehicule("vehiculesPro", nom, energie, puissance, type, kmbefore, immat).then(
addVehicule("vehiculesPro", nom, energie, puissance, type, kmbefore, immat, uuid).then(
ons.notification.alert("Véhicule ajouté.", { title: "Information" }).then(
function () { closePage(true); }
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment