parent
9274a5c93d
commit
e953697c8f
@ -0,0 +1,48 @@
|
||||
package NGCP::Panel::Form::BillingZone;
|
||||
|
||||
use HTML::FormHandler::Moose;
|
||||
extends 'HTML::FormHandler';
|
||||
use Moose::Util::TypeConstraints;
|
||||
|
||||
use HTML::FormHandler::Widget::Block::Bootstrap;
|
||||
|
||||
has '+widget_wrapper' => ( default => 'Bootstrap' );
|
||||
sub build_render_list {[qw/fields actions/]}
|
||||
sub build_form_element_class { [qw/form-horizontal/] }
|
||||
|
||||
has_field 'id' => (
|
||||
type => 'Hidden'
|
||||
);
|
||||
|
||||
has_field 'zone' => (
|
||||
type => 'Text',
|
||||
maxlength => 127,
|
||||
required => 1,
|
||||
);
|
||||
|
||||
has_field 'detail' => (
|
||||
type => 'Text',
|
||||
maxlength => 127,
|
||||
);
|
||||
|
||||
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/id zone detail /],
|
||||
);
|
||||
|
||||
has_block 'actions' => (
|
||||
tag => 'div',
|
||||
class => [qw/modal-footer/],
|
||||
render_list => [qw/save/],
|
||||
);
|
||||
|
||||
1;
|
||||
# vim: set tabstop=4 expandtab:
|
@ -0,0 +1,19 @@
|
||||
[% META title = 'Billing Zones' -%]
|
||||
[%
|
||||
helper.name = 'Billing Zones';
|
||||
helper.messages = messages;
|
||||
helper.column_titles = [ '#', 'Zone', 'Zone Detail' ];
|
||||
helper.column_fields = [ 'id', 'zone', 'detail' ];
|
||||
|
||||
helper.close_target = close_target;
|
||||
helper.create_flag = create_flag;
|
||||
helper.edit_flag = edit_fee_flag;
|
||||
helper.form_object = form;
|
||||
helper.has_edit = has_edit;
|
||||
helper.has_preferences = has_preferences;
|
||||
helper.ajax_uri = c.uri_for( c.action, c.req.captures, 'ajax' );
|
||||
helper.base_uri = c.uri_for( profile.id, 'zones');
|
||||
|
||||
PROCESS 'helpers/datatables.tt';
|
||||
-%]
|
||||
[% # vim: set tabstop=4 syntax=html expandtab: -%]
|
Loading…
Reference in new issue