Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 23 → Rev 22

/kickup/trunk/webapp/participant/ident.jsp
45,7 → 45,7
 
<h2>Отказ от регистрации</h2>
 
<logic:equal name="event" property="unregistrationAvailable" value="true">
<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" />">
60,7 → 60,7
</table>
</html:form>
</logic:equal>
<logic:equal name="event" property="unregistrationAvailable" value="true">
<logic:equal name="e" property="unregistrationAvailable" value="true">
<p>Срок отказа от регистрации прошел.</p>
</logic:equal>
 
/kickup/trunk/src/ak/kickup/core/action/ParticipantAction.java
131,10 → 131,7
throw new UserException("ak.kickup.core.participant.edit.ident.wrong");
}
 
if(!event.isUnregistrationAvailable()) {
throw new UserException(
"ak.kickup.core.participant.edit.unregistration.unavailable");
}
// FIXME: check last unregistration date
 
ParticipantManager.getInstance().delete(participant);
request.setAttribute("event", event);
146,10 → 143,7
Event event = EventManager.getInstance().get(eventId, true);
Participant participant = ParticipantManager.getInstance().create();
 
if(!event.isRegistrationAvailable()) {
throw new UserException(
"ak.kickup.core.participant.edit.registration.unavailable");
}
// FIXME: check last registration date
 
participant.setIdent(ParticipantManager.getInstance().generateIdent());
participant.setEvent(event);
/kickup/trunk/src/ak/kickup/core/CoreResources.properties
29,7 → 29,5
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