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

660 lines
28 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('deputiesPath', 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/ministriesPath | nothing;
ministriesPath python:request.get('ministriesPath', view.settings.ministriesPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="ministriesPath" i18n:translate="label_ministries_path">Ministries</label>
<div tal:content="error" tal:condition="error" />
<input
name="ministriesPath"
id="ministriesPath"
type="text"
size="80"
tal:attributes="value ministriesPath"
/>
</div>
<div
tal:define="error errors/personsPath | nothing;
personsPath python:request.get('personsPath', view.settings.personsPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="personsPath" i18n:translate="label_persons_path">Persons</label>
<div tal:content="error" tal:condition="error" />
<input
name="personsPath"
id="personsPath"
type="text"
size="80"
tal:attributes="value personsPath"
/>
</div>
<div
tal:define="error errors/documentsPath | nothing;
documentsPath python:request.get('documentsPath', 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
tal:define="error errors/dossiersPath | nothing;
dossiersPath python:request.get('dossiersPath', view.settings.dossiersPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="dossiersPath" i18n:translate="label_dossiers_path">Dossiers</label>
<div tal:content="error" tal:condition="error" />
<input
name="dossiersPath"
id="dossiersPath"
type="text"
size="80"
tal:attributes="value dossiersPath"
/>
</div>
<div
tal:define="error errors/questionsPath | nothing;
questionsPath python:request.get('questionsPath', view.settings.questionsPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="questionsPath" i18n:translate="label_questions_path">Questions</label>
<div tal:content="error" tal:condition="error" />
<input
name="questionsPath"
id="questionsPath"
type="text"
size="80"
tal:attributes="value questionsPath"
/>
</div>
<div
tal:define="error errors/polgroupsPath | nothing;
polgroupsPath python:request.get('polgroupsPath', view.settings.polgroupsPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="polgroupsPath" i18n:translate="label_polgroups_path">Political Groups</label>
<div tal:content="error" tal:condition="error" />
<input
name="polgroupsPath"
id="polgroupsPath"
type="text"
size="80"
tal:attributes="value polgroupsPath"
/>
</div>
<div
tal:define="error errors/parleventsPath | nothing;
parleventsPath python:request.get('parleventsPath', view.settings.parleventsPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="parleventsPath" i18n:translate="label_parlevents_path">Parlementary Events</label>
<div tal:content="error" tal:condition="error" />
<input
name="parleventsPath"
id="parleventsPath"
type="text"
size="80"
tal:attributes="value parleventsPath"
/>
</div>
<div
tal:define="error errors/commissionsPath | nothing;
commissionsPath python:request.get('commissionsPath', view.settings.commissionsPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="commissionsPath" i18n:translate="label_commissions_path">Commissions</label>
<div tal:content="error" tal:condition="error" />
<input
name="commissionsPath"
id="commissionsPath"
type="text"
size="80"
tal:attributes="value commissionsPath"
/>
</div>
<div
tal:define="error errors/generalagendaPath | nothing;
generalagendaPath python:request.get('generalagendaPath', view.settings.generalagendaPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="generalagendaPath" i18n:translate="label_generalagenda_path">General Agenda</label>
<div tal:content="error" tal:condition="error" />
<input
name="generalagendaPath"
id="generalagendaPath"
type="text"
size="80"
tal:attributes="value generalagendaPath"
/>
</div>
<div
tal:define="error errors/convocationsPath | nothing;
convocationsPath python:request.get('convocationsPath', view.settings.convocationsPath)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="convocationsPath" i18n:translate="label_convocations_path">Convocations</label>
<div tal:content="error" tal:condition="error" />
<input
name="convocationsPath"
id="convocationsPath"
type="text"
size="80"
tal:attributes="value convocationsPath"
/>
</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-sessions">Sessions settings</dt>
<dd id="fieldset-sessions">
<form
name="sessions"
method="post"
class="enableUnloadProtection"
tal:attributes="action request/URL"
tal:define="errors view/errors">
<div
tal:define="error errors/sessions | nothing;
sessions python:request.get('sessions', view.settings.sessions)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="sessions" i18n:translate="label_sessions">Sessions</label>
<div tal:content="error" tal:condition="error" />
<textarea
name="sessions"
id="sessions"
type="text"
rows="20"
cols="80"
tal:content="sessions"
>...</textarea>
</div>
<div class="formControls">
<input
type="submit"
name="form.button.SessionsSave"
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-topics">Topics settings</dt>
<dd id="fieldset-topics">
<form
name="topics"
method="post"
class="enableUnloadProtection"
tal:attributes="action request/URL"
tal:define="errors view/errors">
<div
tal:define="error errors/topics | nothing;
topics python:request.get('topics', view.settings.topics)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="topics" i18n:translate="label_topics">Topics</label>
<div tal:content="error" tal:condition="error" />
<textarea
name="topics"
id="topics"
type="text"
rows="20"
cols="80"
tal:content="topics"
>...</textarea>
</div>
<div class="formControls">
<input
type="submit"
name="form.button.TopicsSave"
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>
<dt id="fieldsetlegend-misc">Misc settings</dt>
<dd id="fieldset-misc">
<form
name="misc"
method="post"
class="enableUnloadProtection"
tal:attributes="action request/URL"
tal:define="errors view/errors">
<div
tal:define="error errors/ical_username | nothing;
ical_username python:request.get('ical_username', view.settings.ical_username)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="ical_username" i18n:translate="label_ical_username">ICal Username</label>
<div tal:content="error" tal:condition="error" />
<input
name="ical_username"
id="ical_username"
type="text"
tal:attributes="value ical_username"
/>
</div>
<div
tal:define="error errors/ical_password | nothing;
ical_password python:request.get('ical_password', view.settings.ical_password)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="ical_password" i18n:translate="label_ical_password">ICal Password</label>
<div tal:content="error" tal:condition="error" />
<input
name="ical_password"
id="ical_password"
type="password"
tal:attributes="value ical_password"
/>
</div>
<hr/>
<div
tal:define="error errors/audiofiles_path | nothing;
audiofiles_path python:request.get('audiofiles_path', view.settings.audiofiles_path)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="audiofiles_path" i18n:translate="label_audiofiles_path">Audio Files Path</label>
<div tal:content="error" tal:condition="error" />
<input
name="audiofiles_path"
id="audiofiles_path"
type="text"
tal:attributes="value audiofiles_path"
/>
</div>
<div
tal:define="error errors/commission_audio_codes | nothing;
commission_audio_codes python:request.get('commission_audio_codes', view.settings.commission_audio_codes)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="commission_audio_codes" i18n:translate="label_commission_audio_codes">Commission Audio Codes</label>
<div tal:content="error" tal:condition="error" />
<textarea
name="commission_audio_codes"
id="commission_audio_codes"
type="text"
rows="20"
cols="80"
tal:content="commission_audio_codes"
>...</textarea>
</div>
<div
tal:define="error errors/embedded_audio_player_url | nothing;
embedded_audio_player_url python:request.get('embedded_audio_player_url', view.settings.embedded_audio_player_url)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="embedded_audio_player_url" i18n:translate="label_embedded_audio_player_url">Embedded Audio Player URL</label>
<div tal:content="error" tal:condition="error" />
<input
name="embedded_audio_player_url"
id="embedded_audio_player_url"
type="text"
tal:attributes="value embedded_audio_player_url"
/>
</div>
<div
tal:define="error errors/live_stream_url | nothing;
live_stream_url python:request.get('live_stream_url', view.settings.live_stream_url)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="live_stream_url" i18n:translate="label_live_stream_url">Live Stream URL</label>
<div tal:content="error" tal:condition="error" />
<input
name="live_stream_url"
id="live_stream_url"
type="text"
tal:attributes="value live_stream_url"
/>
</div>
<hr/>
<div
tal:define="error errors/contest_subject_email | nothing;
contest_subject_email python:request.get('contest_subject_email', view.settings.contest_subject_email)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="contest_subject_email" i18n:translate="label_contest_subject_email">Contest Subject Email</label>
<div tal:content="error" tal:condition="error" />
<input
name="contest_subject_email"
id="contest_subject_email"
type="text"
tal:attributes="value contest_subject_email"
/>
</div>
<div
tal:define="error errors/contest_subject_body | nothing;
contest_body_email python:request.get('contest_body_email', view.settings.contest_body_email)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="contest_body_email" i18n:translate="label_contest_body_email">Contest Body Email</label>
<div tal:content="error" tal:condition="error" />
<textarea
name="contest_body_email"
id="contest_body_email"
type="text"
rows="20"
cols="80"
tal:content="contest_body_email"
>...</textarea>
</div>
<hr/>
<div
tal:define="error errors/gender_colors | nothing;
gender_colors python:request.get('gender_colors', view.settings.gender_colors)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="gender_colors" i18n:translate="label_gender_colors">Gender Colors</label>
<div tal:content="error" tal:condition="error" />
<input
name="gender_colors"
id="gender_colors"
type="text"
tal:attributes="value gender_colors"
/>
</div>
<div
tal:define="error errors/ageranges_color | nothing;
ageranges_color python:request.get('ageranges_color', view.settings.ageranges_color)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="ageranges_color" i18n:translate="label_ageranges_color">Age Ranges Colors</label>
<div tal:content="error" tal:condition="error" />
<input
name="ageranges_color"
id="ageranges_color"
type="text"
tal:attributes="value ageranges_color"
/>
</div>
<div class="formControls">
<input
type="submit"
name="form.button.MiscSave"
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-greffier">Greffier settings</dt>
<dd id="fieldset-greffier">
<form
name="greffier"
method="post"
class="enableUnloadProtection"
tal:attributes="action request/URL"
tal:define="errors view/errors">
<div
tal:define="error errors/greffier_name | nothing;
greffier_name python:request.get('greffier_name', view.settings.greffier_name)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="greffier_name" i18n:translate="label_greffier_name">Greffier Name</label>
<div tal:content="error" tal:condition="error" />
<input
name="greffier_name"
id="greffier_name"
type="text"
size="80"
tal:attributes="value greffier_name"
/>
</div>
<div
tal:define="error errors/greffier_email | nothing;
greffier_email python:request.get('greffier_email', view.settings.greffier_email)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="greffier_email" i18n:translate="label_greffier_email">Greffier Email</label>
<div tal:content="error" tal:condition="error" />
<input
name="greffier_email"
id="greffier_email"
type="text"
size="80"
tal:attributes="value greffier_email"
/>
</div>
<div
tal:define="error errors/greffier_address_line1 | nothing;
greffier_address_line1 python:request.get('greffier_address_line1', view.settings.greffier_address_line1)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="greffier_address_line1" i18n:translate="label_greffier_address_line1">Greffier Address Line 1</label>
<div tal:content="error" tal:condition="error" />
<input
name="greffier_address_line1"
id="greffier_address_line1"
type="text"
size="80"
tal:attributes="value greffier_address_line1"
/>
</div>
<div
tal:define="error errors/greffier_address_line2 | nothing;
greffier_address_line2 python:request.get('greffier_address_line2', view.settings.greffier_address_line2)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="greffier_address_line2" i18n:translate="label_greffier_address_line2">Greffier Address Line 2</label>
<div tal:content="error" tal:condition="error" />
<input
name="greffier_address_line2"
id="greffier_address_line2"
type="text"
size="80"
tal:attributes="value greffier_address_line2"
/>
</div>
<div
tal:define="error errors/greffier_phone | nothing;
greffier_phone python:request.get('greffier_phone', view.settings.greffier_phone)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="greffier_phone" i18n:translate="label_greffier_phone">Greffier Phone</label>
<div tal:content="error" tal:condition="error" />
<input
name="greffier_phone"
id="greffier_phone"
type="text"
size="80"
tal:attributes="value greffier_phone"
/>
</div>
<div
tal:define="error errors/greffier_fax | nothing;
greffier_fax python:request.get('greffier_fax', view.settings.greffier_fax)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="greffier_fax" i18n:translate="label_greffier_fax">Greffier Fax</label>
<div tal:content="error" tal:condition="error" />
<input
name="greffier_fax"
id="greffier_fax"
type="text"
size="80"
tal:attributes="value greffier_fax"
/>
</div>
<div class="formControls">
<input
type="submit"
name="form.button.GreffierSave"
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>