Add invoice logo

This commit is contained in:
Raphael Michel
2017-01-21 17:44:47 +01:00
parent ad73c0e05b
commit 598e7c5637
5 changed files with 24 additions and 5 deletions

View File

@@ -361,6 +361,13 @@ class InvoiceSettingsForm(SettingsForm):
label=_("Invoice language"),
choices=[('__user__', _('The user\'s language'))] + settings.LANGUAGES,
)
invoice_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 not show your events name and date on the invoice'
'the page header. We will show your logo with a maximal height and width of 2.5 cm.')
)
class MailSettingsForm(SettingsForm):

View File

@@ -17,6 +17,7 @@
{% bootstrap_field form.invoice_introductory_text layout="horizontal" %}
{% bootstrap_field form.invoice_additional_text layout="horizontal" %}
{% bootstrap_field form.invoice_footer_text layout="horizontal" %}
{% bootstrap_field form.invoice_logo_image layout="horizontal" %}
</fieldset>
<div class="form-group submit-group">
<button type="submit" class="btn btn-default btn-lg" name="preview" value="preview" formtarget="_blank">