8
0
Fork 0
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:
grisel-davy 2018-08-26 17:46:44 +02:00
parent 6a0a671bd3
commit 7d5b4bbe1e
2 changed files with 7 additions and 0 deletions

View file

@ -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',

View file

@ -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">