From 3eab769c1ee74ac72dcdefc01183fd59fd33f337 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Fri, 28 Sep 2018 11:40:34 +0200 Subject: [PATCH] TT#33108 add email templates attachment_name field * attachment_name is added to the EmailTemplate form and it is used to define the attachnemt name where applicable Change-Id: Ide6d7aab46fb99ca9c38a34eea9c8db18affc8f9 --- lib/NGCP/Panel/Form/EmailTemplate/Admin.pm | 2 +- lib/NGCP/Panel/Form/EmailTemplate/Reseller.pm | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Form/EmailTemplate/Admin.pm b/lib/NGCP/Panel/Form/EmailTemplate/Admin.pm index 9b6ae92a91..8bc503d8e2 100644 --- a/lib/NGCP/Panel/Form/EmailTemplate/Admin.pm +++ b/lib/NGCP/Panel/Form/EmailTemplate/Admin.pm @@ -12,7 +12,7 @@ has_field 'reseller' => ( has_block 'fields' => ( tag => 'div', class => [qw/modal-body/], - render_list => [qw/reseller name from_email subject body/], + render_list => [qw/reseller name from_email subject body attachment_name/], ); 1; diff --git a/lib/NGCP/Panel/Form/EmailTemplate/Reseller.pm b/lib/NGCP/Panel/Form/EmailTemplate/Reseller.pm index 0db16dad8a..9ffb2a68cf 100644 --- a/lib/NGCP/Panel/Form/EmailTemplate/Reseller.pm +++ b/lib/NGCP/Panel/Form/EmailTemplate/Reseller.pm @@ -52,6 +52,14 @@ This is an automatically generated message. Do not reply. EOS_DEFAULT_TEXT ); +has_field 'attachment_name' => ( + type => 'Text', + label => 'Attachment Name', + required => 0, + maxlength => 255, + default => "", +); + has_field 'save' => ( type => 'Submit', value => 'Save', @@ -62,7 +70,7 @@ has_field 'save' => ( has_block 'fields' => ( tag => 'div', class => [qw/modal-body/], - render_list => [qw/name from_email subject body/], + render_list => [qw/name from_email subject body attachment_name/], ); has_block 'actions' => (