<!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 tal:omit-tag="" metal:fill-slot="main_content_slot">

			<label tal:condition="python:userLocation!='Organizer'">&gt; </label>
			<span tal:condition="python:userLocation!='Organizer'" tal:omit-tag="" i18n:translate="">Mailbox</span>
			<br />
			<form action="kirjakastiMuutus" method="post">
			<input type="hidden" name="userLocation" value="" tal:attributes="value userLocation" />
			<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
				<tr>
					<td width="30" align="center">
						<img src="images/mailbox" alt="" height="20" width="20" />
					</td>
					<td>
						<a href="" tal:omit-tag="python:not(getattr(request,'mblocation',None))" tal:attributes="href python:context.absolute_url()+'/mailbox_index?userLocation='+userLocation" class="link2" i18n:translate="">Mailbox</a>
					</td>
					<td width="30" align="center">
						<img src="images/transparent_gif" alt="" height="20" width="20" />
					</td>
					<td>
						<a href="" tal:attributes="href python:context.absolute_url()+'/createMail?userLocation='+userLocation" class="link2" i18n:translate="">New mail</a>
					</td>
					<td width="30" align="center">
						<img src="images/outbox" alt="" height="20" width="20" />    
		  			</td>
          			<td>
					<a href="" tal:omit-tag="python:getattr(request,'mblocation',None)" tal:attributes="href python:context.absolute_url()+'/mailbox_index?mblocation=1&userLocation='+userLocation" class="link2" i18n:translate="">Outbox</a>
					</td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td><img src="images/transparent_gif" height="8" width="10" alt="" /></td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#EEEEEE">
				<tr>
					<td width="30">&nbsp;</td>
					<td i18n:translate="">Subject</td>
					<td i18n:translate="">Sender</td>
					<td i18n:translate="">Date</td>
				</tr>
				<tr tal:repeat="message python:context.listMessages(request)">
					<td width="30" class="t1">
						<input type="checkbox" name="kiri" value="" tal:attributes="value message/id" />
					</td>
					<td class="t1">
						<!-- Strong it! -->
						<strong tal:omit-tag="message/kasLoetud">
						<a href="#" tal:attributes="href string:${message/absolute_url}?userLocation=${userLocation}" tal:content="message/kysiPealkiri">message subject</a>
						</strong>
					</td>
					<td class="t1">
						<strong tal:omit-tag="message/kasLoetud">
						<a href="createMail" tal:attributes="href python:'createMail'+'?kellele='+message.kysiSaatja()+'&pealkiri='+message.kysiPealkiri()+'&userLocation='+userLocation" tal:content="message/kysiSaatja_nimega">sender</a>
						</strong>
					</td>
					<td class="t1">
						<strong tal:omit-tag="message/kasLoetud">
						<span tal:replace="python:message.kysiAegTekstina(request)" />
						</strong>
					</td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td><img src="images/transparent_gif" height="8" width="10" alt="" /></td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#EEEEEE">
				<tr>
					<td><input type="submit" name="kustuta" value="Delete" i18n:attributes="value" /></td>
				</tr>
			</table>
			</form>
	</span>
  
</html>

