Skip to content

Instantly share code, notes, and snippets.

@jos3000
Created September 22, 2010 21:33
Show Gist options
  • Save jos3000/592628 to your computer and use it in GitHub Desktop.
Save jos3000/592628 to your computer and use it in GitHub Desktop.
<YForm>
<name>register.dw</name>
<legend>Register</legend>
<submit_label>Register</submit_label>
<InputList>
<Input>
<name>email</name>
<label>Email</label>
<type>text</type>
<hint>Your email address.</hint>
</Input>
<Input>
<name>phone</name>
<label>Phone</label>
<type>text</type>
<hint>Your mobile phone number.</hint>
</Input>
<Input>
<name>password</name>
<label>Password</label>
<type>password</type>
<hint>Your chosen password.</hint>
</Input>
<Input>
<name>password2</name>
<label>Confirm Password</label>
<type>password</type>
<hint>Retype your password.</hint>
</Input>
</InputList>
<Rule>
<inputs>email,phone,password,password2</inputs>
<method>all</method>
<RuleList>
<Rule>
<inputs>email</inputs>
<validator>EmailAddress</validator>
</Rule>
<Rule>
<inputs>email</inputs>
<validator>UniqueConsumerEmail</validator>
</Rule>
<Rule>
<inputs>phone</inputs>
<validator>Phone</validator>
</Rule>
<Rule>
<inputs>phone</inputs>
<validator>UniqueConsumerPhone</validator>
</Rule>
<Rule>
<inputs>password</inputs>
<validator>MinStringLength4</validator>
</Rule>
<Rule>
<inputs>password2,password</inputs>
<validator>Same</validator>
<message>must match Password</message>
</Rule>
</RuleList>
</Rule>
</YForm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment