<!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; <a tal:attributes="href python:here.fle_root().courses.absolute_url()+'/'+jnr+'/testihaldus'" i18n:translate="">quiz management</a> &gt;
    <span tal:content="here/annaPealkiri" tal:omit-tag="">Testi pealkiri</span>
    
  <h2 i18n:translate="">Editing quiz</h2>
	<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
		<tr>
			<td width="50%">
              <form action="lisaUusYlesanne">
                 <span i18n:translate="">Add exercise</span>
                 <select name="tyyp">
                    <option tal:repeat="x python:here.vahendus.ylesanneteTolkegaTyybid(request).keys()" 
                        tal:attributes="value x; selected python:test(x==here.kysiLisatudYlesandeTyyp(), 'selected', nothing)" tal:content="python:here.vahendus.ylesanneteTolkegaTyybid(request)[x]" i18n:translate=""></option>
                 </select>
                 <input type="submit" value="Add" i18n:attributes="value" />
              </form>
			</td>
			<td width="25%" align="center">
               <a tal:attributes="href python:here.fle_root().absolute_url()+'/qtCatalog/ylOtsinguVorm?tid='+here.id" i18n:translate="">Search questions from pool</a>
			</td>
			<td width="25%" align="center">
               <a href="lisaYlesandedHoidlasse" i18n:translate="">Save to pool</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>
  <form action="kustuta_leht">
     <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#EEEEEE">
        <tr>
          <th></th>
          <th i18n:translate="">Question</th>
          <th i18n:translate="">Answer</th>
          <th i18n:translate="">Type</th>
          <th i18n:translate="">Points</th>
          <th i18n:translate="">Change</th>
          <th i18n:translate="">Metadata</th>
        </tr>
        <tr tal:repeat="yl here/ylesanded"> 
           <td class="t1" align="center"><input type="checkbox" name="kustuta" tal:attributes="value yl/id"></td>
           <td class="t1" tal:content="structure python:yl.esitlusHTML(request)"></td>
           <td class="t1" tal:content="structure python:yl.vaatamineHTML(request)"></td>
		   <metal:block tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/html;;charset=utf-8')" />
           <td class="t1" i18n:translate="" tal:content="yl/ylesandeNimetus"></td>
           <td class="t1" tal:content="python:yl.normPunktidHTML(request)"></td>
           <td class="t1"><a tal:attributes="href python:yl.id+'/ylAlus_muutmisVorm?liikumisURL='+here.absolute_url()" i18n:translate="">Change</a></td>
           <td class="t1"><a tal:attributes="href python:yl.id+'/meta/ylMeta_vorm1'" i18n:translate="">Change</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="0" bgcolor="#EEEEEE">
		<tr>
			<td>
				<input type="submit" value="Delete" i18n:attributes="value" />
			</td>
		</tr>
	</table>
    
  </form>
</span>
 
</html>
