ngcp-panel/lib/NGCP/Panel/Form/Sound/SubadminSetAPI.pm

78 lines
1.8 KiB

package NGCP::Panel::Form::Sound::SubadminSetAPI;
use HTML::FormHandler::Moose;
extends 'NGCP::Panel::Form::Sound::LoadDefaultBase';
has_field 'name' => (
type => 'Text',
label => 'Name',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['The name of the sound set'],
},
);
has_field 'description' => (
type => 'Text',
element_attr => {
rel => ['tooltip'],
title => ['The description of the sound set'],
},
);
has_field 'contract_id' => (
type => 'PosInteger',
label => 'Customer',
required => 0,
element_attr => {
rel => ['tooltip'],
title => ['The contract used for this subscriber.']
},
);
has_field 'contract_default' => (
type => 'Boolean',
label => 'Default for Subscribers',
element_attr => {
rel => ['tooltip'],
title => ['If active (and a customer is selected), this sound set is used for all existing and new subscribers within this customer if no specific sound set is specified for the subscribers'],
},
);
has_field 'parent_id' => (
type => 'PosInteger',
label => 'Parent',
required => 0,
element_attr => {
rel => ['tooltip'],
title => ['Parent sound set that is used to substitute missing sound file of the current one.']
},
);
has_field 'parent_name' => (
type => 'Text',
element_attr => {
rel => ['tooltip'],
title => ['Parent sound set name'],
},
);
has_field 'copy_from_default' => (
type => 'Boolean',
label => 'Use system default sound files',
required => 0,
);
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/name description contract_id contract_default parent_id parent_name copy_from_default language loopplay replace_existing/],
);
# TODO: inheritance?
1;