add configuration patch for questions
This commit is contained in:
parent
995c6c1ede
commit
73de050333
|
@ -115,6 +115,23 @@
|
|||
|
||||
</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">Dossiers</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)"
|
||||
|
|
|
@ -48,6 +48,7 @@ class TabellioControlpanel(BrowserView):
|
|||
ministries_path = form.get('ministriesPath')
|
||||
documents_path = form.get('documentsPath')
|
||||
dossiers_path = form.get('dossiersPath')
|
||||
questions_path = form.get('questionsPath')
|
||||
polgroups_path = form.get('polgroupsPath')
|
||||
parlevents_path = form.get('parleventsPath')
|
||||
commissions_path = form.get('commissionsPath')
|
||||
|
@ -58,6 +59,7 @@ class TabellioControlpanel(BrowserView):
|
|||
self.settings.ministriesPath = ministries_path
|
||||
self.settings.documentsPath = documents_path
|
||||
self.settings.dossiersPath = dossiers_path
|
||||
self.settings.questionsPath = questions_path
|
||||
self.settings.polgroupsPath = polgroups_path
|
||||
self.settings.parleventsPath = parlevents_path
|
||||
self.settings.commissionsPath = commissions_path
|
||||
|
|
|
@ -23,6 +23,10 @@ class ITabellioSettings(Interface):
|
|||
title=_('dossiers_path', 'Dossiers Path'),
|
||||
required=False)
|
||||
|
||||
questionsPath = schema.TextLine(
|
||||
title=_('questions_path', 'Questions Path'),
|
||||
required=False)
|
||||
|
||||
ministriesPath = schema.TextLine(
|
||||
title=_('ministries_path', 'Ministries Path'),
|
||||
required=False)
|
||||
|
|
Reference in New Issue