This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
tabellio.config/tabellio/config/controlpanel.pt

107 lines
3.4 KiB
XML

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
metal:use-macro="context/prefs_main_template/macros/master"
i18n:domain="plone">
<body>
<div metal:fill-slot="prefs_configlet_main">
<h1 class="documentFirstHeading"
i18n:translate="heading_tabellio_settings">Tabellio settings</h1>
<a href=""
class="link-parent"
tal:attributes="href string:${portal_url}/plone_control_panel"
i18n:translate="label_up_to_plone_setup">
Up to Site Setup
</a>
<p>
Use this control panel to configure Tabellio.
</p>
<dl class="enableFormTabbing">
<dt id="fieldsetlegend-basic">Location settings</dt>
<dd id="fieldset-basic">
<form
name="basic"
method="post"
class="enableUnloadProtection"
tal:attributes="action request/URL"
tal:define="errors view/errors">
<div
tal:define="error errors/deputiesPath | nothing;
deputiesPath python:request.get('deputies', view.settings.deputiesPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="deputiesPath" i18n:translate="label_deputies_path">Deputies</label>
<div tal:content="error" tal:condition="error" />
<input
name="deputiesPath"
id="deputiesPath"
type="text"
size="80"
tal:attributes="value deputiesPath"
/>
</div>
<div
tal:define="error errors/documentsPath | nothing;
documentsPath python:request.get('deputies', view.settings.documentsPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="documentsPath" i18n:translate="label_documents_path">Documents</label>
<div tal:content="error" tal:condition="error" />
<input
name="documentsPath"
id="documentsPath"
type="text"
size="80"
tal:attributes="value documentsPath"
/>
</div>
<div class="formControls">
<input
type="submit"
name="form.button.LocationsSave"
class="context"
value="Save"
i18n:attributes="value" />
<input
type="submit"
name="form.button.Cancel"
class="context"
value="Cancel"
i18n:attributes="value" />
</div>
<input tal:replace="structure context/@@authenticator/authenticator" />
</form>
</dd>
<dt id="fieldsetlegend-advanced">Other settings</dt>
<dd id="fieldset-other">
<p>
...
</p>
</dd>
</dl>
</div>
</body>
</html>