Skip to content

Commit

Permalink
[dev] Added field for customize header and footer logos + updated CHA…
Browse files Browse the repository at this point in the history
…NGES
  • Loading branch information
eikichi18 committed Mar 13, 2024
1 parent cbfa37f commit 4bb0055
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
3.0.2 (unreleased)
------------------

- Nothing changed yet.
- Added fields for customize header and footer logos in newsletter.
[eikichi18]


3.0.1 (2023-09-06)
Expand Down
21 changes: 21 additions & 0 deletions src/rer/newsletter/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from collective.volto.blocksfield.field import BlocksField
from plone import schema
from plone.app.contenttypes.interfaces import ICollection
from plone.namedfile import field as namedfile
from plone.supermodel import model
from rer.newsletter import _
from zope.interface import Interface
Expand Down Expand Up @@ -117,6 +118,26 @@ class IChannelSchema(model.Schema):
required=False,
)

logo_header_mail = namedfile.NamedBlobImage(
title=_("logo_header_mail", default="Logo header mail"),
description=_(
"description_logo_header_mail",
default="Aggiungi il logo ne inserire nell'header della mail, copia il "
"link e inseriscilo a mano nel campo HTML dell'header"
),
required=False,
)

logo_footer_mail = namedfile.NamedBlobImage(
title=_("logo_footer_mail", default="Logo footer mail"),
description=_(
"description_logo_footer_mail",
default="Aggiungi il logo ne inserire nel footer della mail, copia il "
"link e inseriscilo a mano nel campo HTML del footer"
),
required=False,
)


class IMessage(Interface):
"""Marker interface that define a message"""
Expand Down

0 comments on commit 4bb0055

Please sign in to comment.