mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 06:32:26 +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__)
|
prefix = kwargs.pop('prefix', self.Meta.model.__name__)
|
||||||
super(ClubForm, self).__init__(*args, prefix=prefix, **kwargs)
|
super(ClubForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||||
self.fields['surname'].label = _("Name")
|
self.fields['surname'].label = _("Name")
|
||||||
|
self.fields['email'].label = _("Email address")
|
||||||
self.fields['school'].label = _("School")
|
self.fields['school'].label = _("School")
|
||||||
self.fields['comment'].label = _("Comment")
|
self.fields['comment'].label = _("Comment")
|
||||||
self.fields['room'].label = _("Room")
|
self.fields['room'].label = _("Room")
|
||||||
|
@ -392,6 +393,7 @@ class ClubForm(FormRevMixin, FieldPermissionFormMixin, ModelForm):
|
||||||
fields = [
|
fields = [
|
||||||
'surname',
|
'surname',
|
||||||
'pseudo',
|
'pseudo',
|
||||||
|
'email',
|
||||||
'school',
|
'school',
|
||||||
'comment',
|
'comment',
|
||||||
'room',
|
'room',
|
||||||
|
|
|
@ -143,6 +143,11 @@ function submitBday() {
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</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 %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
Loading…
Reference in a new issue