<!DOCTYPE HTML SYSTEM>
<html i18n:domain="iva" tal:define="x python:request.set('HTTP_ACCEPT_LANGUAGE', here.giveLanguage(request))">

<span metal:use-macro="container/main_macro/macros/head" tal:omit-tag=""></span>

  <body>
	<span metal:use-macro="container/main_macro/macros/kasutajateemataust" tal:omit-tag=""></span>
	<div style="position:absolute; top:182px; left:200px">

		<div style="position:absolute; top:0px; left:0px">
			<label i18n:translate="" tal:condition="not:request/is_new | nothing">Editing Knowledge type set</label>
			<label i18n:translate="" tal:condition="request/is_new | nothing">Creating new Knowledge type set</label>
		</div>
	
		<div style="top:0px; margin-right:10px; float:right">
			<strong i18n:translate="">Form 1/3</strong>
		</div>
	
		<div style="position:absolute; top:40px; left:0px">
		
		<form action="edit_form_1_3_handler" method="post" enctype="multipart/form-data">
		<input type="hidden" value="" name="is_new" tal:attributes="value request/is_new | nothing" />
		
		<table border="0" cellpadding="4" cellspacing="0">
		 	<tr>
				<td colspan="4">
				<p>
					<b i18n:translate="">Title:</b>&nbsp;
					<input type="text" name="tts_name" size="36" tabindex="0" value="" tal:attributes="value context/get_name">
				</p>
				<p>
					<b i18n:translate="">Description</b>
					<label i18n:translate="" tal:omit-tag="">of the knowledge type set:</label>
					<br> 
					<textarea name="tts_desc" cols="66" rows="4" wrap="soft" tabindex="1" tal:content="context/get_description | nothing"></textarea>
				</p>
				</td>
			</tr>
			<tr>
				<td><b i18n:translate="">Knowledge type:</b></td>
				<td><b i18n:translate="">Abbreviation:</b></td>
				<td><b i18n:translate="">Colour:</b></td>
				<td><b i18n:translate="">Icon:</b></td>
			</tr>
			<tr tal:repeat="tte context/thinking_type_entries">
				<td class="" tal:condition="tte/e" tal:attributes="class tte/o/get_colour">
					<input type="text" name="_name" size="16" tabindex="3" value="" tal:attributes="name string:${tte/o/get_id}_name;value tte/o/get_name" />
				</td>
				<td class="" tal:condition="tte/e" tal:attributes="class tte/o/get_colour">
					<input type="text" name="_abbr" size="8" tabindex="4" value="" tal:attributes="name string:${tte/o/get_id}_abbr;value tte/o/get_abbreviation" />
				</td>
				<td class="" tal:condition="tte/e" tal:attributes="class tte/o/get_colour">
					<select name="_colour" tal:attributes="name string:${tte/o/get_id}_colour" tabindex="5">
						<span tal:omit-tag="" tal:repeat="color python:('tt_yellow','tt_yellowlt','tt_orange','tt_orangelt','tt_red','tt_pink','tt_purple','tt_blue','tt_bluelt','tt_aqua','tt_green','tt_greenlt','tt_gray','tt_white')">
							<option value="" tal:attributes="value color;selected python:color==tte['o'].get_colour()" selected="selected" tal:content="color" i18n:translate=""></option>
						</span>
					</select>
				</td>
				<td nowrap="nowrap" class="" tal:condition="tte/e" tal:attributes="class tte/o/get_colour">
					<img src="" tal:attributes="src string:${tte/o/get_id}/type_icon" tal:condition="tte/o/type_icon" />
					<input type="file" name="_icon" size="16" tabindex="6" tal:attributes="name string:${tte/o/get_id}_icon" />
				</td>
				<!-- empty records/spare space -->
				<td tal:condition="not:tte/e">
					<input type="text" name="tt_x_name" tal:attributes="name string:tt_${repeat/tte/index}_name" size="16" tabindex="7" value="" />
				</td>
				<td tal:condition="not:tte/e">
				<input type="text" name="tt_x_name" tal:attributes="name string:tt_${repeat/tte/index}_abbr" size="8" tabindex="8" value="" />
				</td>
				<td tal:condition="not:tte/e">
					<select name="_colour" tal:attributes="name string:tt_${repeat/tte/index}_colour" tabindex="9">
						<span tal:omit-tag="" tal:repeat="color python:('tt_yellow','tt_yellowlt','tt_orange','tt_orangelt','tt_red','tt_pink','tt_purple','tt_blue','tt_bluelt','tt_aqua','tt_green','tt_greenlt','tt_gray','tt_white')">
							<option value="" tal:attributes="value color" tal:content="color" i18n:translate=""></option>
						</span>
					</select>
				</td>
				<td tal:condition="not:tte/e">
					<input type="text" name="tt_x_name" tal:attributes="name string:tt_${repeat/tte/index}_icon" size="16" tabindex="10" value="" />
				</td>
			</tr>
		</table>
		<p>
			<input type="submit" name="cancel" value="Cancel" tabindex="13">&nbsp;
			<input type="submit" name="next_form" value="Next" tabindex="11">&nbsp;
			<input type="submit" name="submit" value="Quick submit" tabindex="12">&nbsp;
		</p>
		</form>
		
		</div>
	
	</div>
  </body>
  
</html>
