Subversion Repositories general

Rev

Rev 972 | Rev 980 | 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"  %>
<html>

<head>
        <meta http-equiv="expires" content="0">
        <title>Пьянка XP - Администрирование - Редактирование пьянки</title>
        <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
</head>

<body>

<h1>Пьянка XP - Администрирование - Редактирование пьянки</h1>

<strutsx:errorsIterator id="errors" />
<strutsx:notEmpty name="errors">
        <div class="error">Ошибки:
                <ul>
                <logic:iterate name="errors" id="error">
                        <li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
                </logic:iterate>
                </ul>
        </div>
</strutsx:notEmpty>

<html:form action="/admin/event/submit">
<backpath:current />
<html:hidden property="id" />

<table border=0 cellspacing=0 cellpadding=4>
        <tr class="even">
                <th>Название</th>
                <td colspan=3><html:text property="name" style="width:100%" maxlength="255" /></td>
    </tr>
        <tr class="odd">
                <th>Контактный e-mail</th>
                <td colspan=3><html:text property="email" style="width:100%" maxlength="255" /></td>
    </tr>
        <tr class="even">
                <th>Организаторы</th>
                <td colspan=3><html:text property="admins" style="width:100%" maxlength="255" /></td>
    </tr>
        <tr class="odd">
                <th>Контактные телефоны</th>
                <td colspan=3><html:text property="phones" style="width:100%" maxlength="255" /></td>
    </tr>
        <tr class="even">
                <th>Место/город</th>
                <td colspan=3><html:text property="place" style="width:100%" maxlength="255" /></td>
    </tr>
        <tr class="odd">
                <th>Точный адрес</th>
                <td colspan=3><html:textarea property="address" rows="8" style="width:100%" /></td>
    </tr>
        <tr class="even">
                <th>Описание проезда</th>
                <td colspan=3><html:textarea property="transport" rows="8" style="width:100%" /></td>
    </tr>
        <tr class="odd">
                <th>Начало</th>
                <td colspan=3><html:text property="start" style="width:100%" maxlength="100" /></td>
    </tr>
        <tr class="even">
                <th>Окончание</th>
                <td colspan=3><html:text property="stop" style="width:100%" maxlength="100" /></td>
    </tr>
        <tr class="odd">
                <th>Дата окончания регистрации</th>
                <td colspan=3><html:text property="lastreg" style="width:100%" maxlength="100" /></td>
    </tr>
        <tr class="even">
                <th>Последний срок отказа</th>
                <td colspan=3><html:text property="lastunreg" style="width:100%" maxlength="100" /></td>
    </tr>
        <tr class="odd">
                <th>Цена с человека</th>
                <td colspan=3><html:text property="price" style="width:100%" maxlength="10" /></td>
    </tr>
        <tr class="even">
                <th>Счет для перевода денег</th>
                <td colspan=3><html:textarea property="account" rows="8" style="width:100%" /></td>
    </tr>
        <tr class="odd">
                <th>Открыть доступ</th>
                <td colspan=3><html:checkbox property="enabled" /></td>
    </tr>
        <tr class="even">
                <th>Описание</th>
                <td colspan=3><html:textarea property="comment" rows="8" style="width:100%" /></td>
    </tr>

        <tr>
                <th colspan=4><div class="smallHeader">Планируемые мероприятия</div></th>
    </tr>
        <tr>
                <td class="subHeader">Название</td>
                <td class="subHeader">Включить</td>
                <td class="subHeader">Дополнительная информация</td>
                <td class="subHeader">&nbsp;</td>
    </tr>
<logic:iterate name="EventEditForm" property="acts" id="acts" indexId="iid">
        <tr>
                <td>
                        <bean:write name="actList" property='<%= "objects[" + iid + "].name" %>' />
                        <html:hidden name="acts" property="actId" indexed="true" />
                </td>
                <td><html:checkbox name="acts" property="selected" indexed="true" /></td>
                <td><html:text name="acts" property="comment" indexed="true" style="width:100%" /></td>
                <td>&nbsp;</td>
        </tr>
</logic:iterate>

        <tr>
                <th colspan=4><div class="smallHeader">Ближайшие гостиницы</div></th>
    </tr>
        <tr>
                <td class="subHeader">Название</td>
                <td class="subHeader">Включить</td>
                <td class="subHeader">Дополнительная информация</td>
                <td class="subHeader">Расстояние до местa (км)</td>
    </tr>
<logic:iterate name="EventEditForm" property="apartments" id="apartments" indexId="iid2">
        <tr>
                <td>
                        <bean:write name="apartmentList" property='<%= "objects[" + iid2 + "].name" %>' />
                        <html:hidden name="apartments" property="apartmentId" indexed="true" />
                </td>
                <td><html:checkbox name="apartments" property="selected" indexed="true" /></td>
                <td><html:text name="apartments" property="comment" indexed="true" style="width:100%" /></td>
                <td><html:text name="apartments" property="distance" indexed="true" style="width:100%" maxlength="10" /></td>
        </tr>
</logic:iterate>

        <tr>
                <td colspan=4>
                        <html:submit>Сохранить</html:submit>
                        <backpath:notEmpty><backpath:backlink>Отменить</backpath:backlink></backpath:notEmpty>
                </td>
    </tr>
</table>

</html:form>

<%@ include file="/admin/footer.jsp" %>

</body>

</html>