registration.jsp 3.1 KB
Newer Older
Matija Obreza's avatar
Stuff  
Matija Obreza committed
1
2
3
4
5
6
<!DOCTYPE html>

<%@include file="init.jsp"%>

<html>
<head>
7
8
<title><spring:message code="registration.page.title" /></title>
<%@include file="head-init.jsp"%>
Matija Obreza's avatar
Stuff  
Matija Obreza committed
9

10
<script type="text/javascript" src="/html/js/login.js"></script>
Matija Obreza's avatar
Stuff  
Matija Obreza committed
11
12
</head>
<body>
13
14
15
16
17
18
19
20
	<h1>
		<spring:message code="sample.message.registration" />
	</h1>
	
	<security:authorize access="hasRole('ADMINISTRATOR')">
		<a href="<c:url value="/content/registration/edit" />" class="close"> <spring:message code="edit" />
		</a>
	</security:authorize>
Matija Obreza's avatar
Matija Obreza committed
21

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
	<%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>
	

	<c:if test="${param['error'] ne null}">
		<div class="alert alert-error">
			<spring:message code="sample.error.wrong.credentials" />
		</div>
	</c:if>
	<c:if test="${param['exist'] ne null}">
		<div class="alert alert-error">
			<spring:message code="sample.error.user.exist" />
		</div>
	</c:if>
	<form role="form" method="POST" action="new-user.html" class="form-horizontal validate">
		<div class="form-group">
			<label for="email" class="col-lg-2 control-label"><spring:message code="sample.message.email" /></label>
			<div class="col-lg-3">
				<input type="text" id="email" name="email" class="span3 required email form-control" />
			</div>
		</div>
		<div class="form-group">
			<label for="password" class="col-lg-2 control-label"><spring:message code="sample.message.password" /></label>
			<div class="col-lg-3">
				<input type="password" id="password" name="password" class="span3 required form-control" />
			</div>
		</div>
		<div class="form-group">
			<label for="confirm_password" class="col-lg-2 control-label"><spring:message code="sample.message.confirm.password" /></label>
			<div class="col-lg-3">
				<input type="password" id="confirm_password" name="confirm_password" class="span3 required form-control" equalTo="#password" />
			</div>
		</div>
		<div class="form-group">
			<label for="name" class="col-lg-2 control-label"><spring:message code="sample.message.name" /></label>
			<div class="col-lg-3">
				<input type="text" id="name" name="name" class="span3 required form-control" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-2 control-label"><spring:message code="captcha.text" /></label>
			<div class="col-lg-3">
				<script type="text/javascript" src="http://api.recaptcha.net/challenge?k=${captchaPublicKey}">
					
				</script>
				<noscript>
					<iframe src="http://api.recaptcha.net/noscript?k=${captchaPublicKey}" height="300" width="500" frameborder="0"></iframe>
					<br>
					<textarea name="recaptcha_challenge_field" rows="3" cols="40">
Matija Obreza's avatar
Stuff  
Matija Obreza committed
70
                </textarea>
71
72
73
74
75
76
77
78
79
80
81
82
					<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
				</noscript>
			</div>
		</div>
		<div class="form-group">
			<div class="col-lg-offset-2 col-lg-10">
				<input type="submit" value="<spring:message code="registration.create-account"/>" class="btn btn-primary" /> <a class="btn btn-default" href="<c:url value="/" />" id="registration" class="btn"> <spring:message code="cancel" />
				</a>
			</div>
		</div>
	</form>

Matija Obreza's avatar
Stuff  
Matija Obreza committed
83
84
</body>
</html>