e36595e8e820fd67331f10a8058200e9aeeb8e92
[Portfolio.git] / skins / metadata_edit_form_macros.pt
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
2 <head>
3 <title>Metadata form macro widgets</title>
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5 </head>
6 <body>
7 <input metal:define-macro="simpleTextFied" tal:define="field python:here.getXmpField(fieldName)" tal:attributes="value field/value; name field/id"/>
8 <div metal:define-macro="iptc" tal:omit-tag=""
9 tal:define="simpleTextField here/metadata_edit_form_macros/macros/simpleTextFied">
10 <table class="metadata_category" cellspacing="0" cellpadding="0">
11 <tr class="name">
12 <td><br/></td>
13 <th>Contact</th>
14 </tr>
15 <tbody>
16 <tr>
17 <th>Créateur</th>
18 <td tal:define="fieldName python:'dc:creator'">
19 <input metal:use-macro="simpleTextField"/>
20 </td>
21 </tr>
22 <tr>
23 <th>Fonction</th>
24 <td tal:define="fieldName python:'photoshop:AuthorsPosition'">
25 <input metal:use-macro="simpleTextField"/>
26 </td>
27 </tr>
28 <tr>
29 <th>Adresse</th>
30 <td tal:define="fieldName python:'Iptc4xmpCore:CiAdrExtadr'">
31 <input metal:use-macro="simpleTextField"/>
32 </td>
33 </tr>
34 <tr>
35 <th>Ville</th>
36 <td tal:define="fieldName python:'Iptc4xmpCore:CiAdrCity'">
37 <input metal:use-macro="simpleTextField"/>
38 </td>
39 </tr>
40 <tr>
41 <th>Région</th>
42 <td tal:define="fieldName python:'Iptc4xmpCore:CiAdrRegion'">
43 <input metal:use-macro="simpleTextField"/>
44 </td>
45 </tr>
46 <tr>
47 <th>Code postal</th>
48 <td tal:define="fieldName python:'Iptc4xmpCore:CiAdrPcode'">
49 <input metal:use-macro="simpleTextField"/>
50 </td>
51 </tr>
52 <tr>
53 <th>Pays</th>
54 <td tal:define="fieldName python:'Iptc4xmpCore:CiAdrCtry'">
55 <input metal:use-macro="simpleTextField"/>
56 </td>
57 </tr>
58 <tr>
59 <th>Téléphone</th>
60 <td tal:define="fieldName python:'Iptc4xmpCore:CiTelWork'">
61 <input metal:use-macro="simpleTextField"/>
62 </td>
63 </tr>
64 <tr>
65 <th>Adresse électronique</th>
66 <td tal:define="fieldName python:'Iptc4xmpCore:CiEmailWork'">
67 <input metal:use-macro="simpleTextField"/>
68 </td>
69 </tr>
70 <tr class="last">
71 <th>Site internet</th>
72 <td tal:define="fieldName python:'Iptc4xmpCore:CiUrlWork'">
73 <input metal:use-macro="simpleTextField"/>
74 </td>
75 </tr>
76 </tbody>
77
78 <tr class="name">
79 <td><br/></td>
80 <th>Contenu</th>
81 </tr>
82 <tbody>
83 <tr>
84 <th>Titre</th>
85 <td tal:define="fieldName python:'photoshop:Headline'">
86 <input metal:use-macro="simpleTextField"/>
87 </td>
88 </tr>
89 <tr>
90 <th>Légende</th>
91 <td tal:define="field python:here.getXmpField('dc:description')">
92 <textarea tal:attributes="name field/id" tal:content="field/value" cols="35" rows="5"></textarea>
93 </td>
94 </tr>
95 <tr>
96 <th>Mots-clefs</th>
97 <td tal:define="field python:here.getXmpField('dc:subject')">
98 <textarea tal:attributes="name field/id" tal:content="field/value" cols="35" rows="3"></textarea>
99 </td>
100 </tr>
101 <tr>
102 <th>Code sujet IPTC</th>
103 <td tal:define="fieldName python:'Iptc4xmpCore:SubjectCode'">
104 <input metal:use-macro="simpleTextField"/>
105 </td>
106 </tr>
107 <tr>
108 <th>Auteur de la description</th>
109 <td tal:define="fieldName python:'photoshop:CaptionWriter'">
110 <input metal:use-macro="simpleTextField"/>
111 </td>
112 </tr>
113 <tr>
114 <th>Catégorie</th>
115 <td tal:define="fieldName python:'photoshop:Category'">
116 <input metal:use-macro="simpleTextField"/>
117 </td>
118 </tr>
119 <tr class="last">
120 <th>Autres catégories</th>
121 <td tal:define="fieldName python:'photoshop:SupplementalCategories'">
122 <input metal:use-macro="simpleTextField"/>
123 </td>
124 </tr>
125 </tbody>
126
127 <tr class="name">
128 <td><br/></td>
129 <th>Image</th>
130 </tr>
131 <tbody>
132 <tr>
133 <th>Date de création</th>
134 <td tal:define="fieldName python:'photoshop:DateCreated'">
135 <input metal:use-macro="simpleTextField"/>
136 </td>
137 </tr>
138 <tr>
139 <th>Catégorie intellectuelle</th>
140 <td tal:define="fieldName python:'Iptc4xmpCore:IntellectualGenre'">
141 <input metal:use-macro="simpleTextField"/>
142 </td>
143 </tr>
144 <tr>
145 <th>Scène</th>
146 <td tal:define="fieldName python:'Iptc4xmpCore:Scene'">
147 <input metal:use-macro="simpleTextField"/>
148 </td>
149 </tr>
150 <tr>
151 <th>Emplacement</th>
152 <td tal:define="fieldName python:'Iptc4xmpCore:Location'">
153 <input metal:use-macro="simpleTextField"/>
154 </td>
155 </tr>
156 <tr>
157 <th>Ville</th>
158 <td tal:define="fieldName python:'photoshop:City'">
159 <input metal:use-macro="simpleTextField"/>
160 </td>
161 </tr>
162 <tr>
163 <th>Région</th>
164 <td tal:define="fieldName python:'photoshop:State'">
165 <input metal:use-macro="simpleTextField"/>
166 </td>
167 </tr>
168 <tr>
169 <th>Pays</th>
170 <td tal:define="fieldName python:'photoshop:Country'">
171 <input metal:use-macro="simpleTextField"/>
172 </td>
173 </tr>
174 <tr class="last">
175 <th>Code pays ISO</th>
176 <td tal:define="fieldName python:'Iptc4xmpCore:CountryCode'">
177 <input metal:use-macro="simpleTextField"/>
178 </td>
179 </tr>
180 </tbody>
181
182 <tr class="name">
183 <td><br/></td>
184 <th>État</th>
185 </tr>
186 <tbody>
187 <tr>
188 <th>Titre</th>
189 <td tal:define="fieldName python:'dc:title'">
190 <input metal:use-macro="simpleTextField"/>
191 </td>
192 </tr>
193 <tr>
194 <th>Identifiant de la fonction</th>
195 <td tal:define="fieldName python:'photoshop:TransmissionReference'">
196 <input metal:use-macro="simpleTextField"/>
197 </td>
198 </tr>
199 <tr>
200 <th>Instructions</th>
201 <td tal:define="fieldName python:'photoshop:Instructions'">
202 <input metal:use-macro="simpleTextField"/>
203 </td>
204 </tr>
205 <tr>
206 <th>Fournisseur</th>
207 <td tal:define="fieldName python:'photoshop:Credit'">
208 <input metal:use-macro="simpleTextField"/>
209 </td>
210 </tr>
211 <tr class="last">
212 <th>Source</th>
213 <td tal:define="fieldName python:'photoshop:Source'">
214 <input metal:use-macro="simpleTextField"/>
215 </td>
216 </tr>
217 </tbody>
218
219
220 <tr class="name">
221 <td><br/></td>
222 <th>Copyright</th>
223 </tr>
224 <tbody>
225 <tr>
226 <th>État du copyright</th>
227 <td tal:define="field python:here.getXmpField('xmpRights:Marked')">
228 <select tal:define="marked field/value" tal:attributes="name field/id">
229 <option value="" tal:attributes="selected python:marked==''">Indéterminé</option>
230 <option value="True" tal:attributes="selected python:marked=='True'">Protégé par un copyright</option>
231 <option value="False" tal:attributes="selected python:marked=='False'">Domaine public</option>
232 </select>
233 </td>
234 </tr>
235 <tr>
236 <th>Copyright</th>
237 <td tal:define="fieldName python:'dc:rights'">
238 <input metal:use-macro="simpleTextField"/>
239 </td>
240 </tr>
241 <tr>
242 <th>Condit. d'utilis.</th>
243 <td tal:define="fieldName python:'xmpRights:UsageTerms'">
244 <input metal:use-macro="simpleTextField"/>
245 </td>
246 </tr>
247 <tr class="last">
248 <th>URL info copyright</th>
249 <td tal:define="fieldName python:'xmpRights:WebStatement'">
250 <input metal:use-macro="simpleTextField"/>
251 </td>
252 </tr>
253 </tbody>
254
255 <tr class="name last">
256 <td><br/></td>
257 <th>
258 <input type="submit" value="Save"
259 name="edit_metadata"
260 i18n:attributes="value"
261 style="background:#f0f0f0;
262 width:auto;
263 color:#000;
264 border: 2px #f0f0f0 outset"/>
265 </th>
266 </tr>
267 </table>
268 </div>
269
270 <div metal:define-macro="iptc_ajax_form">
271 </div>
272 </body>
273 </html>