add settings for the agenda folder
This commit is contained in:
parent
46534fc487
commit
9b10df2130
|
@ -180,6 +180,22 @@
|
|||
/>
|
||||
</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 class="formControls">
|
||||
<input
|
||||
type="submit"
|
||||
|
|
|
@ -52,6 +52,7 @@ class TabellioControlpanel(BrowserView):
|
|||
polgroups_path = form.get('polgroupsPath')
|
||||
parlevents_path = form.get('parleventsPath')
|
||||
commissions_path = form.get('commissionsPath')
|
||||
generalagenda_path = form.get('generalagendaPath')
|
||||
|
||||
if not self.errors:
|
||||
self.settings.deputiesPath = deputies_path
|
||||
|
@ -63,6 +64,7 @@ class TabellioControlpanel(BrowserView):
|
|||
self.settings.polgroupsPath = polgroups_path
|
||||
self.settings.parleventsPath = parlevents_path
|
||||
self.settings.commissionsPath = commissions_path
|
||||
self.settings.generalagendaPath = generalagenda_path
|
||||
|
||||
if 'form.button.SessionsSave' in form:
|
||||
self.authorize()
|
||||
|
|
|
@ -43,6 +43,10 @@ class ITabellioSettings(Interface):
|
|||
title=_('polgroups_path', 'Political Groups Path'),
|
||||
required=False)
|
||||
|
||||
generalagendaPath = schema.TextLine(
|
||||
title=_('generalagenda_path', 'General Agenda Path'),
|
||||
required=False)
|
||||
|
||||
sessions = schema.Text(
|
||||
title=_('sessions', 'Sessions'),
|
||||
required=False)
|
||||
|
|
Reference in New Issue