<!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="">creating context</label>
	<h2>
		<label tal:omit-tag="" tal:condition="not:context/is_courseContext" i18n:translate="">Creating a new context for discussion</label>
		<label tal:omit-tag="" tal:condition="context/is_courseContext" i18n:translate="">Editing context</label>
	</h2>
	
	<span tal:define="global form_action string:add_course_context" tal:omit-tag="" />
	
	<span tal:omit-tag="" tal:condition="context/is_courseContext">
		<span tal:define="global form_action string:edit_course_context" tal:omit-tag="" />
	</span>
	
	<form method="post" action="" tal:attributes="action form_action">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td i18n:translate="">Title of the context:</td>
                <td>
                	<input type="text" name="my_name" size="55" tabindex="1" value="" tal:attributes="value python:context.is_courseContext() and context.get_name()" class="width400" />
                </td>
            </tr>
			<tr>
				<td i18n:translate="" valign="top">Short description:</td>
				<td><textarea name="description" cols="55" rows="3" tabindex="2" class="width400" tal:content="python:context.is_courseContext() and context.get_description()"></textarea></td>
			</tr>
            <tr>
                <td i18n:translate="" valign="top">Long description:</td>
                <td>
    	  			<textarea name="description_long" cols="55" rows="20" tabindex="3" class="width400" tal:content="context/get_long_description | nothing"></textarea>
				</td>
            </tr>
			<tr>
				<td i18n:translate="">Knowledge type set:</td>
				<td tal:define="ctts context/get_thinking_type_set_id | nothing">
					<select name="tt_set_name" tabindex="4" class="width240" tal:omit-tag="context/is_courseContext">
					<span tal:omit-tag="" tal:repeat="tts context/typesets/get_thinking_type_sets_sorted">
						<option value="" tal:condition="not:context/is_courseContext" selected="selected" 
							tal:attributes="value tts/get_id;selected python:ctts==tts.get_id()" 
							tal:content="tts/get_name"></option>
						<label tal:content="tts/get_name" tal:condition="python:context.is_courseContext() and ctts==tts.get_id()" />
					</span>
					</select>
				</td>
<!--				<td tal:condition="context/is_courseContext" tal:content="context/get_thinking_type_set_name" />-->
			</tr>
            <tr tal:define="urp context/uses_roleplay | nothing">
            	<td i18n:translate="">Anonymous roleplay:</td>
            	<td><input name="use_roleplay" value="1" type="checkbox" checked="checked" 
						tal:attributes="checked python:urp and default"></td>
			</tr>
			<tr tal:define="roleplay_only context/uses_roleplay_only | nothing">
				<td i18n:translate="">Show only roles:</td>
				<td><input type="checkbox" name="show_only_roleplay" value="1" checked="checked"
						tal:attributes="checked python:roleplay_only and default"></td>
            </tr>
			<tr>
				<td colspan="2">&nbsp;</td>
			</tr> 
			<tr>
				<td>&nbsp;</td>
				<td>
					<input type="submit" value="Continue" i18n:attributes="value" name="publish" tabindex="5" />
					<input type="submit" value="Cancel" i18n:attributes="value" name="cancel" tabindex="6" />
					<input tal:condition="context/is_courseContext" type="submit" value="Delete" i18n:attributes="value" name="delete" tabindex="7" />
				</td>
			</tr>
		</table>
	</form>
</span>

</html>
