/kickup/trunk/webapp/participant/ident.jsp |
---|
45,7 → 45,7 |
<h2>Отказ от регистрации</h2> |
<logic:equal name="e" property="unregistrationAvailable" value="true"> |
<logic:equal name="event" property="unregistrationAvailable" value="true"> |
<html:form action="/participant/unregister"> |
<backpath:current /> |
<input type=hidden name="event" value="<bean:write name="event" property="id" />"> |
60,7 → 60,7 |
</table> |
</html:form> |
</logic:equal> |
<logic:equal name="e" property="unregistrationAvailable" value="true"> |
<logic:equal name="event" property="unregistrationAvailable" value="true"> |
<p>Срок отказа от регистрации прошел.</p> |
</logic:equal> |
/kickup/trunk/src/ak/kickup/core/action/ParticipantAction.java |
---|
131,7 → 131,10 |
throw new UserException("ak.kickup.core.participant.edit.ident.wrong"); |
} |
// FIXME: check last unregistration date |
if(!event.isUnregistrationAvailable()) { |
throw new UserException( |
"ak.kickup.core.participant.edit.unregistration.unavailable"); |
} |
ParticipantManager.getInstance().delete(participant); |
request.setAttribute("event", event); |
143,7 → 146,10 |
Event event = EventManager.getInstance().get(eventId, true); |
Participant participant = ParticipantManager.getInstance().create(); |
// FIXME: check last registration date |
if(!event.isRegistrationAvailable()) { |
throw new UserException( |
"ak.kickup.core.participant.edit.registration.unavailable"); |
} |
participant.setIdent(ParticipantManager.getInstance().generateIdent()); |
participant.setEvent(event); |
/kickup/trunk/src/ak/kickup/core/CoreResources.properties |
---|
29,5 → 29,7 |
ak.kickup.core.participant.edit.departure.wrong=Время отправления дожно быть, например, 20.10.2004 13:55 |
ak.kickup.core.participant.edit.freesleep.wrong=Количество спальных мест должно быть целым числом |
ak.kickup.core.participant.edit.ident.wrong=Неизвестный номер |
ak.kickup.core.participant.edit.registration.unavailable=Время регистрации прошло |
ak.kickup.core.participant.edit.unregistration.unavailable=Время отмены регистрации прошло |
org.apache.struts.taglib.bean.format.sql.timestamp=dd.MM.yyyy HH:mm:ss.SSS |