Blame | Last modification | View Log | RSS feed
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %>
<%@ taglib uri="/WEB-INF/ak-strutsx.tld" prefix="strutsx" %>
<html>
<head>
<meta http-equiv="expires" content="0">
<title>Events</title>
<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
</head>
<body>
<h1>Events</h1>
<strutsx:errorsIterator id="errors" />
<strutsx:notEmpty name="errors">
<div class="error">Errors in input:
<ul>
<logic:iterate name="errors" id="error">
<li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
</logic:iterate>
</ul>
</div>
</strutsx:notEmpty>
<table border=1>
<tr>
<th>Name</th>
<th>Place</th>
<th>Start</th>
<th>Stop</th>
<th>Enabled</th>
<th> </th>
<th> </th>
</tr>
<logic:iterate name="events" id="e">
<tr>
<td><bean:write name="e" property="name" /></td>
<td><bean:write name="e" property="place" /> </td>
<td><bean:write name="e" property="start" /> </td>
<td><bean:write name="e" property="stop" /> </td>
<td>
<logic:equal name="e" property="enabled" value="true">x</logic:equal>
<logic:notEqual name="e" property="enabled" value="true"> </logic:notEqual>
</td>
<td>
<backpath:link action="/admin/event/edit" paramId="id" paramName="e" paramProperty="id">edit</backpath:link>
</td>
<td>
<backpath:link action="/admin/event/delete" paramId="id" paramName="e" paramProperty="id">delete</backpath:link>
</td>
</tr>
</logic:iterate>
</table>
<backpath:link action="/admin/event/edit">Add new event</backpath:link>
<br>
<backpath:backlink>Back</backpath:backlink>
</body>
</html>