<!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">
	&gt; <label tal:omit-tag="" i18n:translate="">Wordmaps</label>
	<br />

	<table tal:condition="python:context.check_permission(request,'Add FLE LO')" width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
		<tr>
			<td width="30" align="center"><img src="images/jamming" height="20" width="20" alt="Add new wordmap" i18n:attributes="alt" /></td>
                        <td>
                            <form action="addWordMap_handler" method="post">
                                 <input type="submit" value="Add new wordmap" i18n:attributes="value" />
                            </form>
                        </td>
			<td>
			  <form action="XTMNewImportWWW" enctype="multipart/form-data" method="post">
			   <input type="file" name="datafile" />
			   <input type="submit" value="Import"  i18n:attributes="value"/> 
			  </form>
			</td>
		</tr>
	</table>
		<form action="wordmaps_delete_confirm">
            <table>
               <tr tal:repeat="wmap here/getWordMaps">
                   <td><input type="radio" name="wm" tal:attributes="value wmap/id" tal:condition="python:context.kas_opetaja(request)"/></td>
                   <td><a tal:attributes="href wmap/absolute_url"><span tal:content="python:test(wmap.getTitle(), wmap.getTitle()+'('+wmap.id+')', wmap.id)" tal:omit-tag=""></span></a></td>
                   <td><a tal:attributes="href python:wmap.absolute_url()+'/wordmaps_managing_page'" i18n:translate="">Settings</a></td>
                   <td><a tal:attributes="href python:wmap.absolute_url()+'/wordmaps_weight_page'" i18n:translate="">Assessment</a></td>
               </tr>
            </table>
            <input type="submit" name="delete" value="Delete" tal:condition="python:context.kas_opetaja(request)" i18n:attributes="value" />
        </form><br />
        <a href="wordmaps_hierarhy" i18n:translate="" tal:condition="python:here.objectValues('WordMap')">Wordmaps hierarhy</a>
</span>
</html>
