Created
November 27, 2012 10:54
-
-
Save marcpalmer/4153612 to your computer and use it in GitHub Desktop.
Example signup form with Platform UI
This file contains 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
<html> | |
<head> | |
<title><p:text code="signup.screen.title"/></title> | |
<theme:layout name="dialog"/> | |
</head> | |
<body> | |
<theme:title text="signup.form.title"/> | |
<theme:zone name="body"> | |
<ui:displayMessage/> | |
<p:requiresBean name="form" class="${signupFormClass}"/> | |
<g:if test="${form.hasErrors()}"> | |
<ui:message type="error"><p><g:message code="signup.screen.has.errors"/></p></ui:message> | |
</g:if> | |
<ui:form method="post" id="signupForm" url="[action:'doSignup', controller:'auth']"> | |
<ui:fieldGroup> | |
<ui:field bean="${form}" name="identity" tabindex="1"/> | |
<ui:field bean="${form}" name="password" type="password" tabindex="3"/> | |
<ui:field bean="${form}" name="confirmPassword" type="password" tabindex="4"/> | |
</ui:fieldGroup> | |
<ui:actions> | |
<ui:button type="submit" mode="primary" text="action.auth.signup"/> | |
</ui:actions> | |
</ui:form> | |
</theme:zone> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment