File:  [Repository] / MPIWGWeb / zpt / Attic / editTeaching.zpt
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Mon Oct 10 08:42:49 2005 UTC (18 years, 8 months ago) by dwinter
Branches: r2
*** empty log message ***

<html metal:use-macro="here/mainEditFile/macros/page">

<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'">
<h3>Manage Teaching</h3>

   <form action="changeResearch" method="post">
     <input type="hidden" name="id_main" tal:attributes="value person/id">
     <input type="hidden" name="main_fields" value="teaching__title">
     <h4>Teaching</h4>
     <table tal:define="founds2 python:here.ZSQLInlineSearch(_table='teaching',id_main=person.id)">
	  <tr class="fliesstext" tal:repeat="found2 python:here.sortPriority(founds2)">
            <td valign="top">
	      <input tal:attributes="name python:'teaching__date__'+str(found2.oid); 
				     value found2/date" size="10"/>
	    </td>

            <td>
	      <input tal:attributes="name python:'teaching__title__'+str(found2.oid); 
				     value found2/title" size="80"/>

            <br>
	      <input tal:attributes="name python:'teaching__place__'+str(found2.oid); 
				     value found2/place" size="80"/>
            <br>
	      <input tal:attributes="name python:'teaching__link__'+str(found2.oid); 
				     value found2/link" size="80"/>

	    </td>

	    <td valign="top">
	      <input tal:attributes="name python:'teaching__priority__'+str(found2.oid);
				     value found2/priority" size="3"/>
	    </td>
	    <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
			     'teaching__published__'+str(found2.oid),
			     yes_no_list,
			     boxType='radio',
			     checked=found2.published)"/>
	    <td>
	      <a tal:attributes="href python:'deleteField?table=teaching&oid=%s'%found2.oid">delete</a>
	    </td>
	 </tr>
	 <tr colspan="4">
	   <td>Add new</td>
	 </tr>
	 <tr>
	   <td valign="top">
	      <input tal:attributes="name python:'teaching__date__new'" size="10"/>
	    </td>
	   <td>
	      <input tal:attributes="name python:'teaching__title__new'" size="80">
	      <br>
	      <input tal:attributes="name python:'teaching__place__new'" size="80"/>
              <br>
	      <input tal:attributes="name python:'teaching__link__new'" size="80"/>


	   </td>
	   <td>
	      <input tal:attributes="name python:'teaching__priority__new'" size="3">
	   </td>
	   <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
			     'teaching__published__new',
			     yes_no_list,
			     boxType='radio',
			     checked='yes')"/>
	 </tr>
      </table>
      <input type="submit" value="submit">
  
     </form>
</tal:block>
</html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>