Skip to content

Instantly share code, notes, and snippets.

@suin
Created November 27, 2012 14:01
Show Gist options
  • Save suin/4154357 to your computer and use it in GitHub Desktop.
Save suin/4154357 to your computer and use it in GitHub Desktop.
fields:
name:
type: string
label: "契約者名"
uname:
type: string
lablel: "ユーザ名"
email:
type: string
label: "メールアドレス"
url:
type: string
label: "ホームページ"
zipcode:
type: string
label: "郵便番号"
hobby:
type: set
label: "趣味"
set:
- 旅行
- 映画鑑賞
- ガーデニング
- 読書
- テニス
section:
type: hash
label: "事業部"
hash:
"001": "営業部"
"101": "事業部"
"200": "開発部"
screen:
register:
name:
# "class" 以外は arguments としてクラスに渡される
class: Momoxo\User\Screen\Input\Textbox
label: "お名前"
uname:
class: Momoxo\User\Screen\Input\Uname
required: true
email:
class: Momoxo\User\Screen\Input\Email
required: true
zipcode:
class: Momoxo\User\Screen\Input\Zipcode
required: true
prefecture: prefecture
city: city
prefecture:
class: Momoxo\User\Screen\Input\JapanPrefecture
city:
class: Momoxo\User\Screen\Input\Textbox
address:
class: Momoxo\User\Screen\Input\Textbox
attributes:
size: 10
class: address
style:
- width: 100%
hobby:
class: Momoxo\User\Screen\Input\Select
userinfo:
name:
class: Momoxo\User\Screen\Output\String
email:
class: Momoxo\User\Screen\Output\EmailAntiSpam
encryption: javascript # for example "image" or "flash",...etc
change_password:
password:
class: Momoxo\User\Screen\Input\PasswordPlusVerification
profile:
name:
class: Momoxo\User\Screen\Output\String
hobby:
class: Momoxo\User\Screen\Output\String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment