edit.jsp 1.48 KB
Newer Older
1
2
3
4
5
6
7
<!DOCTYPE html>

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

<html>
<head>
<title><spring:message code="faoInstitutes.page.profile.title" arguments="${faoInstitute.fullName}" argumentSeparator="|" /></title>
Matija Obreza's avatar
Matija Obreza committed
8
<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</head>
<body>
	<h1>
		<img class="country-flag bigger" src="http://genesys-pgr.org/images/flags/${faoInstitute.country.code3.toUpperCase()}.png" />
		<c:out value="${faoInstitute.fullName}" />
		<small><c:out value="${faoInstitute.code}" /></small>
	</h1>

	<form role="form" class="" action="<c:url value="/wiews/${faoInstitute.code.toLowerCase()}/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="/wiews/${faoInstitute.code.toLowerCase()}" />" class="btn btn-default"> <spring:message code="cancel" />
		</a>
	</form>

	<script type="text/javascript">
		jQuery(document).ready(function() {
			tinyMCE.init({
				selector : "#blurp-body.html-editor",
				menubar : false,
				statusbar : false,
Matija Obreza's avatar
Matija Obreza committed
37
				height : 200,
Matija Obreza's avatar
Matija Obreza committed
38
				plugins: "link autolink",
Matija Obreza's avatar
Matija Obreza committed
39
				directionality: document.dir
40
41
42
43
44
45
			});
		});
	</script>

</body>
</html>