From 0b04c2f6796e4f0bd29b4f2e21d44f0453b4453a Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sat, 29 Aug 2020 18:24:24 +0200 Subject: school year format, fix overlapping text in docs --- accounts/views.py | 7 +++- client/templates/client/about.html | 52 +++++++++++++++++++++++++- server/templates/server/download_doc.html | 62 +++++++++++++++---------------- 3 files changed, 88 insertions(+), 33 deletions(-) diff --git a/accounts/views.py b/accounts/views.py index 696391d..230e3e1 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -114,7 +114,12 @@ def personal(request): usercode.home_phone = request.POST["home_phone"] usercode.phone = request.POST["phone"] usercode.school = request.POST["school"] - usercode.year = request.POST["year"] + if request.POST["year"].isdigit(): + usercode.year = request.POST["year"] + else: + error = True + error_text = "L'anno scolastico deve essere un numero" + usercode.save() medic.emer_name = request.POST["emer_name"] diff --git a/client/templates/client/about.html b/client/templates/client/about.html index 64db725..ea32787 100644 --- a/client/templates/client/about.html +++ b/client/templates/client/about.html @@ -9,7 +9,7 @@ {% block content %}
-
+

@@ -32,10 +32,60 @@ You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/. +

Codice sorgente
https://git.thearcway.org/mafaldo/scout-subs/
+
+
Licenze Open-Source
+
MaterializeCSS https://github.com/Dogfalo/materialize +
+
+ Copyright (c) 2014-2019 Materialize +

+ Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: +

+ The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +

+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +
+
jQuery https://github.com/jquery/jquery +
+
+ Copyright OpenJS Foundation and other contributors, https://openjsf.org/ +

+ Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: +

+ The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. +

+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
diff --git a/server/templates/server/download_doc.html b/server/templates/server/download_doc.html index 3098fe0..fe7cf18 100644 --- a/server/templates/server/download_doc.html +++ b/server/templates/server/download_doc.html @@ -37,59 +37,59 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -106,23 +106,23 @@
- +
- +
- +
- +
- +
@@ -133,15 +133,15 @@
- +
- +
- +
@@ -161,15 +161,15 @@
- +
- +
- +
@@ -178,19 +178,19 @@
- +
- +
- +
- +
Deve assumere regolarmente medicamenti   @@ -203,7 +203,7 @@
- +
Informazioni particolari sullo stato di salute: (postumi di operazioni, incidenti, malattie, disturbi fisici)   @@ -216,7 +216,7 @@
- +
-- cgit v1.2.1