snapshot: preserve dynamic form builder parity and presets

This commit is contained in:
Md Bayazid Bostame
2026-03-27 12:30:10 +01:00
parent aa54f41731
commit e929e7509b
12 changed files with 2097 additions and 505 deletions

View File

@@ -516,6 +516,31 @@ class FormFieldConfig(models.Model):
return self.help_text_override.strip()
class FormSectionConfig(models.Model):
FORM_CHOICES = [
('onboarding', _('Onboarding')),
]
SECTION_CHOICES = [
('stammdaten', _('Stammdaten')),
('vertrag', _('Vertrag')),
('itsetup', _('IT-Setup')),
('abschluss', _('Abschluss')),
]
form_type = models.CharField(max_length=20, choices=FORM_CHOICES)
section_key = models.CharField(max_length=20, choices=SECTION_CHOICES)
is_visible = models.BooleanField(default=True)
class Meta:
ordering = ['form_type', 'section_key']
unique_together = ('form_type', 'section_key')
verbose_name = 'Formularabschnitt-Konfiguration'
verbose_name_plural = 'Formularabschnitt-Konfigurationen'
def __str__(self) -> str:
return f'{self.form_type}: {self.section_key}'
class NotificationTemplate(models.Model):
TEMPLATE_CHOICES = [
('onboarding_it', _('Onboarding: IT')),