* add Form::Contact::AdminAPI that uses reseller_id field
instead of reseller for better error message
* update_contact() fix reseller_id validation for admin roles
* update_contact() copy reseller_id from $old_resource for
reseller roles so that further reseller_id checks can pass.
Change-Id: Ic9559a944265f5c8bceada6077fcf8e14d6bc5d4
(cherry picked from commit b8cd29ce32)
mr13.4
parent
d442a26d07
commit
2a9735281c
@ -0,0 +1,27 @@
|
||||
package NGCP::Panel::Form::Contact::AdminAPI;
|
||||
|
||||
use HTML::FormHandler::Moose;
|
||||
extends 'NGCP::Panel::Form::Contact::Reseller';
|
||||
|
||||
has_field 'reseller_id' => (
|
||||
type => 'PosInteger',
|
||||
required => 1,
|
||||
label => 'Contact reseller id',
|
||||
element_attr => {
|
||||
rel => ['tooltip'],
|
||||
title => ['Contact entry reseller id'],
|
||||
},
|
||||
);
|
||||
|
||||
has_block 'fields' => (
|
||||
tag => 'div',
|
||||
class => [qw/modal-body/],
|
||||
render_list => [qw/reseller_id firstname lastname email company street postcode city
|
||||
country iban bic bankname vatnum comregnum phonenumber mobilenumber faxnumber
|
||||
timezone
|
||||
gpp0 gpp1 gpp2 gpp3 gpp4 gpp5 gpp6 gpp7 gpp8 gpp9
|
||||
/],
|
||||
);
|
||||
|
||||
1;
|
||||
# vim: set tabstop=4 expandtab:
|
||||
Loading…
Reference in new issue