|
|
|
@ -41,9 +41,13 @@ has_field 'type' => (
|
|
|
|
|
);
|
|
|
|
|
has_field 'extensions_num' => (
|
|
|
|
|
type => 'Integer',
|
|
|
|
|
label => 'Max extensions number',
|
|
|
|
|
label => 'Number of extension modules',
|
|
|
|
|
default => '0',
|
|
|
|
|
wrapper_class => [qw/ngcp-devicetype ngcp-devicetype-phone/],
|
|
|
|
|
element_attr => {
|
|
|
|
|
rel => ['tooltip'],
|
|
|
|
|
title => ['The max number of extension modules which can be attached to this device model.'],
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
has_field 'model' => (
|
|
|
|
@ -81,6 +85,10 @@ has_field 'connectable_models' => (
|
|
|
|
|
ajax_src => '/device/model/ajax',
|
|
|
|
|
table_titles => ['#', 'Type', 'Vendor', 'Model'],
|
|
|
|
|
table_fields => ['id', 'type', 'vendor', 'model'],
|
|
|
|
|
element_attr => {
|
|
|
|
|
rel => ['tooltip'],
|
|
|
|
|
title => ['The extension modules which can be attached to this device model.'],
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|