/
createCampaign.jsp
67 lines (56 loc) · 2.83 KB
/
createCampaign.jsp
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
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
<%@include file="header.jsp"%>
<div class="topbar">
<div class="fill">
<div class="container">
<a class="brand" href="/"></a>
<ul class="nav">
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/">My Overview</a></li></sec:authorize>
<li><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/j_spring_security_logout">Logout</a></sec:authorize>
<sec:authorize access="hasRole('ROLE_ANONYMOUS')"><li><a href="/login.html">Login</a></sec:authorize>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="row">
<div class="span10">
<h2>Create a new Campaign</h2>
<p class="ol-large">Please complete all the fields (website not necessary).</p>
<form action="/createCampaign" method="POST" accept-charset="UTF-8">
<fieldset>
<div class="clearfix <c:if test="${not empty errorMap.title}" >error</c:if>">
<label for="title">Titel</label>
<div class="input">
<input class="xlarge <c:if test="${not empty errorMap.title}" >error</c:if>" id="title" name="title" value="${title}" size="30" type="text">
<span class="help-inline">${errorMap.title}</span>
</div>
</div>
<div class="clearfix <c:if test="${not empty errorMap.description}" >error</c:if>">
<label for="description">Description</label>
<div class="input">
<textarea class="xlarge <c:if test="${not empty errorMap.description}" >error</c:if>" id="description" name="description" rows="5">${description}</textarea>
<span class="help-inline">${errorMap.description}</span>
</div>
</div>
<div class="clearfix <c:if test="${not empty errorMap.externalLink}" >error</c:if>">
<label for="title">Website</label>
<div class="input">
<input class="xlarge <c:if test="${not empty errorMap.externalLink}" >error</c:if>" id="externalLink" value="${externalLink}" name="externalLink" size="30" type="text">
<span class="help-inline">${errorMap.externalLink}</span>
</div>
</div>
<div class="actions">
<input type="submit" class="btn primary" value="Create Campaign"> <button type="reset" class="btn">Cancel</button>
</div>
</fieldset>
</form>
</div>
<div class="span4">
</div>
</div>
<%@include file="footer.jsp"%>
</div> <!-- /container -->
<%@include file="end.jsp"%>