Bug fixes for links to indymedia.org.uk for publishing and admin and links to css...
[nyc.indymedia.org.git] / etc / open / edittranslation.template
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE">
2 <html>
3 <head>
4 <title>${lang("posting.htmltitle")}</title>
5 <meta name="description" content="${lang("posting.meta.description")}">
6 <meta name="author" content="${lang("posting.meta.author")}">
7 <meta name="keywords" content="${lang("posting.meta.keywords")}">
8 <!--<meta name="date" content="### Date ###Time">-->
9 <meta http-equiv="Content-Type" content="text/html; charset=${lang("htmlcharset")}">
10 <meta name="robots" content="index">
11 <meta name="robots" content="follow">
12
13
14     <style type="text/css"> body {background-image: none;} </style>
15
16
17 <style type="text/css">
18 <!--
19
20 body {
21 margin: 6px; background: #dddddd ;
22 }
23 h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote
24 {
25 font-family:arial, helvetica, sans-serif;
26 }
27
28 .pformbox
29 {
30 border: none;
31 margin: none;
32 padding-left: 10px;
33 padding-right: 10px;
34 padding-bottom: 0px;
35 padding-top: 0px;
36 }
37
38 h1 { padding-bottom: 0px; margin-bottom: 0px;}
39 h2
40 {
41 padding-bottom: 0px;
42 margin-bottom: 0px;
43 padding: 2px;
44 border: none;
45 margin: none;
46 border-top: 1px solid black;
47 border-left: 1px solid black;
48 border-right: 1px solid black;
49 background-color: #003366;
50 color: white;
51 }
52 h3 { padding-bottom: 0px; margin-bottom: 0px;}
53 h4 { padding-bottom: 0px; margin-bottom: 0px;}
54
55 .pdiscl
56 {
57 padding: 4px;
58 margin-top: 6px;
59 margin-bottom: 6px;
60
61 border-color: #FFF;
62 border-width: 2px;
63 border-style: solid;
64 }
65
66 .pformstep01
67 {
68 margin: none;
69 border: none;
70 padding: 8px;
71 margin-top: 0px;
72 margin-bottom: 6px;
73 background-color: #FAFAD2;
74 border-color: gray;
75 border-width: 1px;
76 border-style: solid;
77 }
78 .pformstep02
79 {
80 margin: none;
81 border: none;
82 padding: 8px;
83 margin-top: 0px;
84 margin-bottom: 6px;
85 background-color: #FAFAD2;
86 border-color: gray;
87 border-width: 1px;
88 border-style: solid;
89 }
90 .pformstep03
91 {
92 margin: none;
93 border: none;
94 padding: 8px;
95 margin-top: 0px;
96 margin-bottom: 6px;
97 background-color: #FAFAD2;
98 border-color: gray;
99 border-width: 1px;
100 border-style: solid;
101 }
102 .pformstep04
103 {
104 margin: none;
105 border: none;
106 padding: 8px;
107 margin-top: 0px;
108 margin-bottom: 6px;
109 background-color: #FAFAD2;
110 border-color: gray;
111 border-width: 1px;
112 border-style: solid;
113 }
114 .pformstep05
115 {
116 margin: none;
117 border: none;
118 padding: 8px;
119 margin-top: 0px;
120 margin-bottom: 6px;
121 background-color: #FAFAD2;
122 border-color: gray;
123 border-width: 1px;
124 border-style: solid;
125 }
126 .pformstep06
127 {
128 margin: none;
129 border: none;
130 padding: 8px;
131 margin-top: 0px;
132 margin-bottom: 6px;
133 background-color: #FFFFFF;
134 border-color: gray;
135 border-width: 1px;
136 border-style: solid;
137 }
138
139 input.psubmit
140 {
141 padding: 5px;
142 border: 2px solid green;
143 background-color: #6F0;
144 }
145
146 input.preset
147 {
148 padding: 5px;
149 border: 2px solid red;
150 background-color: #F96;
151 }
152
153 .pbuttons {
154 text-align: right;
155 }
156
157 input
158 {
159 background-color: #efefef;
160 }
161
162 textarea
163 {
164 background-color: #efefef;
165 }
166
167
168 input.preq
169 {
170 background-color: #ffffff;
171 }
172 textarea.preq
173 {
174 background-color: #ffffff;
175 }
176
177 .error {
178 color: red;
179 }
180
181 -->
182 </style>
183
184 </head>
185
186 <body bgcolor="#dddddd">
187
188 <function showErrors(aField)>
189 <comment>
190 function to display error message at the input box  // occam, 2003-06-09
191 </comment>
192 <if errors>
193 <list errors as e>
194 <if e.field==aField>
195 ${lang(e.message + "." + e.field)}
196 </if>
197 </list>
198 </if>
199 </function>
200
201     <if errors>
202
203
204           Your input had the following errors:<br><br>
205           <list errors as e>
206             <font color="red">
207               <if e.field>
208                 ${lang("content."+e.field)}:
209               </if>
210               ${lang(e.message)} <br>
211             </font>
212           </list>
213
214
215     </if>
216
217
218 <comment>
219
220 <div class="pdiscl">
221 <include "disclaimer.inc.de">
222 </div>
223
224 </comment>
225
226 <div class="pformbox">
227
228 <h1>
229 ${lang("translation.form.title")}
230 </h1>
231 <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=translation&to_content=${parent.id}" method="post">
232
233     <if errors>
234 <p class="error">${lang("posting.errors")}</p>
235     </if>
236
237
238
239 <h2>
240 ${lang("translation.step01")} <!-- info about translation -->
241 </h2>
242
243 <div class="pformstep01">
244 <!-- LANG -->
245 <h4>
246 ${lang("translation.language")}
247 </h4>
248 <select name="to_language">
249 <list languages as l>
250 <option value="${l.id}">${l.name}</option>
251 </list>
252 </select>
253 <br />
254 ${lang("translation.to_language.other")}
255 <input type="text" name="subtitle" value="${utility.encodeHTML(subtitle)}">
256
257 <!-- AUTOR -->
258 <h4>
259 ${lang("translation.author")}
260 </h4>
261 <input type="text" class="preq" name="creator" value="${utility.encodeHTML(creator)}" size="45" maxlength="45"> 
262 <if errors>
263 <big class="error"><call showErrors("creator")></big>
264 <else>
265 <small><strong>(${lang("required")})</strong></small>
266 </if>
267 </div>
268
269
270 <h2>
271 ${lang("translation.step02")}
272 </h2>
273 <div class="pformstep02">
274 <!-- TITEL -->
275 <h4>
276 ${lang("translation.title")}
277 </h4>
278 <p><i>${utility.encodeHTML(parent.title)}</i></p>
279 <p>
280 <input type="text" class="preq" name="title" size="45" maxlength="45" value="${utility.encodeHTML(title)}">
281 <if errors>
282 <big class="error"><call showErrors("title")></big>
283 </if>
284 </p>
285
286
287 <!-- ABSTRACT -->
288 <h4>
289 ${lang("translation.abstract")}
290 </h4>
291 <p><i>${utility.encodeHTML(parent.description)}</i></p>
292 <textarea name="description" class="preq" rows="10" cols="74" wrap=virtual>${utility.encodeHTML(description)}</textarea>
293 <if errors>
294 <big class="error"><call showErrors("description")></big>
295 </if>
296 <!-- CONTENT -->
297 <h4>
298 ${lang("translation.text")}
299 </h4>
300 <p><i>${utility.encodeHTML(parent.content_data)}</i></p>
301 <textarea name="content_data" class="preq" rows="35" cols="74" wrap="soft">${utility.encodeHTML(content_data)}</textarea>
302 <if errors>
303 <big class="error"><call showErrors("content_data")></big>
304 </if>
305 <p>
306 ${lang("translation.is_html")}
307 </p>
308 <select name="is_html">
309               <option value="0" <if parent.is_html!="1">selected</if>>plain/text</option>
310               <option value="1" <if parent.is_html=="1">selected</if>>text/html</option>
311 </select>
312
313
314 </div>
315
316 <h2>
317 ${lang("translation.step03")}
318 </h2>
319 <div class="pformstep03">
320
321 <p>
322 ${lang("translation.submit.info")}
323 </p>
324 <div class="pbuttons">
325 <input type="submit" name="post" class="psubmit" value="${lang("posting.submit")}">
326 <input type="reset" class="preset" value="${lang("posting.reset")}">
327 </div>
328
329 </div>
330
331 </form>
332 </div>
333 </body>
334 </html>