1: <html metal:use-macro="here/main_template/macros/page">
2: <head>
3: <title metal:fill-slot="title">The title</title>
4: </head>
5: <body>
6: <div metal:fill-slot="body">
7: <!--Addition for Presentation-->
8: <h2>Change the Presentation Configuration in path <span tal:replace="python:here.REQUEST['path']"/> and in all subfolders</h2>
9: <h2>NO UNDO!!!</h2>
10: <form action="changeTemplates" method="post">
11: <h3>Select the project (changes here will change all entries below)</h3>
12: <select tal:attributes="onChange python:'location.href=\''+here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&project=\'+this.options[this.selectedIndex].value'" name="project">
13: <span tal:omit-tag="" tal:condition="not:python:here.REQUEST.has_key('project')">
14: <option/>
15: <span tal:omit-tag="" tal:repeat="item here/getProjects">
16: <span tal:omit-tag="" tal:condition="python:item[1]==here.getTextToolsField(path,'project')">
17: <option tal:content="python:item[0]" tal:attributes="value python:item[1]" selected/>
18: </span>
19: <span tal:omit-tag="" tal:condition="not:python:item[1]==here.getTextToolsField(path,'project')">
20: <option tal:content="python:item[0]" tal:attributes="value python:item[1]"/>
21: </span>
22: </span>
23:
24:
25: </span>
26: <span tal:omit-tag="" tal:condition="python:here.REQUEST.has_key('project')">
27:
28: <span tal:omit-tag="" tal:repeat="project here/getProjects" tal:attributes="value python:project[1]">
29: <span tal:omit-tag="">
30: <option tal:content="python:project[0]" tal:attributes="value python:project[1]"/>
31: </span>
32: </span>
33: </span>
34: </select>
35:
36: <h3>Entries (Changes are only valid for this document)</h3>
37: <!--NO Project selected-->
38: <table tal:condition="not:python:here.REQUEST.has_key('project')">
39: <tr>
40: <td><em>Path to the of startpage (optional)</em></td>
41: <td><input size=80 type="text" name="startpage" tal:attributes="value python:here.getTextToolsField(path,'startpage')"/></td>
42: </tr>
43: <tr>
44: <td><em>Path or URI of xslt (optional)</em></td>
45: <td><input size=80 type="text" name="xslt" tal:attributes="value python:here.getTextToolsField(path,'xslt')"/></td>
46: </tr>
47: <tr>
48: <td><em>Path to template of sidebar (optional)</em></td>
49: <td><input size=80 type="text" name="thumbtemplate" value="/usr/local/share/archimedes/web/docs/proj/echo/1/templates/toc/thumbviewer2.tmpl" tal:attributes="value python:here.getTextToolsField(path,'thumbtemplate')"/></td>
50: </tr>
51: <tr>
52: <td>
53: <em>Path to template of topbar (optional)</em></td>
54: <td>
55: <input size=80 type="text" name="topbar" value="/usr/local/share/archimedes/web/docs/proj/echo/1/templates/toc/topbar.tmpl" tal:attributes="value python:here.getTextToolsField(path,'toptemplate')"/>
56: </td>
57: </tr>
58: <tr>
59: <td>
60: <em>Path to template of digilib navigationa (optional)</em></td>
61: <td>
62: <input size=80 type="text" name="digiLibTemplate" tal:attributes="value python:here.getTextToolsField(path,'digilibtempl')"/>
63: </td>
64: </tr>
65:
66: </table>
67: <!--Project selected-->
68: <span tal:omit-tag="" tal:condition="python:here.REQUEST.has_key('project')">
69: <table tal:define="project python:here.getProjects(obj_ids=[here.REQUEST['project']])[0]">
70: <tr>
71: <td><em>Path to the of startpage (optional)</em></td>
72: <td><input size=80 type="text" name="startpage" tal:attributes="value python:project[2].startpage"/></td>
73: </tr>
74: <tr>
75: <td><em>Path or URI of xslt (optional)</em></td>
76: <td><input size=80 type="text" name="xslt" tal:attributes="value python:project[2].xsl"/></td>
77: </tr>
78: <tr>
79: <td><em>Path to template of sidebar (optional)</em></td>
80: <td><input size=80 type="text" name="thumbtemplate" tal:attributes="value python:project[2].thumbTemplate.getPath()"/></td>
81: </tr>
82: <tr>
83: <td>
84: <em>Path to template of topbar (optional)</em></td>
85: <td>
86: <input size=80 type="text" name="topbar" tal:attributes="value python:project[2].topTemplate.getPath()"/>
87: </td>
88: </tr>
89: <tr>
90: <td>
91: <em>Path to template of DigiLib Template (optional)</em></td>
92: <td>
93: <input size=80 type="text" name="digiLibTemplate" tal:attributes="value python:project[2].digiLibTemplate.getPath()"/>
94: </td>
95: </tr>
96: </table>
97: </span> <!--End of Selected Project -->
98:
99:
100:
101: <input type="hidden" name="path" tal:attributes="value python:here.REQUEST.SESSION['path']">
102: <input type="submit">
103: </form>
104:
105: <form>
106:
107: </div>
108: </body>
109: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>