Temp. fix for template helper path.

For now, use absolute path to make it work in real environments.
agranig/1_0_subfix
Andreas Granig 12 years ago
parent 0dcf4826df
commit 440afcedd4

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '/billing/ajax',
table_titles => ['#', 'Profile'],
table_fields => ['id', 'name'],

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '../zones/ajax', # /billing/<id>/zones/ajax
table_titles => ['#', 'Zone', 'Zone Detail'],
table_fields => ['id', 'zone', 'detail'],

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '/contact/ajax',
table_titles => ['#', 'Reseller', 'First Name', 'Last Name', 'Email'],
table_fields => ['id', 'reseller_name', 'firstname', 'lastname', 'email'],

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '/contract/peering/ajax',
table_titles => ['#', 'Status', 'Billing Profile'],
table_fields => ['id', 'status', 'billing_mappings_billing_profile_name'],

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '/contract/customer/ajax',
table_titles => ['#', 'Reseller', 'Contact Email', 'External #', 'Status'],
table_fields => ['id', 'contact_reseller_name', 'contact_email', 'external_id', 'status'],

@ -6,7 +6,8 @@ extends 'HTML::FormHandler::Field';
has '+widget' => (default => ''); # leave this empty, as there is no widget ...
has 'template' => ( isa => 'Str',
is => 'rw',
default => 'share/templates/helpers/datatables_field.tt' );
# TODO: not found in real environment!
default => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt' );
has 'ajax_src' => ( isa => 'Str', is => 'rw' );
has 'table_fields' => ( isa => 'ArrayRef', is => 'rw' );
has 'table_titles' => ( isa => 'ArrayRef', is => 'rw' );

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '/domain/ajax',
table_titles => ['#', 'Reseller', 'Domain'],
table_fields => ['id', 'domain_resellers_reseller_name', 'domain'],

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '/reseller/ajax',
table_titles => ['#', 'Name', 'Contract #', 'Status'],
table_fields => ['id', 'name', 'contract_id', 'status'],

@ -8,7 +8,7 @@ has_field 'id' => (
do_label => 0,
do_wrapper => 0,
required => 1,
template => 'share/templates/helpers/datatables_field.tt',
template => '/usr/share/ngcp-panel/templates/helpers/datatables_field.tt',
ajax_src => '/reseller/ajax_contract',
table_titles => ['#', 'Contact Email', 'External #', 'Status'],
table_fields => ['id', 'contact_email', 'external_id', 'status'],

Loading…
Cancel
Save