Mercurial > hg > MPIWGWeb
view zpt/staff/edit_talks.zpt @ 159:ee79f6ba8d01
clean up staff editing and some zpt forms.
author | casties |
---|---|
date | Thu, 06 Jun 2013 15:34:20 +0200 |
parents | f4ac675b2031 |
children | 485bf377913a |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html metal:use-macro="here/mainEditFile/macros/page"> <body> <tal:block metal:fill-slot="navsel" tal:define="global menusel string:talks" /> <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> <form action="" method="post"> <input type="hidden" name="key_main" tal:attributes="value python:here.content.key"> <input type="hidden" name="main_fields" value="talks__title"> <table tal:define="founds2 python:here.getTalks(published=False)"> <tr> <th>Date</th> <th>Title/Place/Link</th> <th>Priority</th> <th>Show</th> </tr> <tr tal:repeat="found2 founds2"> <td valign="top"> <input tal:attributes="name python:'talks__date__'+str(found2.oid); value found2/date" size="10" /> </td> <td> <input tal:attributes="name python:'talks__title__'+str(found2.oid); value python:found2.title" size="80" /><br> <input tal:attributes="name python:'talks__place__'+str(found2.oid); value python:found2.place" size="80" /><br> <input tal:attributes="name python:'talks__link__'+str(found2.oid); value python:found2.link" size="80" /> </td> <td valign="top"> <input tal:attributes="name python:'talks__priority__'+str(found2.oid); value found2/priority" size="3" /> </td> <td valign="top" tal:define="name string:talks__published__${found2/oid}; value found2/published;"> <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> </td> <td> <a tal:attributes="href python:'deleteField?table=talks&key=%s'%found2.oid">delete</a> </td> </tr> <tr colspan="4"> <td>Add new</td> </tr> <tr> <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td> <td><input tal:attributes="name python:'talks__title__new'" size="80"> <br> <input tal:attributes="name python:'talks__place__new'" size="80" /> <br> <input tal:attributes="name python:'talks__link__new'" size="80" /></td> <td><input tal:attributes="name python:'talks__priority__new'" size="3"></td> <td valign="top" tal:define="name string:talks__published__new; value string:yes;"> <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> </td> </tr> </table> <input type="submit" value="submit"> </form> </tal:block> </body> </html>