Mercurial > hg > MPIWGWeb
diff zpt/staff/edit_shortEntry.zpt @ 159:ee79f6ba8d01
clean up staff editing and some zpt forms.
author | casties |
---|---|
date | Thu, 06 Jun 2013 15:34:20 +0200 |
parents | 9b38ba45773b |
children | 485bf377913a |
line wrap: on
line diff
--- a/zpt/staff/edit_shortEntry.zpt Thu Jun 06 14:00:31 2013 +0200 +++ b/zpt/staff/edit_shortEntry.zpt Thu Jun 06 15:34:20 2013 +0200 @@ -5,7 +5,7 @@ </head> <body> <tal:block metal:fill-slot="navsel" tal:define="global menusel string:research" /> -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> +<tal:block metal:fill-slot="body"> <form action="" method="post"> <input type="hidden" name="key" tal:attributes="value here/content/key"/> @@ -21,12 +21,9 @@ <td><input tal:attributes="name python:'current_work'; value python:here.content.current_work" size="80" /> </td> - <td - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publish', - yes_no_list, - boxType='radio', - checked=here.content.current_work_p)" /> + <td tal:define="name string:publish; value here/content/current_work_p;"> + <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> + </td> </tr> </table> <input type="submit" value="submit"/>