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/Form/Device/PreferenceAPI.pm

29 lines
811 B

package NGCP::Panel::Form::Device::PreferenceAPI;
use HTML::FormHandler::Moose;
extends 'NGCP::Panel::Form::Device::Preference';
has_field 'autoprov_device_id' => (
type => 'PosInteger',
#see comment for the dev_pref
required => 0,
label => 'Model id for the dynamic device model preferences',
);
has_field 'reseller_id' => (
type => 'PosInteger',
#see comment for the dev_pref
required => 0,
label => 'Reseller id for the dynamic device model preferences',
);
has_field 'dev_pref' => (
type => 'Boolean',
label => 'This is device model preference.',
#until we don't create any other preference type as dynamic preference, we can keep this field required, to don't create unnecessary form validation code
required => 1,
);
1;
# vim: set tabstop=4 expandtab: