Select an email template for subscriber creation and for password reset when creating or editing a customer. WIP, not compiling yet by intention.ipeshinskaya/InvoiceTemplate5
parent
02610faa68
commit
507402c561
@ -0,0 +1,24 @@
|
||||
package NGCP::Panel::Field::EmailTemplate;
|
||||
use HTML::FormHandler::Moose;
|
||||
extends 'HTML::FormHandler::Field::Compound';
|
||||
|
||||
has_field 'id' => (
|
||||
type => '+NGCP::Panel::Field::DataTable',
|
||||
#label => 'Email Template',
|
||||
do_label => 0,
|
||||
do_wrapper => 0,
|
||||
required => 1,
|
||||
template => 'helpers/datatables_field.tt',
|
||||
ajax_src => '/emailtemplate/ajax',
|
||||
table_titles => ['#', 'Reseller', 'Name', 'Subject'],
|
||||
table_fields => ['id', 'reseller_name', 'name', 'subject'],
|
||||
);
|
||||
|
||||
has_field 'create' => (
|
||||
type => 'Button',
|
||||
do_label => 0,
|
||||
value => 'Create Email Template',
|
||||
element_class => [qw/btn btn-tertiary pull-right/],
|
||||
);
|
||||
|
||||
1;
|
||||
Loading…
Reference in new issue