]> git.parisson.com Git - teleforma.git/commitdiff
Remove required from new fields dev
authorYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 24 Sep 2026 15:40:36 +0000 (17:40 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 24 Sep 2026 15:40:36 +0000 (17:40 +0200)
teleforma/forms.py
teleforma/templates/registration/registration_form.html

index 132d289ba566ed9b1270fe6b0fe39309016d0bb5..44531a2d5de1ae1b010dfd1194c6260a66d8d4d0 100644 (file)
@@ -93,9 +93,11 @@ class UserForm(ModelForm):
 
     training_adaptability = forms.ChoiceField(choices=TRUE_FALSE_CHOICES,
                                               label="Avez-vous besoin d'adaptabilité de formation ?",
+                                              required=False,
                                               widget=forms.Select())
     disability = forms.ChoiceField(choices=TRUE_FALSE_CHOICES,
                                    label='Êtes-vous en situation de handicap ?',
+                                   required=False,
                                    widget=forms.Select())
 
     procedure = ModelChoiceField(label=_('Procedure'),
index 1692f15c4b8493dbfd4a5156d9f447d11945a848..a7fa7fffe75fa64bdd57e0fbafd71240a68bf64d 100644 (file)
@@ -71,7 +71,7 @@
             {% with field=form|get_item:fieldname %}
             <div class="info_champs">
                 <label for="id_{{ field.name }}">
-                    {{ field.label }} <span class="required">*</span>
+                    {{ field.label }}
                 </label>
                 <span class="error">
                     {{ field.errors }}