---
- 
  #Default (dynamic) form configuration. This data is used as the initial,
  #minimal data for dynamic forms that ships with the system.
  #Fields:
  #id:       Used only if associated with a help topic
  #title:    Bold section title of the form
  #instructions: Title deck, detailed instructions on entering form data
  #notes:    Notes for the form, shown under the fields
  #flags:
  #0x0001  If the form can be removed from the system
  #fields:   List of fields for the form
  #type:       Field type (short name) (eg. 'text', 'memo', 'phone', ...)
  #label:      Field label shown to the user
  #name:       Name used with the data internally. This is especially
  #useful for page and email templates, where %{ ticket.<name> }
  #will be used to retrieve the data from the field.
  #hint:       Help text shown with the field
  #flags:      Bit mask for settings & options
  ## From class DynamicFormField
  #const FLAG_MASK_CHANGE      = 0x0010;     # Type cannot change
  #const FLAG_MASK_DELETE      = 0x0020;     # Cannot be deleted
  #const FLAG_MASK_EDIT        = 0x0040;     # Data cannot be edited
  #const FLAG_MASK_DISABLE     = 0x0080;     # Field cannot be disabled
  #const FLAG_MASK_REQUIRE     = 0x10000;    # Requirement cannot be changed
  #const FLAG_MASK_VIEW        = 0x20000;    # View settings cannot be changed
  #const FLAG_MASK_NAME        = 0x40000;    # Name cannot be changed
  #configuration: Field-specific configuration
  #size:     (text) width of the field
  #length:   (text) maximum size of the data in the field
  #cols:     (memo) width of the textarea
  #rows:     (memo) height of the textarea
  #---
  id: 1
  type: U #notrans
  title: 联系资料
  flags: 0
  fields:
    - 
      type: text #notrans
      name: email #notrans
      label: 电子邮件地址
      sort: 1
      flags: 489395
      configuration:
        size: 40
        length: 64
        validator: email #notrans
    - 
      type: text #notrans
      name: name #notrans
      label: 全名
      sort: 2
      flags: 489395
      configuration:
        size: 40
        length: 64
    - 
      type: phone #notrans
      name: phone #notrans
      label: 手机号码
      sort: 3
      flags: 13057
    - 
      type: memo #notrans
      name: notes
      label: 内部通知
      sort: 4
      flags: 12289
      configuration:
        rows: 4
        cols: 40
- 
  id: 2
  type: T #notrans
  title: 咨询详情
  instructions: 请描述您的问题
  notes: |
    此表单将会被附加给所有的咨询，不管那个咨询是怎么生成的。你可以在这个表单里面添加任何字段，他们将会显示在全部咨询那里，也能够被高级搜索找到并可以被筛选。
  flags: 0
  fields:
    - 
      id: 20
      type: text #notrans
      name: subject #notrans
      label: 问题摘要
      sort: 1
      flags: 489265
      configuration:
        size: 40
        length: 50
    - 
      id: 21
      type: thread #notrans
      name: message #notrans
      label: 问题详情
      hint: 您打开服务单的原因说明
      sort: 2
      flags: 480547
    - 
      id: 22
      type: priority #notrans
      name: priority #notrans
      label: 优先级等级
      flags: 274609
      sort: 3
- 
  type: C #notrans
  title: 公司信息
  instructions: 邮件模版里面可用的详情
  flags: 0
  fields:
    - 
      type: text #notrans
      name: name #notrans
      label: 公司名称
      sort: 1
      flags: 291249
      configuration:
        size: 40
        length: 64
    - 
      type: text #notrans
      name: website #notrans
      label: 网站
      sort: 2
      flags: 274705
      configuration:
        size: 40
        length: 64
    - 
      type: phone #notrans
      name: phone #notrans
      label: 手机号码
      sort: 3
      flags: 274705
      configuration:
        ext: false
    - 
      type: memo #notrans
      name: address
      label: 地址
      sort: 4
      flags: 12545
      configuration:
        rows: 2
        cols: 40
        html: false
        length: 100
- 
  type: O #notrans
  title: 公司信息
  instructions: 用户公司详情
  flags: 0
  fields:
    - 
      type: text #notrans
      name: name #notrans
      label: 名称
      sort: 1
      flags: 489395
      configuration:
        size: 40
        length: 64
    - 
      type: memo
      name: address
      label: 地址
      sort: 2
      flags: 13057
      configuration:
        rows: 2
        cols: 40
        length: 100
        html: false
    - 
      type: phone
      name: phone
      label: 电话
      sort: 3
      flags: 13057
    - 
      type: text
      name: website
      label: 网站
      sort: 4
      flags: 13057
      configuration:
        size: 40
        length: 0
    - 
      type: memo #notrans
      name: notes
      label: 内部通知
      sort: 5
      flags: 12289
      configuration:
        rows: 4
        cols: 40
- 
  type: A #notrans
  title: 任务详情
  instructions: 请描述问题
  notes: |
    该表格用于创建一个任务。
  flags: 0
  fields:
    - 
      type: text #notrans
      name: 标题 #notrans
      flags: 290993
      sort: 1
      label: 标题
      configuration:
        size: 40
        length: 50
    - 
      type: thread #notrans
      name: description #notrans
      flags: 282867
      sort: 2
      label: 描述
      hint: 详细说明创建任务的原因
