comparison zpt/editMPIWGItem.pt @ 0:957bcf42f206

initial
author dwinter
date Thu, 02 May 2013 08:33:53 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:957bcf42f206
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <meta http-equiv="expires" content="0">
8 <meta http-equiv="cache-control" content="no-cache">
9 <meta http-equiv="pragma" content="no-cache">
10 </head>
11
12 <body>
13 <!-- ZOPE management tabs -->
14 <div tal:define="manage_tabs_message options/manage_tabs_message | nothing" tal:replace="structure here/manage_tabs">Tabs</div>
15 <!-- end of ZOPE management tabs -->
16
17 <h1>Edit MPIWG Item</h1>
18 <p>Empty fields are not shown in the presentation.</p>
19 <p>Please fill fields in both languages!</p>
20
21 <form action="manage_editMPIWGItem" method="post">
22 <h3>Images</h3>
23 <table>
24 <!-- list all images -->
25 <tr tal:repeat="image python:here.getImageIds()">
26 <td><a tal:attributes="href image"><img tal:attributes="src image" width="200" /></a></td>
27 <td><span tal:content="image"/></td>
28 <td><input type="checkbox" tal:attributes="name python:'delimg__%s'%image" />Delete</td>
29 </tr>
30
31 <!-- adding new images ... -->
32 <tr>
33 <td><a href="manage_addImageForm">Add new image...</a></td>
34 </tr>
35 </table>
36
37 <h3>Files</h3>
38 <table>
39 <!-- list all files -->
40 <tr tal:repeat="file python:here.getFileIds()">
41 <tal:block tal:define="index repeat/file/index">
42 <td><a tal:attributes="href file"> <span tal:content="file" />
43 </a></td>
44 <td><input type="checkbox" tal:attributes="name python:'delfil__%s'%file" />Delete</td>
45 </tal:block>
46 </tr>
47
48 <!-- adding new files ... -->
49 <tr>
50 <td><a href="manage_addFileForm">Add new File...</a></td>
51 </tr>
52 </table>
53
54
55
56
57
58 <h3>Info</h3>
59 <table>
60 <tr>
61 <th></th>
62 <th>English</th>
63 <th>German</th>
64 </tr>
65 <tr>
66 <th>Title:</th>
67 <td><input type="text" name="title_en" size="48" tal:attributes="value python:here.getInfo('title',lang='EN')" /></td>
68 <td><input type="text" name="title_de" size="48" tal:attributes="value python:here.getInfo('title',lang='DE')" /></td>
69 </tr>
70 <tr>
71 <th>Datum: <br />
72 <small> (Date for sorting* in the form DD.MM.YYYY) </small></th>
73 <td colspan="2">
74 <center>
75 <input type="text" name="date" size="10" tal:attributes="value python:here.getDate()" />
76 </center>
77 </td>
78 </tr>
79 <tr>
80 <td colspan="5">
81 <hr />
82 </td>
83 </tr>
84 </table>
85 <table>
86 <tr>
87 <th>ID (field id)</th>
88 <th>Field name English** ,<br /> Field name German
89 </th>
90 <th>Entry English</th>
91 <th>Entry German</th>
92 </tr>
93 <!-- Selbst definierbare Felder -->
94 <tr tal:repeat="property here/getPropertyKeys">
95 <tal:block
96 tal:define="index repeat/property/index;
97 info_en python:here.getInfo(property,'EN');
98 info_de python:here.getInfo(property,'DE');
99 info_en_caption python:here.getCaption(property,'EN');
100 info_de_caption python:here.getCaption(property,'DE');
101 ">
102 <th><input type="text" tal:attributes="name python:'property_%s_id'%index; value property" /></th>
103 <td><input type="text" tal:attributes="name python:'property_%s_en_key'%index; value python:info_en_caption" /> <br />
104 <input type="text" tal:attributes="name python:'property_%s_de_key'%index; value python:info_de_caption" /></td>
105 <td><textarea cols="48" rows="5" tal:attributes="name python:'property_%s_en_value'%index;"
106 tal:content="python:info_en"></textarea></td>
107 <td><textarea cols="48" rows="5" tal:attributes="name python:'property_%s_de_value'%index;"
108 tal:content="python:info_de"></textarea></td>
109 <td><input type="checkbox" tal:attributes="name python:'del__property_%s'%index" />Delete <br /> weight: <input
110 type="text" tal:attributes="name python:'property_%s_weight'%index; value python:here.getWeight(index)" /></td>
111 </tal:block>
112 </tr>
113
114
115 </table>
116 <center>
117 <br />
118 <br /> Add <input type="text" value="0" name="add_new" /> new fields.<br />
119 <br /> <input type="submit" value="Update" />
120 </center>
121 <hr />
122 </form>
123 Commonly used tags:
124 <br /> &lt;b&gt;
125 <b>bold</b>&lt;/b&gt;
126 <br /> &lt;i&gt;
127 <i>italic</i>&lt;/i&gt;
128 <br /> Line break: &lt;br/&gt;
129 <br /> &lt;a href="link/to/page.html"&gt; link &lt;/a&gt; - or mail-link: &lt;a href="mailto:adress@abc.de"&gt; mail-link
130 &lt;/a&gt;
131 <hr />
132 <p>
133 *: Dieses Datum ist nur ein Sortierdatum, d.h. das Datum, das benutzt wird, wenn eine Liste von Events/News nach datum sortiert
134 werden soll.<br /> Es ist jedoch z.T. sinnvoll, ein neues Feld anzulegen, das 'Date'/'Datum' heisst, wenn man mehr als nur das
135 Datum im Format TT.MM.JJJJ angeben moechte, und evtl. Uhrzeiten, Zeitr&auml;ume oder &auml;hnliches angeben will.
136 </p>
137
138 <small> <a tal:attributes="href python:context.absolute_url()+'/../manage_main'"> Zur&uuml;ck zum ZMI </a>
139 </small>
140 </body>
141
142 </html>