<!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">
  <h2 i18n:translate="">Editing quiz</h2>
  <form action="muutmisLeht" method='POST' enctype='multipart/form-data'>
<form tal:attributes="action python:here.absolute_url()+'/muutmisVorm'">
  <table>
    <tr>
     <td i18n:translate="">Keywords</td>
     <td>
       <span tal:repeat="k python:here.keywords+['', '', '']" tal:omit-tag="">
         <input type="text" name="keyword" tal:attributes="value k" />
       </span>
     </td>
    </tr>
    <tr>
     <td i18n:translate="">Status</td>
     <td tal:define="snr here/getStatusNr">
        <select name="status">
            <span tal:repeat="x here/getStatusList" tal:omit-tag="">
               <option tal:define="rnr repeat/x/index" tal:attributes="selected python:test(int(snr)==int(rnr), 'selected', nothing); value rnr" tal:content="x"></option>
            </span>
        </select>
     </td>
    </tr>
    <tr>
     <td i18n:translate="">Rights</td>
     <td tal:define="snr here/getRightsNr">
        <select name="rights">
            <span tal:repeat="x here/getRightsList" tal:omit-tag="">
               <option tal:define="rnr repeat/x/index" tal:attributes="selected python:test(int(snr)==int(rnr), 'selected', nothing); value rnr" tal:content="x"></option>
            </span>
        </select>
     </td>
    </tr>
    <tr>
       <td i18n:translate="">Language</td>
       <td>
          <select name="language">
             <span tal:repeat="x here/getLanguageList" tal:omit-tag="">
                <option tal:content="x" tal:attributes="selected python:test(x==here.getLanguage(), 'selected', nothing)"></option>
             </span>
          </select>
       </td>
    </tr>
    <tr>
       <td i18n:translate="">Copyright and other restrictions</td>
       <td><input type="checkbox" name="copyrightandotherrestrictions" tal:attributes="checked python:test(here.get_copyrightandotherrestrictions(), 'checked', nothing)" /></td>
    </tr>
    <tr>
       <td i18n:translate="">Copyright description</td>
       <td><textarea name="copyrightdescription" tal:content="here/get_copyrightdescription"></textarea></td>
    </tr>
    <tr tal:repeat="x python:here.kysiRolliPaarideMassiiv()" tal:define="rolliloetelu here/getRolesList">
       <td>
          Role:
          <select name="role">
             <option tal:repeat="r rolliloetelu" tal:content="r" tal:attributes="selected python:test(r==x[0], 'selected', nothing);value r"></option>
          </select>
       </td>
       <td><input type="text" name="entity" tal:attributes="value python:x[1]" /></td>
    </tr>
  </table>
  <input type="submit" value="salvesta" />
</form>
  </form>
</span>
 
</html>

