1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-08 06:50:19 +02:00

Admins can validate a team or not

This commit is contained in:
Yohann D'ANELLO
2020-10-11 18:44:42 +02:00
parent 3c8615b487
commit e9b70f351b
4 changed files with 173 additions and 52 deletions

View File

@ -44,6 +44,30 @@ class ParticipationForm(forms.ModelForm):
fields = ('problem',)
class RequestValidationForm(forms.Form):
_form_type = forms.CharField(
initial="RequestValidationForm",
widget=forms.HiddenInput(),
)
engagement = forms.BooleanField(
label=_("I engage myself to participate to the whole \"Correspondances\"."),
required=True,
)
class ValidateParticipationForm(forms.Form):
_form_type = forms.CharField(
initial="ValidateParticipationForm",
widget=forms.HiddenInput(),
)
message = forms.CharField(
label=_("Message to address to the team:"),
widget=forms.Textarea(),
)
class UploadVideoForm(forms.ModelForm):
class Meta:
model = Video