Created
December 4, 2017 14:52
-
-
Save facundoolano/f621983b468cd73edc775e1d57ae7636 to your computer and use it in GitHub Desktop.
forms.clj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[forms/form-view {:submit-text "Register" | |
:on-submit [:register-submit] | |
:fields [{:key :email | |
:type "email" | |
:validate :valid-email? | |
:required true} | |
{:key :password | |
:type "password" | |
:required true} | |
{:key :password-repeat | |
:type "password" | |
:label "Repeat password" | |
:validate :matching-passwords? | |
:required true}]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment