Projet

Général

Profil

0002-backoffice-add-variables-table-after-mail-template-f.patch

Frédéric Péters, 08 avril 2020 10:30

Télécharger (1,19 ko)

Voir les différences:

Subject: [PATCH 2/2] backoffice: add variables table after mail template form
 (#41316)

 wcs/admin/mail_templates.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
wcs/admin/mail_templates.py
14 14
# You should have received a copy of the GNU General Public License
15 15
# along with this program; if not, see <http://www.gnu.org/licenses/>.
16 16

  
17
from quixote import get_response, redirect
17
from quixote import get_publisher, get_response, redirect
18 18
from quixote.directory import Directory
19 19
from quixote.html import TemplateIO, htmltext
20 20

  
......
144 144
        r = TemplateIO(html=True)
145 145
        r += htmltext('<h2>%s</h2>') % _('Edit Mail Template')
146 146
        r += form.render()
147
        r += get_publisher().substitutions.get_substitution_html_table()
148

  
147 149
        return r.getvalue()
148 150

  
149 151
    def delete(self):
150
-