add setting for audio files path
This commit is contained in:
parent
ca47a9824d
commit
69a8ca390f
|
@ -355,6 +355,21 @@
|
|||
/>
|
||||
</div>
|
||||
|
||||
<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 class="formControls">
|
||||
<input
|
||||
type="submit"
|
||||
|
|
|
@ -91,6 +91,7 @@ class TabellioControlpanel(BrowserView):
|
|||
submitted = True
|
||||
self.settings.ical_username = form.get('ical_username')
|
||||
self.settings.ical_password = form.get('ical_password')
|
||||
self.settings.audiofiles_path = form.get('audiofiles_path')
|
||||
|
||||
if submitted and not self.errors:
|
||||
self._setup()
|
||||
|
|
|
@ -70,3 +70,6 @@ class ITabellioSettings(Interface):
|
|||
title=_('ical_password', 'ICal Password'),
|
||||
required=False)
|
||||
|
||||
audiofiles_path = schema.TextLine(
|
||||
title=_(u'Audio Files Path'),
|
||||
required=False)
|
||||
|
|
Reference in New Issue