<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jspf/taglibs.jsp"%>

<c:set var="uiid" value="${u:uiid()}"/>
<html:form styleId="${uiid}" action="/open/plugin/feedback/message" style="width: 50%;">
	<html:hidden property="method" value="add"/>
	<html:hidden property="processId"/>

	<h1>${l.l('Написать сообщение')}</h1>
	<div class="in-inline-block w100p">
		<div style="width: 50%;">
			<h2>${l.l('Subject')} *</h2>
			<input type="text" name="subject" class="w100p"/>
		</div><%--
	--%><div class="pl1" style="width: 50%;">
			<h2>Email *</h2>
			<input type="text" name="email" class="w100p"/>
		</div>
	</div>
	<div>
		<h2>${l.l('Текст')} *</h2>
		<textarea name="text" class="w100p" rows="20"/>
	</div>
	<div class="pt1">
		<c:set var="returnCommand">$$.ajax.loadContent('/open/process.do?method=show&id=${form.param.processId}', this)</c:set>
		<button type="button" class="btn-grey" onclick="$$.ajax.post(this).done(() => ${returnCommand})">OK</button>
		<button type="button" class="btn-grey ml1" onclick="${returnCommand}">${l.l('Cancel')}</button>
	</div>
</html:form>