|
|
|
@ -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 %} |
|
|
|
|