Skip to content

Instantly share code, notes, and snippets.

@marcpalmer
Created November 27, 2012 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcpalmer/4153612 to your computer and use it in GitHub Desktop.
Save marcpalmer/4153612 to your computer and use it in GitHub Desktop.
Example signup form with Platform UI
<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