Settings for commissions location
This commit is contained in:
parent
39cc4cfabe
commit
4a8fa70fb3
|
@ -147,6 +147,22 @@
|
|||
/>
|
||||
</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 class="formControls">
|
||||
<input
|
||||
type="submit"
|
||||
|
|
|
@ -50,6 +50,7 @@ class TabellioControlpanel(BrowserView):
|
|||
dossiers_path = form.get('dossiersPath')
|
||||
polgroups_path = form.get('polgroupsPath')
|
||||
parlevents_path = form.get('parleventsPath')
|
||||
commissions_path = form.get('commissionsPath')
|
||||
|
||||
if not self.errors:
|
||||
self.settings.deputiesPath = deputies_path
|
||||
|
@ -59,6 +60,7 @@ class TabellioControlpanel(BrowserView):
|
|||
self.settings.dossiersPath = dossiers_path
|
||||
self.settings.polgroupsPath = polgroups_path
|
||||
self.settings.parleventsPath = parlevents_path
|
||||
self.settings.commissionsPath = commissions_path
|
||||
|
||||
if 'form.button.SessionsSave' in form:
|
||||
self.authorize()
|
||||
|
|
|
@ -7,6 +7,10 @@ _ = MessageFactory(u'tabellio.config')
|
|||
class ITabellioSettings(Interface):
|
||||
'''Tabellio Settings'''
|
||||
|
||||
commissionsPath = schema.TextLine(
|
||||
title=_('commissions_path', 'Commissions Path'),
|
||||
required=False)
|
||||
|
||||
deputiesPath = schema.TextLine(
|
||||
title=_('deputies_path', 'Deputies Path'),
|
||||
required=False)
|
||||
|
|
Reference in New Issue