parent
477a9720a4
commit
818716b2cd
@ -0,0 +1,27 @@
|
||||
package NGCP::Panel::Form::SubscriberCFSimple;
|
||||
use HTML::FormHandler::Moose;
|
||||
use HTML::FormHandler::Widget::Block::Bootstrap;
|
||||
use Moose::Util::TypeConstraints;
|
||||
extends 'HTML::FormHandler';
|
||||
|
||||
has '+widget_wrapper' => (default => 'Bootstrap');
|
||||
has_field 'id' => (type => 'Hidden');
|
||||
|
||||
has_field 'destination' => (type => 'Text', required => 1,);
|
||||
has_field 'save' => (type => 'Submit', element_class => [qw(btn btn-primary)],);
|
||||
has_block 'fields' => (
|
||||
tag => 'div',
|
||||
class => [qw(modal-body)],
|
||||
render_list => [qw(destination)],
|
||||
);
|
||||
has_block 'actions' => (tag => 'div', class => [qw(modal-footer)], render_list => [qw(save)],);
|
||||
|
||||
sub build_render_list {
|
||||
return [qw(id fields actions)];
|
||||
}
|
||||
|
||||
sub build_form_element_class {
|
||||
return [qw(form-horizontal)];
|
||||
}
|
||||
|
||||
1;
|
||||
@ -0,0 +1,18 @@
|
||||
package NGCP::Panel::Form::SubscriberCFTSimple;
|
||||
use HTML::FormHandler::Moose;
|
||||
use HTML::FormHandler::Widget::Block::Bootstrap;
|
||||
use Moose::Util::TypeConstraints;
|
||||
extends 'NGCP::Panel::Form::SubscriberCFSimple';
|
||||
|
||||
has_field 'ringtimeout' => (
|
||||
type => 'PosInteger',
|
||||
required => 1,
|
||||
label => 'after ring timeout',
|
||||
);
|
||||
has_block 'fields' => (
|
||||
tag => 'div',
|
||||
class => [qw(modal-body)],
|
||||
render_list => [qw(destination ringtimeout)],
|
||||
);
|
||||
|
||||
1;
|
||||
Loading…
Reference in new issue