File: has_many_repeatable_new_date.yml

package info (click to toggle)
libhtml-formfu-model-dbic-perl 0.09002-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,064 kB
  • sloc: perl: 2,270; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (4)
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
---
auto_fieldset: 1

elements:
  - type: Text
    name: text_col

  - type: Repeatable
    nested_name: schedules
    counter_name: count
    model_config:
      empty_rows: 1
      new_rows_max: 1

    elements:
      - type: Hidden
        name: id

      - type: Date
        name: date
        auto_inflate: 1
        constraints:
          - Required
      
      - name: note
        constraints:
          - Required

  - type: Hidden
    name: count

  - type: Submit
    name: submit