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/Meta.pm

97 lines
2.3 KiB

package NGCP::Panel::Form::Voicemail::Meta;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler';
use HTML::FormHandler::Widget::Block::Bootstrap;
has '+widget_wrapper' => ( default => 'Bootstrap' );
has_field 'submitid' => ( type => 'Hidden' );
sub build_render_list {[qw/submitid fields actions/]}
sub build_form_element_class { [qw/form-horizontal/] }
has_field 'subscriber_id' => (
type => 'PosInteger',
label => 'Subscriber ID',
required => 0,
element_attr => {
rel => ['tooltip'],
title => ['The subscriber id the message belongs to.']
},
);
has_field 'duration' => (
type => 'PosInteger',
label => 'Duration',
required => 0,
element_attr => {
rel => ['tooltip'],
title => ['The duration of the message.']
},
);
has_field 'time' => (
type => 'Text',
label => 'Time',
required => 0,
element_attr => {
rel => ['tooltip'],
title => ['The time the message was recorded.']
},
);
has_field 'caller' => (
type => 'Text',
label => 'Caller',
required => 0,
element_attr => {
rel => ['tooltip'],
title => ['The caller ID who left the message.']
},
);
has_field 'folder' => (
type => 'Select',
label => 'Folder',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['The folder the message is currently in (one of INBOX, Old, Work, Friends, Family, Cust1-Cust6)']
},
options => [
{ label => 'INBOX', value => 'INBOX' },
{ label => 'Old', value => 'Old' },
{ label => 'Work', value => 'Work' },
{ label => 'Friends', value => 'Friends' },
{ label => 'Family', value => 'Family' },
{ label => 'Cust1', value => 'Cust1' },
{ label => 'Cust2', value => 'Cust2' },
{ label => 'Cust3', value => 'Cust3' },
{ label => 'Cust4', value => 'Cust4' },
{ label => 'Cust5', value => 'Cust5' },
{ label => 'Cust6', value => 'Cust6' },
]
);
has_field 'save' => (
type => 'Submit',
value => 'Save',
element_class => [qw/btn btn-primary/],
label => '',
);
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/folder/],
);
has_block 'actions' => (
tag => 'div',
class => [qw/modal-footer/],
render_list => [qw/save/],
);
1;
# vim: set tabstop=4 expandtab: