diff --git a/static/css/base.css b/static/css/base.css index 882cc797..ba1f45ef 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -152,3 +152,8 @@ th.long_text{ .table-borderless th { border: none !important; } + +/* nicer forms */ +.form-control { + height: auto; +} diff --git a/users/forms.py b/users/forms.py index f1b50652..c295c61d 100644 --- a/users/forms.py +++ b/users/forms.py @@ -334,6 +334,7 @@ class AdherentForm(FormRevMixin, FieldPermissionFormMixin, ModelForm): 'email', 'school', 'comment', + 'disclaimer', 'room', 'shell', 'telephone', diff --git a/users/models.py b/users/models.py index de342031..f0400352 100755 --- a/users/models.py +++ b/users/models.py @@ -238,6 +238,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, default=get_fresh_user_uid, unique=True ) + disclaimer = models.FileField(upload_to='disclaimers', blank=True) rezo_rez_uid = models.PositiveIntegerField( unique=True, blank=True, diff --git a/users/templates/users/user.html b/users/templates/users/user.html index f0e56618..bbc95599 100644 --- a/users/templates/users/user.html +++ b/users/templates/users/user.html @@ -33,6 +33,27 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block content %} {% bootstrap_form_errors userform %} + + + + +