<html metal:use-macro="here/main_template/macros/page">
<head>
<title metal:fill-slot="title">The title</title>
</head>
<body>
<div metal:fill-slot="body">
<!--Addition for Presentation-->
<h2>Change the Presentation Configuration in path <span tal:replace="python:here.REQUEST['path']"/> and in all subfolders</h2>
<h2>NO UNDO!!!</h2>
<form action="changeTemplates" method="post">
<h3>Select the project (changes here will change all entries below)</h3>
<select tal:attributes="onChange python:'location.href=\''+here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&project=\'+this.options[this.selectedIndex].value'" name="project">
<span tal:omit-tag="" tal:condition="not:python:here.REQUEST.has_key('project')">
<option/>
<span tal:omit-tag="" tal:repeat="item here/getProjects">
<span tal:omit-tag="" tal:condition="python:item[1]==here.getTextToolsField(path,'project')">
<option tal:content="python:item[0]" tal:attributes="value python:item[1]" selected/>
</span>
<span tal:omit-tag="" tal:condition="not:python:item[1]==here.getTextToolsField(path,'project')">
<option tal:content="python:item[0]" tal:attributes="value python:item[1]"/>
</span>
</span>
</span>
<span tal:omit-tag="" tal:condition="python:here.REQUEST.has_key('project')">
<span tal:omit-tag="" tal:repeat="project here/getProjects" tal:attributes="value python:project[1]">
<span tal:omit-tag="">
<option tal:content="python:project[0]" tal:attributes="value python:project[1]"/>
</span>
</span>
</span>
</select>
<h3>Entries (Changes are only valid for this document)</h3>
<!--NO Project selected-->
<table tal:condition="not:python:here.REQUEST.has_key('project')">
<tr>
<td><em>Path to the of startpage (optional)</em></td>
<td><input size=80 type="text" name="startpage" tal:attributes="value python:here.getTextToolsField(path,'startpage')"/></td>
</tr>
<tr>
<td><em>Path or URI of xslt (optional)</em></td>
<td><input size=80 type="text" name="xslt" tal:attributes="value python:here.getTextToolsField(path,'xslt')"/></td>
</tr>
<tr>
<td><em>Path to template of sidebar (optional)</em></td>
<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>
</tr>
<tr>
<td>
<em>Path to template of topbar (optional)</em></td>
<td>
<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')"/>
</td>
</tr>
<tr>
<td>
<em>Path to template of digilib navigationa (optional)</em></td>
<td>
<input size=80 type="text" name="digiLibTemplate" tal:attributes="value python:here.getTextToolsField(path,'digilibtempl')"/>
</td>
</tr>
</table>
<!--Project selected-->
<span tal:omit-tag="" tal:condition="python:here.REQUEST.has_key('project')">
<table tal:define="project python:here.getProjects(obj_ids=[here.REQUEST['project']])[0]">
<tr>
<td><em>Path to the of startpage (optional)</em></td>
<td><input size=80 type="text" name="startpage" tal:attributes="value python:project[2].startpage"/></td>
</tr>
<tr>
<td><em>Path or URI of xslt (optional)</em></td>
<td><input size=80 type="text" name="xslt" tal:attributes="value python:project[2].xsl"/></td>
</tr>
<tr>
<td><em>Path to template of sidebar (optional)</em></td>
<td><input size=80 type="text" name="thumbtemplate" tal:attributes="value python:project[2].thumbTemplate.getPath()"/></td>
</tr>
<tr>
<td>
<em>Path to template of topbar (optional)</em></td>
<td>
<input size=80 type="text" name="topbar" tal:attributes="value python:project[2].topTemplate.getPath()"/>
</td>
</tr>
<tr>
<td>
<em>Path to template of DigiLib Template (optional)</em></td>
<td>
<input size=80 type="text" name="digiLibTemplate" tal:attributes="value python:project[2].digiLibTemplate.getPath()"/>
</td>
</tr>
</table>
</span> <!--End of Selected Project -->
<input type="hidden" name="path" tal:attributes="value python:here.REQUEST.SESSION['path']">
<input type="submit">
</form>
<form>
</div>
</body>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>