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/Voicemail/GreetingAPI.pm

45 lines
1.1 KiB

package NGCP::Panel::Form::Voicemail::GreetingAPI;
use HTML::FormHandler::Moose;
extends 'NGCP::Panel::Form::Voicemail::Greeting';
use HTML::FormHandler::Widget::Block::Bootstrap;
has '+enctype' => ( default => 'multipart/form-data');
has '+widget_wrapper' => ( default => 'Bootstrap' );
has 'validation_exceptions' => ( is => 'rw', isa => 'ArrayRef', default => sub {[qw/subscriber_id/];} );
has_field 'submitid' => ( type => 'Hidden' );
has_field 'dir' => (
type => 'Select',
required => 1,
options => [
{ value => 'unavail', label => 'Unavailable' },
{ value => 'busy', label => 'Busy' },
],
element_attr => {
rel => ['tooltip'],
title => ['Greeting type.'],
},
);
has_field 'subscriber_id' => (
type => 'PosInteger',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['Subscriber owning the greeting.'],
},
);
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/greetingfile dir subscriber_id/],
);
1;
# vim: set tabstop=4 expandtab: