Aggiustato codebase pagina WebUI per larghezza mobile
This commit is contained in:
6
app.py
6
app.py
@@ -70,7 +70,9 @@ def delete_compito(id):
|
||||
@app.route("/ui")
|
||||
def web_ui():
|
||||
# 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:
|
||||
html += "<tr>"
|
||||
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 += "<input type=\"text\" name=\"descrizione\" placeholder=\"Descrizione compito\">"
|
||||
html += "<input type=\"submit\" value=\"Aggiungi compito\">"
|
||||
html += "</form>"
|
||||
html += "</form></body></html>"
|
||||
|
||||
return html, 200
|
||||
|
||||
|
||||
Reference in New Issue
Block a user