comparison 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
comparison
equal deleted inserted replaced
158:86a5b3c4af4b 159:ee79f6ba8d01
13 <th>Date</th> 13 <th>Date</th>
14 <th>Title/Place/Link</th> 14 <th>Title/Place/Link</th>
15 <th>Priority</th> 15 <th>Priority</th>
16 <th>Show</th> 16 <th>Show</th>
17 </tr> 17 </tr>
18 <tr class="fliesstext" tal:repeat="found2 python:here.sortPriority(founds2)"> 18 <tr tal:repeat="found2 founds2">
19 <td valign="top"> 19 <td valign="top">
20 <input tal:attributes="name python:'talks__date__'+str(found2.oid); 20 <input tal:attributes="name python:'talks__date__'+str(found2.oid);
21 value found2/date" size="10" /> 21 value found2/date" size="10" />
22 </td> 22 </td>
23 <td> 23 <td>
29 value python:found2.link" size="80" /> 29 value python:found2.link" size="80" />
30 </td> 30 </td>
31 <td valign="top"> 31 <td valign="top">
32 <input tal:attributes="name python:'talks__priority__'+str(found2.oid); value found2/priority" size="3" /> 32 <input tal:attributes="name python:'talks__priority__'+str(found2.oid); value found2/priority" size="3" />
33 </td> 33 </td>
34 <td valign="top" 34 <td valign="top" tal:define="name string:talks__published__${found2/oid}; value found2/published;">
35 tal:content="structure python:here.ZSQLSelectionFromCRList( 35 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
36 'talks__published__'+str(found2.oid), 36 </td>
37 yes_no_list,
38 boxType='radio',
39 checked=found2.published)" />
40 <td> 37 <td>
41 <a tal:attributes="href python:'deleteField?table=talks&key=%s'%found2.oid">delete</a> 38 <a tal:attributes="href python:'deleteField?table=talks&key=%s'%found2.oid">delete</a>
42 </td> 39 </td>
43 </tr> 40 </tr>
44 <tr colspan="4"> 41 <tr colspan="4">
48 <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td> 45 <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td>
49 <td><input tal:attributes="name python:'talks__title__new'" size="80"> <br> 46 <td><input tal:attributes="name python:'talks__title__new'" size="80"> <br>
50 <input tal:attributes="name python:'talks__place__new'" size="80" /> <br> 47 <input tal:attributes="name python:'talks__place__new'" size="80" /> <br>
51 <input tal:attributes="name python:'talks__link__new'" size="80" /></td> 48 <input tal:attributes="name python:'talks__link__new'" size="80" /></td>
52 <td><input tal:attributes="name python:'talks__priority__new'" size="3"></td> 49 <td><input tal:attributes="name python:'talks__priority__new'" size="3"></td>
53 <td valign="top" 50 <td valign="top" tal:define="name string:talks__published__new; value string:yes;">
54 tal:content="structure python:here.ZSQLSelectionFromCRList( 51 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
55 'talks__published__new', 52 </td>
56 yes_no_list,
57 boxType='radio',
58 checked='yes')" />
59 </tr> 53 </tr>
60 </table> 54 </table>
61 <input type="submit" value="submit"> 55 <input type="submit" value="submit">
62 56
63 </form> 57 </form>