- move the "group" field from Rule.pm/InboundRule.pm into
RuleEditAdmin.pm/InboundRuleEditAdmin.pm respectively
- the "group" field is used only by the GUI rule edit forms
Change-Id: I1c1ebf883848e90c9412784c8d8610fcbebc4331
changes/86/12686/4
parent
cdd054ef78
commit
b831d2fd0b
@ -0,0 +1,24 @@
|
||||
package NGCP::Panel::Form::Peering::InboundRuleEditAdmin;
|
||||
|
||||
use HTML::FormHandler::Moose;
|
||||
extends 'NGCP::Panel::Form::Peering::InboundRule';
|
||||
|
||||
has_field 'group' => (
|
||||
type => '+NGCP::Panel::Field::PeeringGroupSelect',
|
||||
label => 'Peering Group',
|
||||
not_nullable => 1,
|
||||
required => 1,
|
||||
element_attr => {
|
||||
rel => ['tooltip'],
|
||||
title => ['A peering group the rule belongs to.']
|
||||
},
|
||||
);
|
||||
|
||||
has_block 'fields' => (
|
||||
tag => 'div',
|
||||
class => [qw/modal-body/],
|
||||
render_list => [qw/field pattern reject_code reject_reason enabled group/],
|
||||
);
|
||||
|
||||
1;
|
||||
# vim: set tabstop=4 expandtab:
|
||||
@ -0,0 +1,47 @@
|
||||
package NGCP::Panel::Form::Peering::RuleEditAdmin;
|
||||
|
||||
use HTML::FormHandler::Moose;
|
||||
extends 'NGCP::Panel::Form::Peering::Rule';
|
||||
|
||||
has_field 'group' => (
|
||||
type => '+NGCP::Panel::Field::PeeringGroupSelect',
|
||||
label => 'Peering Group',
|
||||
not_nullable => 1,
|
||||
required => 1,
|
||||
element_attr => {
|
||||
rel => ['tooltip'],
|
||||
title => ['A peering group the rule belongs to.']
|
||||
},
|
||||
);
|
||||
|
||||
has_block 'fields' => (
|
||||
tag => 'div',
|
||||
class => [qw/modal-body/],
|
||||
render_list => [qw/callee_prefix callee_pattern caller_pattern description enabled group/],
|
||||
);
|
||||
|
||||
1;
|
||||
__END__
|
||||
|
||||
=head1 NAME
|
||||
|
||||
NGCP::Panel::Form::Peering::RuleEdit
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
-
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Irina Peshinskaya
|
||||
|
||||
=head1 LICENSE
|
||||
|
||||
This library is free software. You can redistribute it and/or modify
|
||||
it under the same terms as Perl itself.
|
||||
|
||||
=cut
|
||||
|
||||
# vim: set tabstop=4 expandtab:
|
||||
Loading…
Reference in new issue