register.xhtml
Home
/
forms /
src /
main /
resources /
META-INF /
resources /
sdk /
theme /
default /
register.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jstl/core" template="template.xhtml">
<ui:param name="bodyClass" value="register" />
<ui:define name="header">Register with <strong>#{forms.name}</strong></ui:define>
<ui:define name="form">
<form action="#{forms.registrationAction}" method="post">
<p class="subtitle">All fields are required</p>
<div>
<label for="name">Full name</label>
<input type="text" id="name" name="name" value="#{forms.formData['name']}" />
</div>
<div>
<label for="email">Email</label>
<input type="text" id="email" name="email" value="#{forms.formData['email']}" />
</div>
<div>
<label for="username">Username</label>
<input type="text" id="username" name="username" value="#{forms.formData['username']}" />
</div>
<div>
<label for="password">Password</label>
<input type="password" id="password" name="password" />
</div>
<div>
<label for="password-confirm">Password confirmation</label>
<input type="password" id="password-confirm" name="password-confirm" />
</div>
<ui:repeat var="p" value="#{forms.hiddenProperties}">
<input name="#{p.name}" value="#{p.value}" type="hidden" />
</ui:repeat>
<div class="aside-btn">
<p>By registering you agree to the <a href="#">Terms of Service</a> and the <a href="#">Privacy Policy</a>.</p>
</div>
<input type="submit" value="Register" />
</form>
</ui:define>
<ui:define name="info">
<p>Already have an account? <a href="#{forms.loginUrl}">Log in</a>.</p>
</ui:define>
</ui:composition>