package NGCP::Panel::Form::Number::SubadminAPI; use HTML::FormHandler::Moose; extends 'HTML::FormHandler'; has_field 'cc' => ( type => '+NGCP::Panel::Field::PosInteger', element_attr => { rel => ['tooltip'], title => ['Country Code, e.g. 1 for US or 43 for Austria (read-only)'] }, ); has_field 'ac' => ( type => '+NGCP::Panel::Field::PosInteger', element_attr => { rel => ['tooltip'], title => ['Area Code, e.g. 212 for NYC or 1 for Vienna (read-only)'] }, ); has_field 'sn' => ( type => '+NGCP::Panel::Field::PosInteger', element_attr => { rel => ['tooltip'], title => ['Subscriber Number, e.g. 12345678 (read-only)'] }, ); has_field 'subscriber_id' => ( type => 'PosInteger', required => 1, element_attr => { rel => ['tooltip'], title => ['The id of the subscriber the number is assigned to.'] }, ); has_field 'is_primary' => ( type => 'Boolean', element_attr => { rel => ['tooltip'], title => ['Whether the number is a primary number or not (read-only).'] }, ); has_field 'is_devid' => ( type => 'Boolean', element_attr => { rel => ['tooltip'], title => ['When selected, a call to this alias number is only sent to registered devices indicating either the alias number or the optional alternative device id during registration in the Display-Name.'] }, ); has_field 'devid_alias' => ( type => 'Text', required => 0, maxlength => 127, element_attr => { rel => ['tooltip'], title => ['An optional device id to be configured on a phone, which is associated with this alias number (e.g. "softphone").'] }, ); 1; # vim: set tabstop=4 expandtab: