From 6ac9dab0fa62c012fedee9a06ecd515fc6b54938 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Wed, 20 Sep 2017 08:37:05 +0200 Subject: [PATCH] Convert OS and Type fields into datasets --- server.py | 2 +- templates/dispositivo/show.htm | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/server.py b/server.py index c2fd976..5253342 100644 --- a/server.py +++ b/server.py @@ -15,7 +15,7 @@ app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) -sistemioperativi = [" ", "CentOS", "Fedora", "OpenSUSE", "Red Hat", "Ubuntu", "Debian", "Windows Server 2003", +sistemioperativi = ["CentOS", "Fedora", "OpenSUSE", "Red Hat", "Ubuntu", "Debian", "Windows Server 2003", "Windows Server 2007", "Windows Server 2010", "Windows Server 2012", "Windows Server 2016", "Windows 98", "Windows ME", "Windows 2000", "Windows XP", "Windows Vista", "Windows 7", "Windows 8", "Windows 8.1", "Windows 10", "Altro"] diff --git a/templates/dispositivo/show.htm b/templates/dispositivo/show.htm index 8be9bbe..04c5ddb 100644 --- a/templates/dispositivo/show.htm +++ b/templates/dispositivo/show.htm @@ -66,11 +66,12 @@
- + {% for opzione in opzioni %} - + {% endfor %} - +
@@ -87,11 +88,12 @@
- + {% for sistema in sistemi %} - + {% endfor %} - +