parent
06facd90c9
commit
0045d2f1dc
@ -1,26 +0,0 @@
|
||||
package NGCP::Panel::Field::CustomerContract;
|
||||
use HTML::FormHandler::Moose;
|
||||
extends 'HTML::FormHandler::Field::Compound';
|
||||
|
||||
has_field 'id' => (
|
||||
type => '+NGCP::Panel::Field::DataTable',
|
||||
label => 'Contract',
|
||||
do_label => 0,
|
||||
do_wrapper => 0,
|
||||
required => 1,
|
||||
template => 'share/templates/helpers/datatables_field.tt',
|
||||
ajax_src => '/customer/ajax_contract',
|
||||
table_titles => ['#', 'Contact #', 'External #', 'Status'],
|
||||
table_fields => ['id', 'contact.id', 'external_id', 'status'],
|
||||
);
|
||||
|
||||
has_field 'create' => (
|
||||
type => 'Button',
|
||||
label => 'or',
|
||||
value => 'Create Contract',
|
||||
element_class => [qw/btn btn-tertiary/],
|
||||
);
|
||||
|
||||
1;
|
||||
|
||||
# vim: set tabstop=4 expandtab:
|
@ -1,18 +0,0 @@
|
||||
package NGCP::Panel::Field::CustomerStatusSelect;
|
||||
use Moose;
|
||||
extends 'HTML::FormHandler::Field::Select';
|
||||
|
||||
sub build_options {
|
||||
my ($self) = @_;
|
||||
|
||||
return [
|
||||
{ label => 'Select...', value => '' },
|
||||
{ label => 'active', value => 'active' },
|
||||
{ label => 'locked', value => 'locked' },
|
||||
{ label => 'terminated', value => 'terminated' },
|
||||
];
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set tabstop=4 expandtab:
|
Loading…
Reference in new issue