modifs ???

This commit is contained in:
2021-08-03 08:15:13 +02:00
parent d47e2a2378
commit 59d42f81ac
4 changed files with 11 additions and 7 deletions

View File

@@ -47,9 +47,12 @@
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-2">Quantité</label> <label class="control-label col-sm-2">Quantité</label>
<div class="col-sm-10"> <div class="col-sm-10">
<div class="input-group">
<span class="input-group-addon" id="unite">.00</span>
<input class="form-control" type="text" id="qte" name="qte" value="${ligne.qte}"> <input class="form-control" type="text" id="qte" name="qte" value="${ligne.qte}">
</div> </div>
</div> </div>
</div>
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-2">Prix HT</label> <label class="control-label col-sm-2">Prix HT</label>
<div class="col-sm-10"> <div class="col-sm-10">
@@ -196,11 +199,13 @@ $(document).ready(function() {
var ref = response[0]['ref']; var ref = response[0]['ref'];
var libelle = response[0]['libelle']; var libelle = response[0]['libelle'];
var prixht = response[0]['prixht']; var prixht = response[0]['prixht'];
var unite = response[0]['unite'];
// Set value to textboxes // Set value to textboxes
document.getElementById('ref').value = ref; document.getElementById('ref').value = ref;
document.getElementById('libelle').value = libelle; document.getElementById('libelle').value = libelle;
document.getElementById('prixht').value = prixht; document.getElementById('prixht').value = prixht;
document.getElementById("unite").innerHTML= unite;
} }
} }
}); });

View File

@@ -34,10 +34,6 @@
<a href="${request.application_url}/text_list"><span class="glyphicon glyphicon-list logo-primary"></span></a> <a href="${request.application_url}/text_list"><span class="glyphicon glyphicon-list logo-primary"></span></a>
<h4>TEXTES EMAIL</h4> <h4>TEXTES EMAIL</h4>
</div> </div>
<div class="col-sm-3">
<a href="${request.application_url}/new_home"><span class="glyphicon glyphicon-dashboard logo-primary"></span></a>
<h4>PROTOTYPE HOME</h4>
</div>
</div> </div>
<br /> <br />
<div class="row text-center"> <div class="row text-center">

View File

@@ -65,16 +65,19 @@
var options_ca_3y_1 = { var options_ca_3y_1 = {
title: '${title1}', title: '${title1}',
colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'], colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'],
pieHole: 0.3,
}; };
var options_ca_3y_2 = { var options_ca_3y_2 = {
title: '${title2}', title: '${title2}',
colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'], colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'],
pieHole: 0.3,
}; };
var options_ca_3y_3 = { var options_ca_3y_3 = {
title: '${title3}', title: '${title3}',
colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'], colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'],
pieHole: 0.3,
}; };
var chart_ca_12m = new google.visualization.ColumnChart(document.getElementById('chart_ca_12m')); var chart_ca_12m = new google.visualization.ColumnChart(document.getElementById('chart_ca_12m'));

View File

@@ -410,6 +410,6 @@ def ajax_article(request):
d['ref'] = items.ref d['ref'] = items.ref
d['libelle'] = items.libelle d['libelle'] = items.libelle
d['prixht'] = "%.2f" % items.prixht d['prixht'] = "%.2f" % items.prixht
d['unite'] = items.unite
liste.append(d) liste.append(d)
return Response(json.dumps(liste)) return Response(json.dumps(liste))