<!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" tal:condition="python:here.kas_opetaja(request) or request.AUTHENTICATED_USER.has_role('Manager')">
			&gt; <label i18n:translate="">Knowledge types</label>
			<br />
			<h2 i18n:translate="">Knowledge type sets</h2>
			<form action="form_handler" method="post">
			<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
				<tr>
					<td width="50%">
						<a href="start_edit_from_existing" i18n:translate="">Add new knowledge type set</a>
					</td>
					<td width="50%">
						<a href="manage_import_form" i18n:translate="">Import knowledge type set</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 tal:repeat="tts python:context.get_all_thinking_type_sets(request)">
					<td class="t1" width="30">
						<input type="checkbox" name="sets" value="" tal:attributes="value tts/get_id" />
					</td>
					<td class="t1">
					<a href="" tal:attributes="href python:context.get_path_to(tts)+'/'" tal:content="tts/get_name">name</a>
					<label i18n:translate="" tal:condition="python:context.is_in_tmp(tts)">Unfinished</label>
					</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="0" bgcolor="#EEEEEE">
				<tr>
					<td>
						<input type="submit" name="tts_export" value="Export" i18n:attributes="value" tal:attributes="disabled python:len(context.get_all_thinking_type_sets(request))<1" disabled="disabled" />
						<input type="submit" name="delete" value="Delete" i18n:attributes="value" tal:attributes="disabled python:len(context.get_all_thinking_type_sets(request))<1" disabled="disabled" />
					</td>
				</tr>
			</table>
		</form>
</span>  
</html>
