280 lines
12 KiB
XML
280 lines
12 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="themis.config">
|
|
|
|
<body>
|
|
|
|
<div metal:fill-slot="prefs_configlet_main">
|
|
|
|
<h1 class="documentFirstHeading"
|
|
i18n:translate="heading_themis_settings">Themis 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 Themis.
|
|
</p>
|
|
|
|
<dl class="enableFormTabbing">
|
|
<dt id="fieldsetlegend-mailmapping">Mail mapping settings</dt>
|
|
<dd id="fieldset-mailmapping">
|
|
|
|
<form
|
|
name="mail_category_mapping"
|
|
method="post"
|
|
class="enableUnloadProtection"
|
|
tal:attributes="action request/URL"
|
|
tal:define="errors view/errors">
|
|
|
|
<div
|
|
tal:define="error errors/documents_path | nothing;
|
|
documents_path python:request.get('documents_path', view.settings.documents_path)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
<label for="documents_path" i18n:translate="label_documents_path">Documents Path</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<input
|
|
name="documents_path"
|
|
id="documents_path"
|
|
type="text"
|
|
size="80"
|
|
tal:attributes="value documents_path"
|
|
/>
|
|
</div>
|
|
|
|
<div
|
|
tal:define="error errors/mail_category_mapping | nothing;
|
|
mail_category_mapping python:request.get('mail_category_mapping', view.settings.mail_category_mapping)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
<label for="mail_category_mapping" i18n:translate="label_mail_category_mapping">Mail Category Mapping</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<textarea
|
|
name="mail_category_mapping"
|
|
id="mail_category_mapping"
|
|
type="text"
|
|
rows="20"
|
|
cols="80"
|
|
tal:content="mail_category_mapping"
|
|
>...</textarea>
|
|
</div>
|
|
|
|
<div class="formControls">
|
|
<input
|
|
type="submit"
|
|
name="form.button.MailCategoryMappingSave"
|
|
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-ocr">OCR Settings</dt>
|
|
<dd id="fieldset-ocr">
|
|
|
|
<form
|
|
name="ocr"
|
|
method="post"
|
|
class="enableUnloadProtection"
|
|
tal:attributes="action request/URL"
|
|
tal:define="errors view/errors">
|
|
|
|
<h3>Courriers entrants</h3>
|
|
|
|
<div
|
|
tal:define="error errors/incoming_mails_path | nothing;
|
|
incoming_mails_path python:request.get('incoming_mails_path', view.settings.incoming_mails_path)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
|
|
<label for="incoming_mails_path" i18n:translate="label_incoming_mails_path">Incoming Mails Path</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<input
|
|
name="incoming_mails_path"
|
|
id="incoming_mails_path"
|
|
type="text"
|
|
size="80"
|
|
tal:attributes="value incoming_mails_path"
|
|
/>
|
|
</div>
|
|
|
|
<div
|
|
tal:define="error errors/ocr_code_mapping | nothing;
|
|
ocr_code_mapping python:request.get('ocr_code_mapping', view.settings.ocr_code_mapping)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
<label for="ocr_code_mapping" i18n:translate="label_ocr_code_mapping">OCR Code Mapping</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<textarea
|
|
name="ocr_code_mapping"
|
|
id="ocr_code_mapping"
|
|
type="text"
|
|
rows="20"
|
|
cols="80"
|
|
tal:content="ocr_code_mapping"
|
|
>...</textarea>
|
|
</div>
|
|
|
|
<h3>Courriers sortants</h3>
|
|
|
|
<div
|
|
tal:define="error errors/outgoing_mails_path | nothing;
|
|
outgoing_mails_path python:request.get('outgoing_mails_path', view.settings.outgoing_mails_path)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
|
|
<label for="outgoing_mails_path">Chemin</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<input
|
|
name="outgoing_mails_path"
|
|
id="outgoing_mails_path"
|
|
type="text"
|
|
size="80"
|
|
tal:attributes="value outgoing_mails_path"
|
|
/>
|
|
</div>
|
|
|
|
<div
|
|
tal:define="error errors/ocr_code_outgoing_mails_mapping | nothing;
|
|
ocr_code_outgoing_mails_mapping python:request.get('ocr_code_outgoing_mails_mapping', view.settings.ocr_code_outgoing_mails_mapping)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
<label for="ocr_code_outgoing_mails_mapping" i18n:translate="label_ocr_code_outgoing_mails_mapping">OCR Code Mapping</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<textarea
|
|
name="ocr_code_outgoing_mails_mapping"
|
|
id="ocr_code_outgoing_mails_mapping"
|
|
type="text"
|
|
rows="20"
|
|
cols="80"
|
|
tal:content="ocr_code_outgoing_mails_mapping"
|
|
>...</textarea>
|
|
</div>
|
|
|
|
|
|
<h3>Documents internes</h3>
|
|
|
|
<div
|
|
tal:define="error errors/internal_documents_path | nothing;
|
|
internal_documents_path python:request.get('internal_documents_path', view.settings.internal_documents_path)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
|
|
<label for="internal_documents_path">Chemin</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<input
|
|
name="internal_documents_path"
|
|
id="internal_documents_path"
|
|
type="text"
|
|
size="80"
|
|
tal:attributes="value internal_documents_path"
|
|
/>
|
|
</div>
|
|
|
|
<div
|
|
tal:define="error errors/ocr_code_internal_documents_mapping | nothing;
|
|
ocr_code_internal_documents_mapping python:request.get('ocr_code_internal_documents_mapping', view.settings.ocr_code_internal_documents_mapping)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
<label for="ocr_code_internal_documents_mapping" i18n:translate="label_ocr_code_internal_documents_mapping">OCR Code Mapping</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<textarea
|
|
name="ocr_code_internal_documents_mapping"
|
|
id="ocr_code_internal_documents_mapping"
|
|
type="text"
|
|
rows="20"
|
|
cols="80"
|
|
tal:content="ocr_code_internal_documents_mapping"
|
|
>...</textarea>
|
|
</div>
|
|
|
|
|
|
<h3>Documents confidentiels</h3>
|
|
|
|
<div
|
|
tal:define="error errors/confidential_documents_path | nothing;
|
|
confidential_documents_path python:request.get('confidential_documents_path', view.settings.confidential_documents_path)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
|
|
<label for="confidential_documents_path">Chemin</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<input
|
|
name="confidential_documents_path"
|
|
id="confidential_documents_path"
|
|
type="text"
|
|
size="80"
|
|
tal:attributes="value confidential_documents_path"
|
|
/>
|
|
</div>
|
|
|
|
<div
|
|
tal:define="error errors/ocr_code_confidential_documents_mapping | nothing;
|
|
ocr_code_confidential_documents_mapping python:request.get('ocr_code_confidential_documents_mapping', view.settings.ocr_code_confidential_documents_mapping)"
|
|
tal:attributes="class python:'field error' if error else 'field'">
|
|
|
|
<label for="ocr_code_confidential_documents_mapping" i18n:translate="label_ocr_code_confidential_documents_mapping">OCR Code Mapping</label>
|
|
<div tal:content="error" tal:condition="error" />
|
|
<textarea
|
|
name="ocr_code_confidential_documents_mapping"
|
|
id="ocr_code_confidential_documents_mapping"
|
|
type="text"
|
|
rows="20"
|
|
cols="80"
|
|
tal:content="ocr_code_confidential_documents_mapping"
|
|
>...</textarea>
|
|
</div>
|
|
|
|
|
|
<div class="formControls">
|
|
<input
|
|
type="submit"
|
|
name="form.button.OcrSave"
|
|
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>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|