Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 20 → Rev 21

/kickup/trunk/src/ak/kickup/core/action/ParticipantAction.java
131,6 → 131,8
throw new UserException("ak.kickup.core.participant.edit.ident.wrong");
}
 
// FIXME: check last unregistration date
 
ParticipantManager.getInstance().delete(participant);
request.setAttribute("event", event);
return mapping.findForward("default");
141,6 → 143,8
Event event = EventManager.getInstance().get(eventId, true);
Participant participant = ParticipantManager.getInstance().create();
 
// FIXME: check last registration date
 
participant.setIdent(ParticipantManager.getInstance().generateIdent());
participant.setEvent(event);
 
/kickup/trunk/webapp/participant/ident.jsp
45,19 → 45,24
 
<h2>Отказ от регистрации</h2>
 
<html:form action="/participant/unregister">
<backpath:current />
<input type=hidden name="event" value="<bean:write name="event" property="id" />">
<table border=1>
<tr>
<th>Ваш номер</th>
<td><html:text property="ident" /></td>
</tr>
<tr>
<td colspan=2><html:submit>Я не еду</html:submit></td>
</tr>
</table>
</html:form>
<logic:equal name="e" property="unregistrationAvailable" value="true">
<html:form action="/participant/unregister">
<backpath:current />
<input type=hidden name="event" value="<bean:write name="event" property="id" />">
<table border=1>
<tr>
<th>Ваш номер</th>
<td><html:text property="ident" /></td>
</tr>
<tr>
<td colspan=2><html:submit>Я не еду</html:submit></td>
</tr>
</table>
</html:form>
</logic:equal>
<logic:equal name="e" property="unregistrationAvailable" value="true">
<p>Срок отказа от регистрации прошел.</p>
</logic:equal>
 
<backpath:notEmpty><backpath:backlink>Назад</backpath:backlink></backpath:notEmpty>