Change-Id: I6fc8fc49b5c7dc7d6ca78c4dbc1ab75f4891437achanges/71/12271/16
parent
760a576eb1
commit
35bad60d2e
@ -0,0 +1,28 @@
|
||||
package NGCP::Panel::Field::ContactWithReseller;
|
||||
use Moose;
|
||||
use HTML::FormHandler::Moose;
|
||||
extends 'HTML::FormHandler::Field::Compound';
|
||||
|
||||
has_field 'id' => (
|
||||
type => '+NGCP::Panel::Field::DataTable',
|
||||
label => 'Contact',
|
||||
do_label => 0,
|
||||
do_wrapper => 0,
|
||||
required => 1,
|
||||
template => 'helpers/datatables_field.tt',
|
||||
ajax_src => '/contact/ajax_reseller',
|
||||
table_titles => ['#', 'Reseller', 'First Name', 'Last Name', 'Email'],
|
||||
table_fields => ['id', 'reseller_name', 'firstname', 'lastname', 'email'],
|
||||
);
|
||||
|
||||
has_field 'create' => (
|
||||
type => 'Button',
|
||||
do_label => 0,
|
||||
value => 'Create Contact',
|
||||
element_class => [qw/btn btn-tertiary pull-right/],
|
||||
);
|
||||
|
||||
no Moose;
|
||||
1;
|
||||
|
||||
# vim: set tabstop=4 expandtab:
|
||||
Loading…
Reference in new issue