<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html metal:use-macro="container/page_macro/macros/master_page">

<span metal:fill-slot="main_content_slot">

			
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#EEEEEE">
				<tr>
					<td class="t1" width="120" i18n:translate="">Sender:</td>
					<td class="t1" tal:content="python:context.firstAndLast(context.saatja)">sender</td>
					<td class="t1" width="50">
						<form action="createMail" method="post">
						<input type="hidden" name="kellele" value="self.saatja" tal:attributes="value context/saatja" />
						<input type="hidden" name="pealkiri" value="Re:" tal:attributes="value python:'Re: '+context.kysiPealkiri()" />
<!--						<input type="hidden" name="sisu" value="" tal:attributes="value context/sisu" />-->
						<input type="hidden" name="sisu" value="" tal:attributes="value python:context.saaja+'@'+context.kysiAegTekstina(request)+'\n'+context.kysiSisu(1)" />						
						<input type="submit" value="Reply" i18n:attributes="value" name="vasta1">
						</form>
					</td>
				</tr>
				<tr>
					<td class="t1" width="120" i18n:translate="">To:</td>
					<td class="t1">
						<span tal:repeat="x python:context.saaja.split(',')" tal:omit-tag="">
							<span tal:condition="python:hasattr(context,'omakopi')">
								<strong tal:omit-tag="python:hasattr(context, x.strip()+'_hasread')" tal:content="x" />
							</span>
							<span tal:condition="python:not(hasattr(context,'omakopi'))" tal:omit-tag="">
								<span tal:define="setread python:context.setRemoteRead(request)" tal:content="x" tal:omit-tag=""></span>
							</span>
						</span>
        </td>
        <td class="t1" width="50">
		<form action="createMail" method="post">
        <input type="hidden" name="kellele" value="" tal:attributes="value context/saatja" />
        <input type="hidden" name="pealkiri" value="Re: " tal:attributes="value context/kysiPealkiri" />
		<input type="hidden" name="sisu" value="" tal:attributes="value python:context.saaja+'@'+context.kysiAegTekstina(request)+'\n'+context.kysiSisu(1)" />
        <input type="submit" value="Reply" i18n:attributes="value" name="vasta2">
        </form>
					</td>
				</tr>
				<tr>
					<td class="t1" width="120" i18n:translate="">Date</td>
					<td colspan="2" class="t1" tal:content="python:context.kysiAegTekstina(request)">"+self.kysiAegTekstina(REQUEST)+"</td>
				</tr>
				<tr>
					<td class="t1" width="120" i18n:translate="">Title</td>
					<td colspan="2" class="t1" tal:content="context/kysiPealkiri">title</td>
				</tr>
				<tr>
					<td colspan="3" class="t1"><p tal:content="python:context.kysiSisu('\n')"></p></td>
				</tr>
			</table>
</span>
</html>
