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/Topup/VoucherAPI.pm

48 lines
1.1 KiB

package NGCP::Panel::Form::Topup::VoucherAPI;
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 'id' => (
type => 'Hidden'
);
has_field 'subscriber_id' => (
type => 'PosInteger',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['The subscriber for which to topup the balance.']
},
);
has_field 'code' => (
type => 'Text',
required => 1,
maxlength => 128,
element_attr => {
rel => ['tooltip'],
title => ['The voucher code for the topup.']
},
);
has_field 'request_token' => (
type => 'Text',
maxlength => 255,
element_attr => {
rel => ['tooltip'],
title => ['An external ID to identify the top-up request in the top-up log.']
},
required => 0,
);
1;
# vim: set tabstop=4 expandtab: