<!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">


<!-- esitluskaustakontroll 
<span tal:condition="python:context.kasEsitluskaust(here.REQUEST)" tal:omit-tag="">
	<span tal:condition="python:not(context.kasOmaVeebilaual(request))" tal:omit-tag="">
		<span tal:condition="python:not(here.kas_opetaja(request))" tal:define="x python:here.REQUEST.RESPONSE.redirect('..')" tal:omit-tag=""></span>
	</span>
</span>

-->

<span tal:omit-tag="" metal:fill-slot="main_content_slot">
                <span metal:use-macro="container/main_macro/macros/visit" tal:omit-tag=""></span>

                <span tal:condition="python:context.kasWikiKaust(request)" tal:omit-tag="">
                	<span tal:omit-tag="" tal:define="dummy python:request.response.redirect(here.get_url_to_object(context)+context.wikiKaustEsimeneLeht(request))" />
                </span>
				
				&nbsp;
				<form action="form_handler" method="post" enctype="multipart/form-data" accept-charset="utf-8">
					<span tal:condition="python:context.kasLubatudMuuta(request)" tal:omit-tag=""><!--SecurityCheckPermission('Edit', context) and   -->
					<table tal:condition="python:context.check_permission('Edit')" width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
					  <tr>
						<td width="30" align="center">
						<img src="images/folder_gif" height="20" width="20" alt="Add folder" i18n:attributes="alt" />
						</td>
						<td><a href="wt_add_folder" class="link2" i18n:translate="">Add folder</a></td>
						<td width="30" align="center">
						<img src="images/document_gif" height="20" width="20" alt="Add document" i18n:attributes="alt" />
						</td>
						<td><a href="wt_upload" class="link2" i18n:translate="">Add document</a></td>
						<td width="30" align="center">
						<img src="images/link_gif" height="20" width="20" alt="Add link" i18n:attributes="alt" /></td>
						<td><a href="wt_add_link" class="link2" i18n:translate="">Add link</a></td>
						<td width="30" align="center">
						<img src="images/memo_gif" height="20" width="20" alt="Add memo" i18n:attributes="alt" />
						</td>
						<td><a href="wt_add_memo" class="link2" i18n:translate="">Add memo</a></td>
						<td width="30" align="center">
						<img src="images/wiki_gif" height="20" width="20" alt="Add Wiki" i18n:attributes="alt" />
						</td>
						<td><a href="wt_add_wiki" class="link2" i18n:translate="">Add Wiki</a></td>
						<td width="30" align="center">
						<img src="images/zip" height="20" width="20" alt="Unzip" i18n:attributes="alt" />
						</td>
						<td><a href="wt_zip_upload" class="link2" i18n:translate="">Unzip</a></td>
					  </tr>
					</table>
				</span>
				<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 colspan="2" i18n:translate="">&nbsp;</td>
					<td align="center">
						<a href="#" tal:attributes="href python:request.URL0+'?suund=name'" i18n:translate="">Name</a>
					</td>
					<td>&nbsp;</td>
					<td width="70" align="center">
						<a href="#" tal:attributes="href python:request.URL0+'?suund=size'" i18n:translate="">Size</a>
					</td>
					<td width="100" align="center">
						<a href="#" tal:attributes="href python:request.URL0+'?suund=date'" i18n:translate="">Date</a>
					</td>
					<td width="40" align="center">
					<!--
						<a href="#" tal:attributes="href python:request.URL0+'?suund=weight'" i18n:translate="">++</a>
					-->
					</td>
				  </tr>

				<span tal:condition="python:hasattr(context, 'location_type')" tal:omit-tag="">
				  <tr tal:define="koht python:context.location_type" tal:condition="python:here.kasutajaasukoht(request)=='Veebilaud' and koht=='sahtel'">
					<td class="t1" width="30">&nbsp;</td>
					<td class="t1" width="30" align="center">
						<img src="images/link_gif" alt="info" height="20" width="20" vspace="1" /></td>
						<td class="t1" colspan="5">
						 <a href="#" tal:attributes="href python:here.fle_root().absolute_url()+'/kasutajaSyndmusedLehena?kasutajanimi='+str(request.AUTHENTICATED_USER)">Info</a>
					</td>
				  </tr>
				</span>

				  <tr tal:condition="python:context.kasEsitluskaust(request)">
					<td class="t1" width="30">&nbsp;</td>
					<td class="t1" width="30" align="center">
					<img src="images/grade_gif" alt="Wiki" height="20" width="20" vspace="1" /></td>
					<td class="t1" colspan="5">
					  <a href='esitluskaustaAndmed' i18n:translate="">Grading</a>
					</td>
				  </tr>

				<span tal:define="sbgrpnm python:context.kysiSisegrupiNimi()" tal:condition="python:sbgrpnm" tal:omit-tag="">
				  <tr>
					<td class="t1" width="30">&nbsp;</td>
					<td class="t1" width="30" align="center">
						<a href="#" tal:attributes="href python:here.absolute_url()+'/kasutajad_sisegrupis_HTML?grupinimi='+sbgrpnm" i18n:translate="">Participants</a>
					</td>
					<td class="t1" colspan="5"></td>
				  </tr>
				  <tr>
					<td class="t1" width="30">&nbsp;</td>
					<td class="t1" width="30" align="center">
						<a href="#" tal:attributes="href python:here.absolute_url()+'/syndmused/event_list'" i18n:translate="">Event management</a>
					</td>
					<td class="t1" colspan="5"></td>
				  </tr>
				  <tr>
					<td class="t1" width="30">&nbsp;</td>
					<td class="t1" width="30" align="center">
						<span tal:define="global kellele python:'?'" tal:repeat="sqnc python:context.kasutajad_sisegrupis(sbgrpnm)" tal:omit-tag="">
							<span tal:define="global kellele python:kellele+'kellele='+sqnc+'&'" tal:omit-tag=""></span>
						</span>
						<a href="#" tal:attributes="href python:here.jooksevKasutaja(request).kirjad.absolute_url()+'/kirjaKoostamiseVorm'+kellele" i18n:translate="">Send message</a>
					</td>
					<td class="t1" colspan="5"></td>
				  </tr>
				</span>

				<!-- objects -->
				<span tal:repeat="obj python:context.list_contents_request(request)" tal:omit-tag="">
					<span tal:condition="python:obj.hasPermissionToView(request)" tal:omit-tag="">
						<tr>
							<!-- objects checkboxes -->
							<td class="t1" width="30">
								<input tal:condition="python:obj.may_edit(str(request.AUTHENTICATED_USER)) or context.kasOmaVeebilaual(request)" tal:attributes="value python:obj.get_id()" type="checkbox" value="#" name="item_ids" />
							</td>
							<!-- obj icons -->
							<td class="t1" width="30" align="center">
								<a tal:condition="python:obj.meta_type=='WebtopLink'" href="#" tal:attributes="href python:obj.get_url()" tal:content="structure python:obj.get_icon().tag()">#</a>

								<a tal:condition="python:obj.meta_type=='WebtopMemo'" href="#" tal:attributes="href python:here.get_url_to_object(obj)+'/wt_view_memo'" tal:content="structure python:obj.get_icon().tag()">#</a>

								<a tal:condition="python:obj.meta_type=='WebtopFolder' and obj.kasWikiKaust(request)" href="#" tal:attributes="href python:here.get_url_to_object(obj)"><img src="images/wiki_gif" alt="Wiki" height="20" width="20" vspace="1" /></a>

								<a tal:condition="python:obj.meta_type=='WebtopFolder' and not(obj.kasWikiKaust(request))" href="#" tal:attributes="href python:here.get_url_to_object(obj)" tal:content="structure python:obj.get_icon().tag()">#</a>

								<a tal:condition="python:not(obj.meta_type=='WebtopLink') and not(obj.meta_type=='WebtopMemo') and not(obj.meta_type=='WebtopFolder') and not(obj.meta_type=='WebtopFile') and not(obj.kasWikiKaust(request))" href="#" tal:attributes="href python:here.get_url_to_object(obj)" tal:content="structure python:obj.get_icon().tag()" tal:omit-tag="">#</a>

								<a tal:condition="python:obj.meta_type=='WebtopFile'" href="#" tal:attributes="href python:obj.aq_parent.absolute_url()+'/'+obj.get_id()" tal:content="structure python:obj.get_icon().tag()">#</a>
							</td>
							<!-- obj name -->
							<td class="t1">
								<span tal:omit-tag="" tal:define="s1 string:<strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s1"></span>
								<a tal:condition="python:obj.meta_type=='WebtopLink'" href="#" tal:attributes="href python:obj.get_url()" tal:content="python:obj.get_list_item_name(request)">#</a>

								<a tal:condition="python:obj.meta_type=='WebtopMemo'" href="#" tal:attributes="href python:here.get_url_to_object(obj)+'/wt_view_memo'" tal:content="python:obj.get_list_item_name(request)">#</a>

								<a tal:condition="python:obj.meta_type=='WebtopFolder' and obj.kasWikiKaust(request)" href="#" tal:attributes="href python:obj.get_id()" tal:content="python:obj.get_list_item_name(request)">#</a>

								<a tal:condition="python:obj.meta_type=='WebtopFolder' and not(obj.kasWikiKaust(request))" href="#" tal:attributes="href python:obj.get_id()" tal:content="python:obj.get_list_item_name(request)">#</a>

								<a tal:condition="python:obj.meta_type=='WebtopFile'" href="#" tal:attributes="href python:obj.aq_parent.absolute_url()+'/'+obj.get_id()" tal:content="python:obj.get_list_item_name(request)">#</a>
								<span tal:define="s2 string:</strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s2"></span>

								<a href="#" tal:attributes="href python:obj.aq_parent.absolute_url()+'/'+obj.get_id()+'/wt_usercomments'" tal:content="python:'('+obj.getCommentCount()+')'">#</a>
							</td>
							<!-- obj author -->
							<td class="t1">
								<span tal:omit-tag="" tal:define="s1 string:<strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s1"></span>
								<a href="#" tal:condition="python:(context.may_edit(str(request.AUTHENTICATED_USER)) and here.kasutajaasukoht(request)=='Raamaturiiul') or ('Owner' in context.get_local_roles_for_userid(str(request.AUTHENTICATED_USER)))" tal:attributes="href python:obj.aq_parent.absolute_url()+'/'+obj.get_id()+'/wt_itemProperties'"><img src="images/seaded"></a>
								<a href="#" tal:attributes="href python:obj.get_id()+'/kylastajateLoetelu'" tal:content="python:obj.firstAndLast()">#</a>
								<span tal:omit-tag="" tal:define="s2 string:</strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s2"></span>
							</td>
							<!-- obj size -->							
							<td width="70" class="t3">
								<span tal:omit-tag="" tal:define="s1 string:<strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s1"></span>
								<x tal:omit-tag="" tal:replace="python:obj.get_printable_size(request)"></x>
								<span tal:omit-tag="" tal:define="s2 string:</strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s2"></span>
							</td>
							<!-- obj date -->
							<td width="100" class="t3">
								<span tal:omit-tag="" tal:define="s1 string:<strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s1"></span>
									<x tal:omit-tag="" tal:replace="python:obj.get_printable_day(obj.get_timestamp(), request)"></x>
								<span tal:omit-tag="" tal:define="s2 string:</strong>" tal:condition="python:obj.kasMuudetudParastKylastust(request)" tal:replace="structure s2"></span>
							</td>
							<!-- obj weight -->
							<td width="40" class="t4">
							<span tal:condition="python:context.kasLubatudMuuta(request)" tal:omit-tag=""><!--SecurityCheckPermission('Edit', context) and   -->
								<a href="#" tal:attributes="href python:obj.get_id()+'/kaal?yles=1'"><img src="images/arrow_up1" alt="" height="7" width="11" border="0" /></a>
								<a href="#" tal:attributes="href python:obj.get_id()+'/kaal?alla=1'"><img src="images/arrow_down1" alt="" height="7" width="11" border="0" /></a>
							</span>
							</td>
						</tr>
					</span>
				</span>
			</table>
			<!-- footer menu -->
			<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>
					<span tal:condition="python:context.check_permission('Edit') and context.kasLubatudMuuta(request)" tal:omit-tag="">
						<input type="submit" name="cut" value="Cut" i18n:attributes="value" />
						<input type="submit" name="copy" value="Copy" i18n:attributes="value" />
						<input type="submit" name="paste" value="Paste" i18n:attributes="value" />
						<input type="submit" name="remove" value="Remove" i18n:attributes="value" />
						<input type="submit" name="rename" value="Rename" i18n:attributes="value" />
						
						<input tal:condition="python:(hasattr(context, 'location_type') and context.location_type=='sahtel') or context.kysiSisegrupiNimi()" type="submit" name="dublikaat" value="Publish" i18n:attributes="value" />
					  
						<input type="submit" name="kalendrisse" value="To Calender" i18n:attributes="value" />
						<input type="submit" name="paki" value="ZIP" i18n:attributes="value" />
					</span>
					</td>
				</tr>
			</table>
			<!-- assignment description -->
			<span tal:condition="python:context.kasEsitluskaust(request)" tal:omit-tag="">
				<x tal:replace="python:context.viimaseMuutmisajaTeade(request)" />
				<br />
				<x i18n:translate="" tal:omit-tag="">Assignment description</x>
				<br />
				<x tal:replace="python:context.kysiToo(request).kirjeldus" />
				<br />
				<x tal:replace="structure python:context.kasJuhend(request)" />
			</span>
		</form>
		<x tal:omit-tag="" tal:replace="structure python:here.state_form(request, 'search_form_handler', 'POST')" />
			<table align='right'>
				<tr>
					<td>
						<input type=hidden name="get_author_name" value="___anyone___" />
						<input type=hidden name="get_content" value="" />
						<input type="text" name="get_name" size="24" tabindex="1" />
						<input type="submit" value="Search" i18n:attributes="value" name="submit" tabindex="2" />
					</td>
					<td>
						<a id="smallwh" href="#" tal:attributes="href python:here.state_href(request, 'wt_search')" i18n:translate="">Advanced</a>
					</td>
				</tr>
			</table>
		<x tal:omit-tag="" tal:define="s2 string:</form>" tal:replace="structure s2" />
</span>
</html>
