File: dbic_unique_method.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 (22 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
auto_fieldset: 1

elements:
  - type: Hidden
    name: id
  
  - type: Text
    name: name
    constraints:
      - Required
      - type:      DBIC::Unique
        resultset: User
        method_name: is_name_available
        self_stash_key: user
  
  - type: Text
    name: title
    
  - type: Submit
    name: submit