8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2025-02-04 06:24:22 +00:00

base du nouveau Form

This commit is contained in:
grisel-davy 2018-08-21 20:00:02 +02:00
parent 2747fa463f
commit 5dfe503510
2 changed files with 105 additions and 1 deletions

View file

@ -147,3 +147,8 @@ th.long_text{
.dashboard{
text-align: center;
}
.table-borderless td,
.table-borderless th {
border: none !important;
}

View file

@ -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.,
<form class="form" method="post">
{% csrf_token %}
{% massive_bootstrap_form userform 'room,school,administrators,members' %}
{# {% bootstrap_form userform %} #}
<h3>Informations générales</h3>
<div class="table-responsive">
<table class="table table-borderless">
<tr>
<th>
{{ userform.name.label_tag }}
</th>
<th>
{{ userform.surname.label_tag }}
</th>
<th>
{{ userform.pseudo.label_tag }}
</th>
</tr>
<tr>
<td>
{% render_field userform.name class="form-control" placeholder=userform.name.label %}
</td>
<td>
{% render_field userform.surname class="form-control" placeholder=userform.surname.label %}
</td>
<td>
{% render_field userform.pseudo class="form-control" placeholder=userform.pseudo.label %}
</td>
</tr>
<tr>
<td>
{{userform.name.help_text}}
</td>
<td>
{{userform.surname.help_text}}
</td>
<td>
{{userform.pseudo.help_text}}
<td>
</table>
</div>
<div class="table-responsive">
<table class="table table-borderless">
<tr>
<th>
{{ userform.email.label_tag }}
</th>
<td>
{% render_field userform.email class="form-control" placeholder=userform.email.label %}
</td>
</tr>
<tr>
<th>
{{ userform.comment.label_tag }}
</th>
<td>
{% render_field userform.comment class="form-control" placeholder=userform.comment.label %}
</td>
</tr>
<tr>
<th>
{{ userform.school.label_tag }}
</th>
<td>
{% render_field userform.school class="form-control" placeholder=userform.school.label %}
</td>
</tr>
<tr>
<th>
{{ userform.room.label_tag }}
</th>
<td>
{% render_field userform.room class="form-control" placeholder=userform.room.label %}
</td>
</tr>
</table>
</div>
<h3>Informations avancées</h3>
<div class="table-responsive">
<table class="table table-borderless">
<tr>
<th>
{{ userform.shell.label_tag }}
{% render_field field class="form-control is-valid" %}
</th>
<td>
{% render_field userform.shell class="form-control" placeholder=userform.shell.label %}
</td>
</tr>
<tr>
<th>
{{ userform.gpg_fingerprint.label_tag }}
</th>
<td>
{% render_field userform.gpg_fingerprint class="form-control" placeholder=userform.gpg_fingerprint.label %}
</td>
</tr>
</table>
</div>
{# {% massive_bootstrap_form userform 'room,school,administrators,members' %} #}
{% bootstrap_button action_name button_type="submit" icon="star" %}
</form>
{% if load_js_file %}