edit.jsp 1.39 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>

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

<html>
<head>
<title><spring:message code="oauth-client.page.profile.title" arguments="${item.clientId}" argumentSeparator="|" /></title>
</head>
<body>
	<h1>
		<c:out value="${item.clientId}" />
	</h1>

	<form class="" action="<c:url value="/admin/oauth/update" />" method="post">
		<div class="form-group">
			<label for="blurp-body" class="control-label"><spring:message code="blurp.blurp-body" /></label>
			<div class="controls">
				<textarea id="blurp-body" name="blurp" class="span9 required html-editor">
					<c:out value="${blurp.body}" />
				</textarea>
			</div>
		</div>

		<input type="submit" value="<spring:message code="blurp.update-blurp"/>" class="btn btn-primary" />
		<a href="<c:url value="/geo/${country.code3.toLowerCase()}" />" class="btn btn-default"> <spring:message code="cancel" />
		</a>
Nick Martynenko's avatar
CSRF    
Nick Martynenko committed
27
28
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
29
30
	</form>

31
32
<content tag="javascript">	
	<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
33
34
35
36
37
38
39
40
41
42
43
44
	<script type="text/javascript">
		jQuery(document).ready(function() {
			tinyMCE.init({
				selector : "#blurp-body.html-editor",
				menubar : false,
				statusbar : false,
				height : 200,
				plugins: "link autolink",
				directionality: document.dir
			});
		});
	</script>
45
</content>
46
47
</body>
</html>