<!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">
		<table border="0" cellpadding="2" cellspacing="1" bgcolor="#EEEEEE">
		<tr>
			<th tal:content="options/event/kysiNimi" colspan="2" i18n:translate="">
				Event Name
			</th>
		</tr>
		<tr>
			<td class="t1" i18n:translate="">
				Teaser
			</td>
			<td class="t1" tal:content="options/event/kysiLyhi">
				Short Description
			</td>
		</tr>
		<tr>
			<td class="t1" i18n:translate="">
				Body
			</td>
			<td class="t1" tal:content="structure options/event/kysiPikk">
				Long description
			</td>
		</tr>
		<tr>
			<td class="t1" i18n:translate="">
				Starting time
			</td>
			<td class="t1" tal:content="python:options['event'].aegTekstina(request,options['event'].kysiAlgus())">
				Starting time
			</td>
		</tr>
		<tr tal:condition="python:options['event'].kysiAlgus()!=options['event'].kysiLopp()">
			<td class="t1" i18n:translate="">
				Ending time
			</td>
			<td class="t1" tal:content="python:options['event'].aegTekstina(request, options['event'].kysiLopp())">
				Ending time
			</td>
		</tr>
		<tr tal:condition="options/event/kysiViide">
			<td class="t1" i18n:translate="">
				URL
			</td>
			<td class="t1">
				<a href="#" tal:attributes="href event/kysiViide" tal:content="options/event/kysiViide">URL</a>
			</td>
		</tr>
		<tr tal:condition="options/event/kysiSiseviide">
			<td class="t1" i18n:translate="">
				Attachment
			</td>
			<td class="t1" tal:content="structure options/event/kysiSiseviiteLink">Interal link</td>
		</tr>
		<tr tal:condition="options/event/kysiOlek">
			<td class="t1" i18n:translate="">
				Status
			</td>
			<td class="t1" tal:content="python:options['event'].olekuTekst(request)">
				self.olekuTekst(REQUEST)
			</td>
		</tr>
		<tr tal:condition="python:options['event'].getPersonalStatus(request)">
			<td class="t1" i18n:translate="">
				Your status
			</td>
			<td class="t1" tal:content="python:options['event'].olekuTekst(request, options['event'].getPersonalStatus(request))">
				Your Status
			</td>
		</tr>
		<tr tal:condition="python:options['event'].kasOmanik(request)">
			<td>
				<form action="changeEvent" method="post">
				<input type="hidden" value="" name="userLocation" tal:attributes="value userLocation" />
				<input type="submit" value="Change"  i18n:attributes="value" />
				</form>
			</td>
			<td>
				<form action="syndmusteMuutmisLeht" method="post">
				<input type="hidden" name="userLocation" value="" tal:attributes="value userLocation" />
				<input type="hidden" name="kustutus" value="" tal:attributes="value python:options['event'].absolute_url(1)"/>
				<input type="hidden" name="backlink" value="" tal:attributes="value request/HTTP_REFERER" />
				<input type="submit" name="kustuta" value="Delete" i18n:attributes="value" />
				</form>
			</td>
		</tr>
		<form action="userStatus" method="post"> <!-- tal:condition="python:not(event.kasOmanik(request))"-->
		<input type="hidden" name="userLocation" value="" tal:attributes="value userLocation" />
		<tr>
			<td  i18n:translate="" i18n:target="nothing">
				Your status
			</td>
			<td>
				<select name="olek" >
					<option tal:repeat="status python:range(3)" value="status" tal:attributes="value status" tal:content="python:options['event'].olekuTekst(request, status)" />
<!--					for i in range(3):
						<option value=""+str(i)+""> 
							if i==self.kysiOlek():
								selected="selected
								self.olekuTekst(REQUEST, nr=i)+"</option>-->
				</select>
				<input type="submit" name="submitt" value="Save" i18n:attributes="value" />
			</td>
		</tr>
		</form>
		</table>
	</span>
</html>
