Subversion Repositories general

Rev

Rev 10 | Go to most recent revision | Blame | Compare with Previous | 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"  %>
<%@ taglib uri="/WEB-INF/ak-itru.tld"          prefix="itru"     %>
<html>

<head>
        <meta http-equiv="expires" content="0">
        <title>Participants</title>
        <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
</head>

<body>

<h1>Participants of <bean:write name="event" property="name" /></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>Ident</th>
                <th>Nick</th>
                <th>Email</th>
                <th>Name</th>
                <th>Persons</th>
                <th>Payed</th>
                <th>&nbsp;</th>
                <th>&nbsp;</th>
        </tr>

<logic:iterate name="participants" id="p">
        <tr>
                <td><bean:write name="p" property="ident"   /></td>
                <td><bean:write name="p" property="nick"    />&nbsp;</td>
                <td><bean:write name="p" property="email"   />&nbsp;</td>
                <td><bean:write name="p" property="name"    />&nbsp;</td>
                <td><bean:write name="p" property="persons" />&nbsp;</td>
                <td>
                        <logic:equal name="p" property="payed" value="true">x</logic:equal>
                        <logic:notEqual name="p" property="payed" value="true">&nbsp;</logic:notEqual>
                </td>
                <td>
                        <itru:link action="/admin/participant/edit" paramId="id" paramName="p" paramProperty="id" paramId2="event" paramName2="event" paramProperty2="id">edit</itru:link>
                </td>
                <td>
                        <backpath:link action="/admin/participant/delete" paramId="id" paramName="p" paramProperty="id">delete</backpath:link>
                </td>
        </tr>
</logic:iterate>
</table>

<backpath:link action="/admin/participant/edit" paramId="event" paramName="event" paramProperty="id">Add new participant</backpath:link>
<br>
<backpath:backlink>Back</backpath:backlink>

</body>

</html>