From 0547260228f1743d2be391d60eb9d7b7546fd249 Mon Sep 17 00:00:00 2001 From: francesco Date: Tue, 20 Jan 2026 09:22:21 +0100 Subject: [PATCH] Update templates/index.html Implementata stampa tramite CUPS --- templates/index.html | 293 ++++++++----------------------------------- 1 file changed, 55 insertions(+), 238 deletions(-) diff --git a/templates/index.html b/templates/index.html index 12c7975..6a9c4f4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,134 +3,22 @@ - Software Cemento {{ rev if rev else 'Rev.11.0' }} + Software Cemento {{ rev }} @@ -139,138 +27,67 @@
+ {% for n, k in [('Altezza','a'),('Larghezza','l'),('Profondità','p')] %} - - - - - - - - - - - - - + + + + {% endfor %}
Dimensioni Totali
Altezza - -
Larghezza - -
Profondità - - {{n}}
- - - - - - - + + + +
Miscela (Parti)
Cemento:
Sabbia:
Ghiaia:
Miscela (Parti) / Pesi (Kg) / Costi (€)
CEM SAB GHI
Kg/S Kg/S Kg/S
€/S €/S €/S
- - - - - - - - -
Peso sacchetti (Kg)
Cemento:
Kg
Sabbia:
Kg
Ghiaia:
Kg
- - - - - - - - -
Costo sacchetti (€)
Cemento:
Sabbia:
Ghiaia:
- - - - - - -
Attrezzatura
Volume utile Betoniera:
L
- +

Volume Betoniera (L):

-
-

Risultati

- {{ rev if rev else 'Rev.1.0' }} +
+

Risultati

{{ rev }}
- {% if res %}
-
- Volume Totale: {{ res.vol }} m³ | Peso Stimato: {{ res.peso }} Kg -
+ Volume: {{ res.vol }} m³ | Peso: {{ res.peso }} Kg

-
-

Acquisti Necessari

- Cemento: {{ res.s_cem }} sacchetti
- Sabbia: {{ res.s_sab }} sacchetti
- Ghiaia: {{ res.s_ghi }} sacchetti
- Acqua: {{ res.acqua }} L
- Totale materiale: {{ res.tot_sacc }} sacchetti -
-
-

Costo stimato

- Costo totale: {{ res.costo_tot }} € -
+ Cemento: {{ res.s_cem }} sacchi | Sabbia: {{ res.s_sab }} sacchi | Ghiaia: {{ res.s_ghi }} sacchi
+ Acqua: {{ res.acqua }} L | Totale: {{ res.costo_tot }} €
-
-

Dosaggio per ogni carico ({{ res.n_c }} carichi):

-
- • Cemento: {{ res.bc_cem }} sacchetti
- • Sabbia: {{ res.bc_sab }} sacchetti
- • Ghiaia: {{ res.bc_ghi }} sacchetti
- • Acqua: {{ res.bc_aq }} L -
-
+ Ogni carico ({{ res.n_c }} cicli):
+ • Cem: {{ res.bc_cem }} | Sab: {{ res.bc_sab }} | Ghi: {{ res.bc_ghi }} sacchi
- +
- - - - - - - - - - - - - - - - + + + + + +
+ + +
- +
{% else %} -

Inserisci i dati dimensionali e i costi, poi premi "Esegui Calcolo".

+

Premi "Esegui Calcolo".

{% endif %}
+ + \ No newline at end of file