You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/lib/NGCP/Panel/Field/CustomerContract.pm

27 lines
707 B

package NGCP::Panel::Field::CustomerContract;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler::Field::Compound';
has_field 'id' => (
type => '+NGCP::Panel::Field::DataTable',
label => 'Customer',
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
ajax_src => '/contract/customer/ajax',
table_titles => ['#', 'Contact #', 'External #', 'Status'],
table_fields => ['id', 'contact_id', 'external_id', 'status'],
);
has_field 'create' => (
type => 'Button',
do_label => 0,
value => 'Create Contract',
element_class => [qw/btn btn-tertiary pull-right/],
);
1;
# vim: set tabstop=4 expandtab: