From dd1758f543d45376ea64d6846152fbf229b936f9 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 17 Jan 2018 19:13:33 +0100 Subject: Meilleur formatage du formulaire avec des tableaux --- static/celcatsanitizer/style.css | 6 ++++++ templates/form_qsjps.html | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/static/celcatsanitizer/style.css b/static/celcatsanitizer/style.css index 825d140..b9d5dd9 100644 --- a/static/celcatsanitizer/style.css +++ b/static/celcatsanitizer/style.css @@ -36,6 +36,12 @@ li.course { margin-bottom: 20px; } +th { + text-align: right; + font-weight: normal; + vertical-align: top; +} + @media print { body, .content { max-width: none; diff --git a/templates/form_qsjps.html b/templates/form_qsjps.html index 2d97a89..3a9bcf8 100644 --- a/templates/form_qsjps.html +++ b/templates/form_qsjps.html @@ -3,8 +3,16 @@ {% block title %}QSJPS – {% endblock %} {% block body %} +

Trouver une salle

- {{ form }} - + + {% for field in form.visible_fields %} + + + + + {% endfor %} + +
{{ field.label_tag }}{{ field }}{% if field.errors %}
{{ field.errors|join:" " }}{% endif %}
{% endblock %} -- cgit v1.2.1