annotate zpt/project/edit_infoblocks.zpt @ 218:0babf6e0a454

omit talks section if calendar is empty.
author casties
date Wed, 16 Oct 2013 15:44:16 +0200
parents a6054bc6ad71
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
81
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
3 <html metal:use-macro="here/edit_template/macros/page">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
4 <head>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
5 </head>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
6 <body>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
7 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:infoblocks" />
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
8 <tal:block metal:fill-slot="body">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
9 <h2>Additional info blocks</h2>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
10 <table>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
11 <tal:block tal:repeat="block here/getInfoBlockList">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
12 <tr tal:define="blockid block/getId">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
13 <td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
14 <a tal:attributes="href string:$root/manageInfoBlocks?name=$blockid&op=up">up</a><br>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
15 <a tal:attributes="href string:$root/manageInfoBlocks?name=$blockid&op=down">down</a>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
16 </td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
17 <td tal:content="string:[${block/place}]"/>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
18 <td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
19 <div><b tal:content="block/getTitle" /></div>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
20 <div tal:repeat="item block/getItems">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
21 <a tal:attributes="href item/link" tal:omit-tag="not:item/link"
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
22 tal:content="structure item/text"/>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
23 </div>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
24 <td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
25 <a tal:attributes="href string:$root/$blockid/edit">Edit</a><br/>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
26 <a tal:attributes="href string:$root/deleteInfoBlock?id=$blockid">Delete</a>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
27 </td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
28 </tr>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
29 </tal:block>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
30 </table>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
31
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
32 <h3>Add an info block</h3>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
33 <form tal:attributes="action string:$root/addInfoBlock" method="post">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
34 <p><b>Info block title:</b><br/>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
35 <input name="block_title" size="20"/>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
36 </p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
37 <p><b>First item text:</b> <input name="item_text" size="60"/></p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
38 <p><b>First item link:</b> <input name="item_link" size="20"/> (optional)</p>
82
a6054bc6ad71 better info on edit page.
casties
parents: 81
diff changeset
39 <p><input type="submit" value="Add"/></p>
a6054bc6ad71 better info on edit page.
casties
parents: 81
diff changeset
40 <p>You can add more items to an info block after it's been created. Use the "Edit" link on the info block above.</p>
81
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
41 </form>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
42
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
43 </tal:block>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
44 </body>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
45 </html>