refactor(bulma): convert all account related templates

This commit is contained in:
2025-05-25 00:10:47 +02:00
parent b3d1ec142b
commit ada194122d
14 changed files with 57 additions and 49 deletions

View File

@@ -187,20 +187,15 @@ class ModerationActionForm(forms.ModelForm):
class CustomRegistrationForm(RegistrationForm):
class Meta(RegistrationForm.Meta):
model = User
template_name = "fellchensammlung/forms/form_snippets.html"
captcha = forms.CharField(validators=[animal_validator], label=_("Nenne eine bekannte Tierart"), help_text=_(
"Bitte nenne hier eine bekannte Tierart (z.B. ein Tier das an der Leine geführt wird). Das Fragen wir dich um sicherzustellen, dass du kein Roboter bist."))
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'form-registration'
self.helper.form_class = 'card'
self.helper.add_input(Submit('submit', _('Registrieren'), css_class="btn"))
class AdoptionNoticeSearchForm(forms.Form):
template_name = "fellchensammlung/forms/form_snippets.html"