diff 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 diff
--- a/zpt/staff/edit_talks.zpt	Thu Jun 06 14:00:31 2013 +0200
+++ b/zpt/staff/edit_talks.zpt	Thu Jun 06 15:34:20 2013 +0200
@@ -15,7 +15,7 @@
       <th>Priority</th>
       <th>Show</th>
     </tr>
-    <tr class="fliesstext" tal:repeat="found2 python:here.sortPriority(founds2)">
+    <tr tal:repeat="found2 founds2">
       <td valign="top">
         <input tal:attributes="name python:'talks__date__'+str(found2.oid); 
 				     value found2/date" size="10" />
@@ -31,12 +31,9 @@
       <td valign="top">
         <input tal:attributes="name python:'talks__priority__'+str(found2.oid); value found2/priority" size="3" />
       </td>
-      <td valign="top"
-        tal:content="structure python:here.ZSQLSelectionFromCRList(
-			     'talks__published__'+str(found2.oid),
-			     yes_no_list,
-			     boxType='radio',
-			     checked=found2.published)" />
+      <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>
@@ -50,12 +47,9 @@
       <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:content="structure python:here.ZSQLSelectionFromCRList(
-			     'talks__published__new',
-			     yes_no_list,
-			     boxType='radio',
-			     checked='yes')" />
+      <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">