Aggiustato codebase pagina WebUI per larghezza mobile

This commit is contained in:
2026-03-05 13:15:48 +01:00
parent 11a3f8a31e
commit c2fab079a5

6
app.py
View File

@@ -70,7 +70,9 @@ def delete_compito(id):
@app.route("/ui") @app.route("/ui")
def web_ui(): def web_ui():
# Tabella compiti # Tabella compiti
html = "<table border>" html = "<html><head>"
html += "<meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>Gestione compiti</title>"
html += "</head><body><table border>"
for ciscomerda in compiti: for ciscomerda in compiti:
html += "<tr>" html += "<tr>"
html += f"<td>{ciscomerda["descrizione"]}</td><td><a href=\"/form_delete?id={ciscomerda["id"]}\" class=\"button\">Elimina</a>" html += f"<td>{ciscomerda["descrizione"]}</td><td><a href=\"/form_delete?id={ciscomerda["id"]}\" class=\"button\">Elimina</a>"
@@ -80,7 +82,7 @@ def web_ui():
html += "<form action=\"/form_add\">" html += "<form action=\"/form_add\">"
html += "<input type=\"text\" name=\"descrizione\" placeholder=\"Descrizione compito\">" html += "<input type=\"text\" name=\"descrizione\" placeholder=\"Descrizione compito\">"
html += "<input type=\"submit\" value=\"Aggiungi compito\">" html += "<input type=\"submit\" value=\"Aggiungi compito\">"
html += "</form>" html += "</form></body></html>"
return html, 200 return html, 200