From 5dfe50351055b66623b0d87e9926ea618c187760 Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Tue, 21 Aug 2018 20:00:02 +0200 Subject: [PATCH] base du nouveau Form --- static/css/base.css | 5 ++ users/templates/users/user.html | 101 +++++++++++++++++++++++++++++++- 2 files changed, 105 insertions(+), 1 deletion(-) diff --git a/static/css/base.css b/static/css/base.css index 5748f538..882cc797 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -147,3 +147,8 @@ th.long_text{ .dashboard{ text-align: center; } + +.table-borderless td, +.table-borderless th { + border: none !important; +} diff --git a/users/templates/users/user.html b/users/templates/users/user.html index 1ed1a299..e11806d5 100644 --- a/users/templates/users/user.html +++ b/users/templates/users/user.html @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endcomment %} {% load bootstrap3 %} +{% load widget_tweaks %} {% load massive_bootstrap_form %} {% load static %} {% load i18n %} @@ -34,7 +35,105 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% csrf_token %} - {% massive_bootstrap_form userform 'room,school,administrators,members' %} + {# {% bootstrap_form userform %} #} +

Informations générales

+
+ + + + + + + + + + + + + + +
+ {{ userform.name.label_tag }} + + {{ userform.surname.label_tag }} + + {{ userform.pseudo.label_tag }} +
+ {% render_field userform.name class="form-control" placeholder=userform.name.label %} + + {% render_field userform.surname class="form-control" placeholder=userform.surname.label %} + + {% render_field userform.pseudo class="form-control" placeholder=userform.pseudo.label %} +
+ {{userform.name.help_text}} + + {{userform.surname.help_text}} + + {{userform.pseudo.help_text}} + +
+
+
+ + + + + + + + + + + + + + + + + +
+ {{ userform.email.label_tag }} + + {% render_field userform.email class="form-control" placeholder=userform.email.label %} +
+ {{ userform.comment.label_tag }} + + {% render_field userform.comment class="form-control" placeholder=userform.comment.label %} +
+ {{ userform.school.label_tag }} + + {% render_field userform.school class="form-control" placeholder=userform.school.label %} +
+ {{ userform.room.label_tag }} + + {% render_field userform.room class="form-control" placeholder=userform.room.label %} +
+
+ + +

Informations avancées

+
+ + + + + + + + + +
+ {{ userform.shell.label_tag }} + {% render_field field class="form-control is-valid" %} + + {% render_field userform.shell class="form-control" placeholder=userform.shell.label %} +
+ {{ userform.gpg_fingerprint.label_tag }} + + {% render_field userform.gpg_fingerprint class="form-control" placeholder=userform.gpg_fingerprint.label %} +
+
+ {# {% massive_bootstrap_form userform 'room,school,administrators,members' %} #} {% bootstrap_button action_name button_type="submit" icon="star" %}
{% if load_js_file %}