<!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 metal:fill-slot="main_content_slot">


<x tal:condition="python: here.fle_root().kas_opetaja(request)">

<ul>
  <li><a tal:attributes="href python: here.find_URL_of_fle_root(request) + '/courses/add_course_form_1_2?course_id=' + here.find_course().get_id()">Change course info</a></li>
  <li><a tal:attributes="href python:'courses_form_handler?course_ids=' + here.jooksva_kursuse_nr(request) + '&course_export=yes'">Export course</a></li>
  <li><a href="teacher_impor">Import to course</a></li>
</ul>

</x>


<table>
  <tr>
    <td>Organisation</td>
	<td tal:content="python: here.get_organisation()"></td>
  </tr>
  <tr>
    <td>Date</td>
	<td tal:content="python: here.get_printable_starting_date(request)"></td>
  </tr>
  <tr>
    <td>Description</td>
	<td><span tal:replace="structure python: here.render_description()" /></td>
  </tr>
  <tr>
    <td>Methods</td>
	<td><span tal:replace="structure python: here.render_methods()" /></td>
  </tr>
  <tr>
    <td>Course participants</td>
	<td>
	  <table>
	    <x tal:define="global emails string:mailto:"/>
		<x tal:define="global unames string:"/>
		<x tal:define="global unames python: here.this().jooksevKasutaja(request).kirjad.absolute_url() + '/kirjaKoostamiseVorm?'"/>

		<x tal:repeat="user context/get_all_users" tal:omit-tag="">

			<tr>
			  <td><span tal:replace="user/get_first_name"/>
			      <span tal:replace="user/get_first_name"/>
                  (<a tal:attributes="href python: user.absolute_url() + '/webtop/c' + user.get_uname()"><span tal:replace="user/get_nickname"/></a>)
			  </td>
			  <td><a tal:attributes="href python: 'mailto:' + user.get_email()"><span tal:replace="user/get_email"/></a></td>
			  <x tal:define="global emails python: emails + user.get_email().strip()"/>
			  <x tal:define="global unames python: unames + 'kellele=' + user.get_uname().strip() + '&'"/>

			  <x tal:condition="python: here.fle_root().kas_opetaja(request)">
    			  <td><a tal:attributes="href python: here.this().fle_root().absolute_url() + '/kasutajaSyndmusedLehena?kasutajanimi=' + user.get_id()">info</a></td>
			  </x>
			</tr> 
        
		</x>

	  </table>
	</td>
  </tr>
</table>


<ul>
<li><a tal:attributes="href emails">Mail to group</a></li>
<li><a tal:attributes="href unames">insideMail to all participants</a></li>
  <x tal:condition="python: here.fle_root().kas_opetaja(request)">
    <li><a tal:attributes="href python: here.this().fle_root().absolute_url() + '/kasutajateSyndmusteTabel'">Course statistics</a></li>
    <li><a tal:attributes="href python: here.this().fle_root().courses.absolute_url() + '/' + here.jooksva_kursuse_nr(request) + '/kasutajateHinneteTabel'">hinded</a></li>
  </x>
<li><a href="user_course_export">Make course arhive</a></li>
</ul>





  </span>
  
</html>
