1: <html metal:use-macro="here/main_template/macros/page">
2: <body metal:fill-slot="body">
3: <h2>Add a document to a collection</h2>
4: <p>(<b>Bold face is required</b>,<i>Italics is optional</i>)</p>
5: <form action="addContextData2">
6: <h3>Select the collection or subcollection (required)</h3>
7:
8: <div tal:replace="structure python:here.XmlToTree(here.collection,getattr(here,'pwstr',''))"/>
9: <h3>Which Elements to combine:</h3>
10: <table>
11: <tr>
12: <td>Thumb</td>
13: <td>Streamingfile</td>
14: <td>Rawfile</td>
15: </tr>
16: <tr>
17: <td>
18: <select name="thumb">
19: <option tal:repeat="image python:here.REQUEST.SESSION['images']" tal:attributes="value image" tal:content="image"/>
20: </select>
21: </td>
22: <td>
23: <select name="streamingfile">
24: <option tal:repeat="movie python:here.REQUEST.SESSION['movies']" tal:attributes="value movie" tal:content="movie"/>
25: </select>
26: </td>
27: <td>
28: <select name="rawfile">
29: <option tal:repeat="movie python:here.REQUEST.SESSION['movies']" tal:attributes="value movie" tal:content="movie"/>
30: </select>
31: </td>
32: </tr>
33:
34: </table>
35:
36:
37:
38: <input type="hidden" name="path" tal:attributes="value python:here.REQUEST['path']"/>
39:
40: <h3>Additional Information</h3>
41: <table>
42: <tr><td><i> Label: </i></td><td><input type="text" name="label" size="100"></td></tr>
43: <tr><td><i> Description:</i></td><td><textarea name="description" cols="80" rows="5"></textarea></td></tr>
44: <tr><td><i> Content-Type: </i></td><td><input type="text" name="content_type"></td></tr>
45: <tr><td><i> Responsible: </i></td><td><input type="text" name="responsible"></td></tr>
46: <tr><td><i> Weight: </i></td><td><input type="text" name="weight"></td></tr>
47: </table>
48:
49: <h3> Credits:</h3><br>
50: <div tal:omit-tag="" tal:repeat="item python:here.getPartners(here.collection)"> <input type="checkbox" name="credits" tal:attributes="value python:item[0]"><tal:block tal:replace="python:item[1]"/><br></div>
51: <input type="submit" value="submit"/>
52: </form>
53: </body>
54: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>