Rev 3 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 9 | ||
---|---|---|---|
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
2 | <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
3 | <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
3 | <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
4 | <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
4 | <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
5 | <%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
5 | <%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
6 | <%@ taglib uri="/WEB-INF/ak-strutsx.tld" prefix="strutsx" %> |
6 | <%@ taglib uri="/WEB-INF/ak-strutsx.tld" prefix="strutsx" %> |
7 | <html> |
7 | <html> |
8 | 8 | ||
9 | <head> |
9 | <head> |
10 | <meta http-equiv="expires" content="0"> |
10 | <meta http-equiv="expires" content="0"> |
11 | <title>Events</title> |
11 | <title>Events</title> |
12 | <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css"> |
12 | <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css"> |
13 | </head> |
13 | </head> |
14 | 14 | ||
15 | <body> |
15 | <body> |
16 | 16 | ||
17 | <h1>Events</h1> |
17 | <h1>Events</h1> |
18 | 18 | ||
19 | <strutsx:errorsIterator id="errors" /> |
19 | <strutsx:errorsIterator id="errors" /> |
20 | <strutsx:notEmpty name="errors"> |
20 | <strutsx:notEmpty name="errors"> |
21 | <div class="error">Errors in input: |
21 | <div class="error">Errors in input: |
22 | <ul> |
22 | <ul> |
23 | <logic:iterate name="errors" id="error"> |
23 | <logic:iterate name="errors" id="error"> |
24 | <li><strutsx:message name="error" property="key" valuesProperty="values" /></li> |
24 | <li><strutsx:message name="error" property="key" valuesProperty="values" /></li> |
25 | </logic:iterate> |
25 | </logic:iterate> |
26 | </ul> |
26 | </ul> |
27 | </div> |
27 | </div> |
28 | </strutsx:notEmpty> |
28 | </strutsx:notEmpty> |
29 | 29 | ||
30 | <table border=1> |
30 | <table border=1> |
31 | <tr> |
31 | <tr> |
32 | <th>Name</th> |
32 | <th>Name</th> |
33 | <th>Place</th> |
33 | <th>Place</th> |
34 | <th>Start</th> |
34 | <th>Start</th> |
35 | <th>Stop</th> |
35 | <th>Stop</th> |
36 | <th>Enabled</th> |
36 | <th>Enabled</th> |
37 | <th> </th> |
37 | <th> </th> |
38 | <th> </th> |
38 | <th> </th> |
- | 39 | <th> </th> |
|
39 | </tr> |
40 | </tr> |
40 | 41 | ||
41 | <logic:iterate name="events" id="e"> |
42 | <logic:iterate name="events" id="e"> |
42 | <tr> |
43 | <tr> |
43 | <td><bean:write name="e" property="name" /></td> |
44 | <td><bean:write name="e" property="name" /></td> |
44 | <td><bean:write name="e" property="place" /> </td> |
45 | <td><bean:write name="e" property="place" /> </td> |
45 | <td><bean:write name="e" property="start" /> </td> |
46 | <td><bean:write name="e" property="start" format="dd.MM.yyyy" /> </td> |
46 | <td><bean:write name="e" property="stop" /> </td> |
47 | <td><bean:write name="e" property="stop" format="dd.MM.yyyy" /> </td> |
47 | <td> |
48 | <td> |
48 | <logic:equal name="e" property="enabled" value="true">x</logic:equal> |
49 | <logic:equal name="e" property="enabled" value="true">x</logic:equal> |
49 | <logic:notEqual name="e" property="enabled" value="true"> </logic:notEqual> |
50 | <logic:notEqual name="e" property="enabled" value="true"> </logic:notEqual> |
50 | </td> |
51 | </td> |
51 | <td> |
52 | <td> |
52 | <backpath:link action="/admin/event/edit" paramId="id" paramName="e" paramProperty="id">edit</backpath:link> |
53 | <backpath:link action="/admin/event/edit" paramId="id" paramName="e" paramProperty="id">edit</backpath:link> |
53 | </td> |
54 | </td> |
54 | <td> |
55 | <td> |
55 | <backpath:link action="/admin/event/delete" paramId="id" paramName="e" paramProperty="id">delete</backpath:link> |
56 | <backpath:link action="/admin/event/delete" paramId="id" paramName="e" paramProperty="id">delete</backpath:link> |
- | 57 | </td> |
|
- | 58 | <td> |
|
- | 59 | <backpath:link action="/admin/participant/list" paramId="event" paramName="e" paramProperty="id">participants</backpath:link> |
|
56 | </td> |
60 | </td> |
57 | </tr> |
61 | </tr> |
58 | </logic:iterate> |
62 | </logic:iterate> |
59 | </table> |
63 | </table> |
60 | 64 | ||
61 | <backpath:link action="/admin/event/edit">Add new event</backpath:link> |
65 | <backpath:link action="/admin/event/edit">Add new event</backpath:link> |
62 | <br> |
66 | <br> |
63 | <backpath:backlink>Back</backpath:backlink> |
67 | <backpath:backlink>Back</backpath:backlink> |
64 | 68 | ||
65 | </body> |
69 | </body> |
66 | 70 | ||
67 | </html> |
71 | </html> |