Added custom logo support

This commit is contained in:
Raphael Michel
2016-07-29 20:53:19 +02:00
parent d32c1bd9c8
commit 4ab819aeed
8 changed files with 37 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ from pytz import common_timezones
from pretix.base.forms import I18nModelForm, SettingsForm
from pretix.base.i18n import I18nFormField, I18nTextarea
from pretix.base.models import Event
from pretix.control.forms import ExtFileField
class EventCreateForm(I18nModelForm):
@@ -359,6 +360,13 @@ class DisplaySettingsForm(SettingsForm):
message=_('Please enter the hexadecimal code of a color, e.g. #990000.'))
]
)
logo_image = ExtFileField(
label=_('Logo image'),
ext_whitelist=(".png", ".jpg", ".svg", ".gif", ".jpeg"),
required=False,
help_text=_('If you provide a logo image, we will by default not show your events name and date '
'in the page header. We will show your logo with a maximal height of 120 pixels.')
)
class TicketSettingsForm(SettingsForm):