personal.jsp 2.58 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<!DOCTYPE html>

<%@include file="/WEB-INF/jsp/init.jsp"%>

<html>
<head>
<title><spring:message code="request.page.title" /></title>
</head>
<body>
	<h1>
		<spring:message code="request.page.title" />
	</h1>

	<%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>
15
	
16
	<c:if test="${error ne null}">
Matija Obreza's avatar
Matija Obreza committed
17 18
	    <div class="alert alert-danger">
			<c:out value="${e.message}" />
19 20
	    </div>
	</c:if>
21

22 23 24 25 26 27
	<c:if test="${smta ne null and smta ne true}">
	    <div class="alert alert-warning">
	        <spring:message code="request.smta-not-accepted"/>
	    </div>
	</c:if>
	
28 29
	<form method="post" action="<c:url value="/request/submit" />" class="form-horizontal">
		<div class="form-group">
30 31
			<label class="col-lg-3 control-label"><spring:message code="request.your-email" /></label>
			<div class="col-lg-9">
32
				<input type="text" name="email" class="span3 required email form-control" value="${requestEmail}" />
33 34
			</div>
		</div>
35 36 37

		<security:authorize access="isAnonymous()">
			<div class="form-group">
38 39
				<label class="col-lg-3 control-label"><spring:message code="captcha.text" /></label>
				<div class="col-lg-9">
40 41
					<%@include file="/WEB-INF/jsp/recaptcha/here.jsp" %>
				</div>
42
			</div>
43 44
		</security:authorize>
		
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
		<div class="form-group">
			<label class="col-lg-3 control-label"><spring:message code="request.accept-smta" /></label>
			<div class="col-lg-9">
				<label class="col-xs-12"><input type="radio" name="smta" value="true"> <spring:message code="request.smta-will-accept" /></label>
				<label class="col-xs-12"><input type="radio" name="smta" value="false"> <spring:message code="request.smta-will-not-accept" /></label>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-lg-3 control-label"><spring:message code="request.purpose" /></label>
			<div class="col-lg-9">
				<label class="col-xs-12"><input type="radio" name="purpose" value="1" checked> <spring:message code="request.purpose.1" /></label>
				<label class="col-xs-12"><input type="radio" name="purpose" value="0"> <spring:message code="request.purpose.0" /></label>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-lg-3 control-label"><spring:message code="request.notes" /></label>
			<div class="col-lg-9">
				<textarea name="notes" class="form-control"><c:out value="${notes}" /></textarea>
			</div>
		</div>
		
68 69 70
		<div class="form-actions">
			<input class="btn btn-primary" type="submit" value="<spring:message code="request.start-request" />" />
		</div>
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
71 72
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
73 74 75 76
	</form>

</body>
</html>