comparison zpt/project/edit_infoblocks.zpt @ 81:975a8d88e315

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