From 7a4bdfda6df3ca46f4805c145a42793cacc0809f Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 19 Jan 2018 18:02:22 +0100 Subject: Meilleur rendu du formulaire sur appareils mobiles --- static/celcatsanitizer/style.css | 7 +++++++ templates/qsjps.html | 10 +++++----- templates/qsjps_form.html | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/static/celcatsanitizer/style.css b/static/celcatsanitizer/style.css index b9d5dd9..5d05f9e 100644 --- a/static/celcatsanitizer/style.css +++ b/static/celcatsanitizer/style.css @@ -42,6 +42,13 @@ th { vertical-align: top; } +@media screen and (max-width: 439px) { + th, td { + display: block; + text-align: left; + } +} + @media print { body, .content { max-width: none; diff --git a/templates/qsjps.html b/templates/qsjps.html index 73290de..bb07b60 100644 --- a/templates/qsjps.html +++ b/templates/qsjps.html @@ -5,10 +5,10 @@ {% block body %}
Aucune salle trouvée
- {% endfor %} + {% for room in rooms %} +Aucune salle trouvée
+ {% endfor %}