mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +00:00
Ajout du champ mail pour les clubs
This commit is contained in:
parent
6a0a671bd3
commit
7d5b4bbe1e
2 changed files with 7 additions and 0 deletions
|
@ -380,6 +380,7 @@ class ClubForm(FormRevMixin, FieldPermissionFormMixin, ModelForm):
|
|||
prefix = kwargs.pop('prefix', self.Meta.model.__name__)
|
||||
super(ClubForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||
self.fields['surname'].label = _("Name")
|
||||
self.fields['email'].label = _("Email address")
|
||||
self.fields['school'].label = _("School")
|
||||
self.fields['comment'].label = _("Comment")
|
||||
self.fields['room'].label = _("Room")
|
||||
|
@ -392,6 +393,7 @@ class ClubForm(FormRevMixin, FieldPermissionFormMixin, ModelForm):
|
|||
fields = [
|
||||
'surname',
|
||||
'pseudo',
|
||||
'email',
|
||||
'school',
|
||||
'comment',
|
||||
'room',
|
||||
|
|
|
@ -143,6 +143,11 @@ function submitBday() {
|
|||
|
||||
}
|
||||
</script>
|
||||
{% elif action_name == 'Create a club' %}
|
||||
<div class="form-group">
|
||||
{{ userform.email.label_tag }}
|
||||
{% render_field userform.email class="form-control" requiered=True %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Reference in a new issue