Mercurial > hg > MPIWGWeb
diff zpt/changeMPIWGRootForm.zpt @ 0:bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
author | casties |
---|---|
date | Thu, 10 Jan 2013 17:52:13 +0100 |
parents | |
children | bbad6a092861 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zpt/changeMPIWGRootForm.zpt Thu Jan 10 17:52:13 2013 +0100 @@ -0,0 +1,58 @@ +<html> +<head> + <title>The title</title> +</head> +<body> + +<div> + +<h1>Change MPIWGRoot</h1> +<form method="post" action="changeMPIWGRoot"> + +<p>Title:<br/> +<input tal:attributes="value python:getattr(here,'title','')" name="title"/> +</p> +<p>Default language:<br/> +<input tal:attributes="value python:getattr(here,'lang','en')" name="lang"/> +</p> + +<p>Cone Service URL:<br/> +<input size="100" tal:attributes="value python:getattr(here,'coneServiceURL','http://virtuoso.mpiwg-berlin.mpg.de:8080/MetaDataManagerRestlet/cone/')" name="coneServiceURL"/> +</p> +<p>Harvester ZEO server:<br/> +<input tal:attributes="value python:here.getHarvestCacheServer()" name="harvestServer"/> +</p> +<p>Harvester ZEO server port:<br/> +<input tal:attributes="value python:here.getHarvestCachePort()" name="harvestPort"/> +</p> +<!-- +<p>Discipline list (seperated by CR)<br> +<textarea name="disciplineList" cols=50 rows=20 tal:content="python:getattr(here,'disciplineList','')" ></textarea> +</p> +<p>Themes List (seperated by CR)<br> +<textarea name="themesList" cols=50 rows=20 tal:content="python:getattr(here,'themesList','')"></textarea> +</p> +--> + + +<p> +<div class="form-element"> + + <select name="connection_id"> + + <tal:block tal:repeat="id python:here.SQLConnectionIDs()[0]"> + <option tal:condition="python:getattr(here,'connection_id','')==id" tal:attributes="value id" selected tal:content="id"/> + <option tal:condition="not:python:getattr(here,'connection_id','')==id" tal:attributes="value id" tal:content="id"/> + </tal:block> + </select> + </div> + + <p class="form-label">Autocommit</p> + <p> + <input type="checkbox" name="autocommit" tal:attributes="checked here/autocommit | nothing"/> autocommit (don't use when you want transactions) + </p> +<input type="submit"> +</form> +</div> +</body> +</html>