From 88aad45fbb177470b1c5ab6bfc4da69d3f070987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sat, 3 Sep 2016 15:21:26 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20d=C3=A9but=20du=20form=20ac?= =?UTF-8?q?count=5Fcreate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/static/kfet/css/index.css | 69 +++++++++++++++++++ kfet/templates/kfet/account_create.html | 47 ++++++++----- .../kfet/account_create_autocomplete.html | 14 ++-- kfet/templates/kfet/kpsul.html | 6 ++ kfet/views.py | 3 +- 5 files changed, 115 insertions(+), 24 deletions(-) diff --git a/kfet/static/kfet/css/index.css b/kfet/static/kfet/css/index.css index 886aa8ae..c7f44821 100644 --- a/kfet/static/kfet/css/index.css +++ b/kfet/static/kfet/css/index.css @@ -189,3 +189,72 @@ textarea { padding-left: 20px; font-size:25px; } + +/* + * Pages formulaires seuls + */ + +.form-only .content-form { + margin:15px; + + background:#fff; + + padding:15px; +} + +.form-only #id_trigramme { + display:block; + width:200px; + height:80px; + margin:0 auto 15px; + border:1px solid #ccc; + + font-size:70px; + + text-align:center; + text-transform:uppercase; +} + +/* + * Specific account create + */ + +.highlight_autocomplete { + font-weight:bold; + text-decoration:underline; +} + +#search_results { + top:0 !important; + left:0 !important; +} + +#search_results ul { + list-style-type:none; + padding:0; + background:rgba(255,255,255,0.8); +} + +#search_results ul li.user_category { + font-weight:bold; + background:#c8102e; + color:#fff; +} + +#search_results ul li a { + display:block; + padding:5px 20px; + height:100%; + width:100%; +} + +#search_results ul li a:hover { + background:rgba(200,16,46,0.9); + color:#fff; + text-decoration:none; +} + +#search_results ul li span.text { + display:block; + padding:5px 20px; +} diff --git a/kfet/templates/kfet/account_create.html b/kfet/templates/kfet/account_create.html index ef6bc4ff..f875ae4a 100644 --- a/kfet/templates/kfet/account_create.html +++ b/kfet/templates/kfet/account_create.html @@ -13,19 +13,31 @@ {% include 'kfet/base_messages.html' %} -
- {% csrf_token %} - {{ trigramme_form }} -
- -
-
- {% include 'kfet/account_create_form.html' %} +
+
+
+ + {% csrf_token %} +
+ {{ trigramme_form.trigramme.errors }} + {{ trigramme_form.trigramme }} +
+
+ +
+
+
+
+ {% include 'kfet/account_create_form.html' %} +
+ {% if not perms.kfet.add_account %} + Authentification: + + {% endif %} +
- {% if not perms.kfet.add_account %} - - {% endif %} - +
+