Subversion Repositories general

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 dev 1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2
<%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean"     %>
3
<%@ taglib uri="/WEB-INF/struts-logic.tld"     prefix="logic"    %>
4
<%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html"     %>
5
<%@ taglib uri="/WEB-INF/ak-backpath.tld"      prefix="backpath" %>
6
<%@ taglib uri="/WEB-INF/ak-strutsx.tld"       prefix="strutsx"  %>
7
<html>
8
 
9
<head>
10
	<meta http-equiv="expires" content="0">
11
	<title>Edit event</title>
12
	<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
13
</head>
14
 
15
<body>
16
 
17
<h1>Edit event</h1>
18
 
19
<strutsx:errorsIterator id="errors" />
20
<strutsx:notEmpty name="errors">
21
	<div class="error">Errors in input:
22
		<ul>
23
		<logic:iterate name="errors" id="error">
24
			<li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
25
		</logic:iterate>
26
		</ul>
27
	</div>
28
</strutsx:notEmpty>
29
 
30
<html:form action="/admin/event/submit">
31
<backpath:current />
32
<html:hidden property="id" />
33
 
34
<table border=1>
35
	<tr>
36
		<th>Name</th>
9 dev 37
		<td colspan=3><html:text property="name" /></td>
3 dev 38
    </tr>
39
	<tr>
40
		<th>Place</th>
9 dev 41
		<td colspan=3><html:text property="place" /></td>
3 dev 42
    </tr>
43
	<tr>
44
		<th>Address</th>
9 dev 45
		<td colspan=3><html:textarea property="address" /></td>
3 dev 46
    </tr>
47
	<tr>
48
		<th>Transport Description</th>
9 dev 49
		<td colspan=3><html:textarea property="transport" /></td>
3 dev 50
    </tr>
51
	<tr>
52
		<th>Start</th>
9 dev 53
		<td colspan=3><html:text property="start" /></td>
3 dev 54
    </tr>
55
	<tr>
56
		<th>Stop</th>
9 dev 57
		<td colspan=3><html:text property="stop" /></td>
3 dev 58
    </tr>
59
	<tr>
60
		<th>Last registration</th>
9 dev 61
		<td colspan=3><html:text property="lastreg" /></td>
3 dev 62
    </tr>
63
	<tr>
64
		<th>Last unregistration</th>
9 dev 65
		<td colspan=3><html:text property="lastunreg" /></td>
3 dev 66
    </tr>
67
	<tr>
68
		<th>Price per person</th>
9 dev 69
		<td colspan=3><html:text property="price" /></td>
3 dev 70
    </tr>
71
	<tr>
72
		<th>Account to transfer money</th>
9 dev 73
		<td colspan=3><html:textarea property="account" /></td>
3 dev 74
    </tr>
75
	<tr>
76
		<th>Enabled</th>
9 dev 77
		<td colspan=3><html:checkbox property="enabled" /></td>
3 dev 78
    </tr>
79
	<tr>
80
		<th>Comment</th>
9 dev 81
		<td colspan=3><html:textarea property="comment" /></td>
3 dev 82
    </tr>
83
 
9 dev 84
	<tr>
85
		<th colspan=4>Acts for the event</th>
86
    </tr>
87
	<tr>
88
		<td>Name</td>
89
		<td>Include</td>
90
		<td>Comment</td>
91
		<td>&nbsp;</td>
92
    </tr>
3 dev 93
<logic:iterate name="EventEditForm" property="acts" id="acts" indexId="iid">
94
	<tr>
9 dev 95
		<th>
96
			<bean:write name="actList" property='<%= "objects[" + iid + "].name" %>' />
3 dev 97
			<html:hidden name="acts" property="actId" indexed="true" />
9 dev 98
		</th>
99
		<td><html:checkbox name="acts" property="selected" indexed="true" /></td>
3 dev 100
		<td><html:text name="acts" property="comment" indexed="true" /></td>
9 dev 101
		<td>&nbsp;</td>
3 dev 102
	</tr>
103
</logic:iterate>
104
 
9 dev 105
	<tr>
106
		<th colspan=4>Apartment for the event</th>
107
    </tr>
108
	<tr>
109
		<td>Name</td>
110
		<td>Include</td>
111
		<td>Comment</td>
112
		<td>Distance</td>
113
    </tr>
114
<logic:iterate name="EventEditForm" property="apartments" id="apartments" indexId="iid2">
115
	<tr>
116
		<th>
117
			<bean:write name="apartmentList" property='<%= "objects[" + iid2 + "].name" %>' />
118
			<html:hidden name="apartments" property="apartmentId" indexed="true" />
119
		</th>
120
		<td><html:checkbox name="apartments" property="selected" indexed="true" /></td>
121
		<td><html:text name="apartments" property="comment" indexed="true" /></td>
122
		<td><html:text name="apartments" property="distance" indexed="true" /></td>
123
	</tr>
124
</logic:iterate>
125
 
3 dev 126
	<tr>
9 dev 127
		<td colspan=4>
3 dev 128
			<html:submit>Submit</html:submit>
129
			<backpath:backlink>Back</backpath:backlink>
130
		</td>
131
    </tr>
132
</table>
133
 
134
</html:form>
135
 
136
</body>
137
 
138
</html>