edit.jsp 3.04 KB
Newer Older
Alexander Basov's avatar
Alexander Basov committed
1
2
<!DOCTYPE html>

Matija Obreza's avatar
Matija Obreza committed
3
4
<%@include file="/WEB-INF/jsp/init.jsp"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
Alexander Basov's avatar
Alexander Basov committed
5
6
7

<html>
<head>
Matija Obreza's avatar
Matija Obreza committed
8
<title><spring:message code="project.page.profile.title" arguments="${project.name}" argumentSeparator="|" /></title>
Alexander Basov's avatar
Alexander Basov committed
9
10
</head>
<body>
Matija Obreza's avatar
Matija Obreza committed
11
12
13
14
15
16
	<h1>
		${project.name}
		<small>
			<c:out value="${project.code}" />
		</small>
	</h1>
Alexander Basov's avatar
Alexander Basov committed
17

Matija Obreza's avatar
Matija Obreza committed
18
19
20
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
	<form role="form" class="form-horizontal" action="<c:url value="/project/update-project" />" method="post">
		<input type="hidden" name="id" value="${project.id}" />
		<input type="hidden" name="version" value="${project.version}" />
		<!-- CSRF protection -->
		<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />

		<div class="form-group">
			<label class="col-lg-3 control-label">
				<spring:message code="project.code" />
			</label>
			<div class="controls col-lg-9">
				<input type="text" name="code" class="form-control required" value="${project.code}" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-3 control-label">
				<spring:message code="project.name" />
			</label>
			<div class="controls col-lg-9">
				<input type="text" name="name" class="form-control required" value="${project.name}" />
			</div>
		</div>

		<div class="form-group">
			<label class="col-lg-3 control-label">
				<spring:message code="project.url" />
			</label>
			<div class="controls col-lg-9">
				<input type="text" name="url" class="form-control required" placeholder="https://" value="${project.url}" />
			</div>
		</div>

		<div class="form-group">
			<label for="blurp-body" class="col-lg-12 control-label">
				<spring:message code="blurp.blurp-body" />
			</label>
			<div class="controls col-lg-12">
Alexander Basov's avatar
Alexander Basov committed
55
56
57
				<textarea id="blurp-body" name="blurp" class="span9 required html-editor">
					<c:out value="${blurp.body}" />
				</textarea>
Matija Obreza's avatar
Matija Obreza committed
58
59
			</div>
		</div>
Alexander Basov's avatar
Alexander Basov committed
60

Matija Obreza's avatar
Matija Obreza committed
61
62
63
64
65
		<div class="form-group">
			<label for="project-summary" class="col-lg-12 control-label">
				<spring:message code="project.summary" />
			</label>
			<div class="controls col-lg-12">
Alexander Basov's avatar
Alexander Basov committed
66
67
68
				<textarea id="project-summary" name="summary" class="span9 required html-editor">
					<c:out value="${blurp.summary}" />
				</textarea>
Matija Obreza's avatar
Matija Obreza committed
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
			</div>
		</div>

		<div class="form-group">
			<label class="col-lg-3 control-label">
				<spring:message code="project.accessionLists" />
			</label>
			<div class="controls col-lg-9">
				<c:forEach items="${project.accessionLists}" var="accessionList">
					<div>
						<input type="text" name="accessionLists" class="form-control" value="${accessionList}" />
					</div>
				</c:forEach>
				<div>
					<input type="text" name="accessionLists" class="form-control" value="" placeholder="u-u-i-d" />
				</div>
			</div>
		</div>

		<input type="submit" value="<spring:message code="save"/>" class="btn btn-primary" />
		<a href="<c:url value="/project/${project.code}" />" class="btn btn-default">
			<spring:message code="cancel" />
		</a>
Alexander Basov's avatar
Alexander Basov committed
92

Matija Obreza's avatar
Matija Obreza committed
93
	</form>
Alexander Basov's avatar
Alexander Basov committed
94
95


Matija Obreza's avatar
Matija Obreza committed
96
97
98
	<content tag="javascript"> <script type="text/javascript">
    <local:tinyMCE selector=".html-editor" />
  </script> </content>
Alexander Basov's avatar
Alexander Basov committed
99
100
101

</body>
</html>