annotate zpt/project/infoblock/edit_items.zpt @ 284:1a103b073c72 default tip

make favicon url host and schema relative.
author casties
date Thu, 25 Jun 2015 17:44:57 +0200
parents 975a8d88e315
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" tal:define="blockid here/getId; items here/getItems">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
9 <h2>Edit info block</h2>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
10 <form action="editItems" method="post">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
11 <h3>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
12 Title: <input size="20" name="block_title" tal:attributes="value here/getTitle" />
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
13 </h3>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
14
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
15 <table>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
16 <tal:block tal:repeat="idx python:range(len(items))">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
17 <tr tal:define="item python:items[idx];">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
18 <td><a tal:attributes="href string:$root/$blockid/moveItem?idx=$idx&op=up">up</a><br> <a
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
19 tal:attributes="href string:$root/$blockid/moveItem?idx=$idx&op=down">down</a></td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
20 <td tal:content="string:[${idx}]" />
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
21 <td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
22 <p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
23 <b>text:</b> <input tal:attributes="name string:text_$idx; value item/text" size="60" />
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
24 </p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
25 <p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
26 <b>link:</b> <input tal:attributes="name string:link_$idx; value item/link" size="20" /> (optional)
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
27 </p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
28 </td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
29 <td><a tal:attributes="href string:$root/$blockid/deleteItem?idx=$idx">Delete</a></td>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
30 </tr>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
31 </tal:block>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
32 </table>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
33 <p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
34 <input type="submit" value="Change" />
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
35 </p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
36 </form>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
37
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
38 <h3>Add an item</h3>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
39 <form tal:attributes="action string:$root/$blockid/addItem" method="post">
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
40 <p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
41 <b>text:</b> <input name="text" size="60" />
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
42 </p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
43 <p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
44 <b>link:</b> <input name="link" size="20" /> (optional)
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
45 </p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
46 <p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
47 <input type="submit" value="Add" />
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
48 </p>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
49 </form>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
50
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
51 <h3>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
52 <a tal:attributes="href string:$root/manageInfoBlocks">Back to info block list</a>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
53 </h3>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
54 </tal:block>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
55 </body>
975a8d88e315 new editable info blocks for projects.
casties
parents:
diff changeset
56 </html>