snapshot: preserve dynamic form builder parity and presets
This commit is contained in:
@@ -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')),
|
||||
|
||||
Reference in New Issue
Block a user