summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/domain/validate/edit.yml
blob: c8183c24c5a01191c9027cc6fbf34e1a34f7264f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
fillin:
  enabled:            true

validators:
  myStringValidator:
    class:            sfStringValidator
    param:
      min:            2
      min_error:      This field is too short (2 characters minimum)
      max:            100
      max_error:      This field is too long (100 characters maximum)

fields:
  domain{name}:
    required:
      msg:            The Domain Name is required
    myStringValidator:
    sfRegexValidator:
      match:..........Yes
      match_error:    'The name must be in the form: example.org'
      pattern:        /[^.]+\.[^.]+$/si
    sfPropelUniqueValidator:
      class:          Domain
      column:         name
      unique_error:   This domain already exists
  domain{mailbox_prefix}:
    required:
      msg:            The Mailbox Prefix is required
    myStringValidator:
    sfRegexValidator:
      match:          Yes
      match_error:    The prefix must only consist out of alphanumeric characters
      pattern:        /[A-z0-9]/si
    sfPropelUniqueValidator:
      class:          Domain
      column:         mailbox_prefix
      unique_error:   This prefix already exists
  domain{max_mailbox_count}:
    required:
      msg:            The Mailbox Count is required
  domain{quota}:
    required:
      msg:            The Domain Quota is required
  domain{default_mailbox_quota}:
    required:
      msg:            The Mailbox Quota is required