paginacion y botones en reportes

parent 8da5fe05
......@@ -161,7 +161,7 @@
</td>
<td>{{product.size}}</td>
<td class="text-center">
<a title="View Report" {% if product.progress == 100 %}
<a title="View Report" {% if product.progress == 60 %}
href="{{ BASE_URL }}/reports/T15QZD_sclData/{{product.purchase_id}}"
{% else %}
href="#"
......@@ -283,8 +283,9 @@
{% block scripts %}
<script>
function openmodal(info) {
info2 = info.split(";");
$("#myModal").modal();
$("#log_info").append(info);
$("#log_info").append(info2);
}
</script>
{% endblock%}
\ No newline at end of file
......@@ -96,8 +96,12 @@ def Reports(request):
progress = 50
if 'Extracting SCL information...' in open(log_info).read():
progress = 60
with open(log_info, 'r') as myfile:
log = myfile.read().replace('\n', '')
for p in json.loads(producto['productList']):
size = size + float(p['info']['size'][:-3])
if size > 1000:
......
Markdown is supported
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