language fix
[mir.git] / templates-dist / en / open / minimal_posting.template
1 <html>
2
3 this is a minimal template need to successfully publish a story.  the
4 current en/open/posting.template is out of date to the point of being
5 broken.  this works.  though it could use a little design help :)
6
7 <!-- begin MEDIANUM form -->
8 <!-- how many media items to upload? -->
9 <!-- submit simply re-displays *this* form -->
10 <form action="${openAction}?do=addposting" method="post">
11   How many media items: 
12   <input type="text" name="medianum"
13    value="${medianum}">&nbsp;
14   <input type="submit" value="Update">
15 </form>
16 <!-- end MEDIANUM form -->
17
18 <!-- begin MAINCONTENT form -->
19 <!-- submit attempts to add new story -->
20 <form enctype="multipart/form-data" action="${openAction}?do=insposting" method="post">
21
22 Title: <input type="text" name="title" size="45" 
23 maxlength="45" value=""> 
24 <p>
25 <!-- Pull down of available topics -->
26 <!-- iterate over all available topics: themenPopupData -->
27 <!-- if any topics are passed in (e.g. ?to_topic=3,2) then -->
28 <!-- set topic to selected -->
29 Topic: 
30 <select name="to_topic" size="3" multiple> 
31   <list data.themenPopupData as t>
32      <option value="${t.key}"
33          <list to_topic as to>
34             <if (t.key == to)>selected</if>
35          </list>
36      >${t.value}</option>
37   </list>
38 </select>
39 <p>
40 Author: <input type="text" name="creator" size="45" maxlength="45">
41 <p>
42 Summary:  <textarea name="description" rows="6" cols="45" wrap=virtual></textarea>
43 <p>
44 Your Email: <input type="text" name="creator_email" size="45"
45 maxlength="80" value="">
46 <p>
47 Your Web Address:
48 <input type="text" name="creator_main_url" size="45" maxlength="160" value="http://">
49 <p>
50 Address: <input type="text" name="creator_address" size="45" maxlength="160" value="">
51 <p>
52 Phone #: <input type="text" name="creator_phone" size="20" maxlength="20" value="">
53 <p>
54 <!-- generate list of known languages -->
55 Language:
56 <select name="to_language">
57   <list data.languagePopUpData as l>
58     <option value="${l.key}">${l.value}</option>
59   </list>
60 </select>
61 <p>
62 Your Article:
63 <textarea name="content_data" rows="20" cols="45" wrap="soft"></textarea>
64 <p>
65 <!-- generate N fields for uploading files -->
66 <!-- where N is medianum -->
67 Media Uploads:
68 <list data.mediafields as m>
69     File ${m}
70     <INPUT TYPE="file" NAME="media${m}">
71     <br>
72      Title ${m}: <input type="text" name="media_title${m}" size="40" maxlength="80" value="">
73 </list>
74 <p>
75 <input type="submit" value="Post"><br>
76
77 </html>