diff --git a/users/migrations/0078_auto_20180826_1440.py b/users/migrations/0078_auto_20180826_1440.py new file mode 100644 index 00000000..52ddb96e --- /dev/null +++ b/users/migrations/0078_auto_20180826_1440.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2018-08-26 12:40 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0077_auto_20180824_1750'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='disclaimer', + field=models.FileField(blank=True, upload_to='disclaimers'), + ), + migrations.AlterField( + model_name='user', + name='state', + field=models.IntegerField(choices=[(0, 'STATE_ACTIVE'), (1, 'STATE_DISABLED'), (2, 'STATE_ARCHIVE')], default=0), + ), + ] diff --git a/users/templates/users/user.html b/users/templates/users/user.html index efb985c1..526c7447 100644 --- a/users/templates/users/user.html +++ b/users/templates/users/user.html @@ -59,6 +59,7 @@ function submitBday() {

Informations générales

+ {% if action_name == 'Create a user' %}
{{ userform.name.label_tag }} @@ -73,7 +74,20 @@ function submitBday() { {% render_field userform.pseudo class="form-control" requiered=True %}
- + {% elif action_name == 'Create a club' %} +
+
+ {{ userform.surname.label_tag }} + {% render_field userform.surname class="form-control" requiered=True %} +
+
+ {{ userform.pseudo.label_tag }} + {% render_field userform.pseudo class="form-control" requiered=True %} +
+
+ {% endif %} + + {% if action_name == 'Create a user' %}
{{ userform.email.label_tag }} @@ -129,6 +143,7 @@ function submitBday() { } + {% endif %}
{{ userform.school.label_tag }} @@ -142,7 +157,14 @@ function submitBday() { {{ userform.comment.label_tag }} {% render_field userform.comment class="form-control" %}
+ {% if action_name == 'Create a club' %} +
+ {{ userform.mailing.label_tag }} + +
+ {% endif %} +

Informations avancées (facultatif)

@@ -155,6 +177,7 @@ function submitBday() { {% render_field userform.shell class="form-control" placeholder=userform.shell.label %} + {% if action_name == 'Create a user' %} + {% endif %}
{{ userform.gpg_fingerprint.label_tag }} @@ -163,10 +186,11 @@ function submitBday() { {% render_field userform.gpg_fingerprint class="form-control" placeholder=userform.gpg_fingerprint.label %}
- + {% if load_js_file %}