diff --git a/lib/NGCP/Panel/Controller/API/Root.pm b/lib/NGCP/Panel/Controller/API/Root.pm index 00091997db..963a50d4eb 100644 --- a/lib/NGCP/Panel/Controller/API/Root.pm +++ b/lib/NGCP/Panel/Controller/API/Root.pm @@ -363,7 +363,7 @@ sub get_field_poperties :Private{ unless (defined $desc && length($desc) > 0) { $desc = 'to be described ...'; } - return { name => $name, description => $desc, types => \@types, type_original => $field->type }; + return { name => $name, description => $desc, types => \@types, type_original => $field->type, readonly => $field->readonly }; } sub get_collection_properties { my ($self, $form) = @_; diff --git a/lib/NGCP/Panel/Form/CFDestinationSetAPI.pm b/lib/NGCP/Panel/Form/CFDestinationSetAPI.pm index 7b8093beda..dd408324da 100644 --- a/lib/NGCP/Panel/Form/CFDestinationSetAPI.pm +++ b/lib/NGCP/Panel/Form/CFDestinationSetAPI.pm @@ -54,6 +54,7 @@ has_field 'destinations.destination' => ( has_field 'destinations.simple_destination' => ( type => 'Text', label => 'A simple destination format, e.g. "4312345" if it is a number, or "user@domain" if it is a URI.', + readonly => 1, ); has_field 'destinations.timeout' => ( diff --git a/lib/NGCP/Panel/Form/Contract/CustomerAPI.pm b/lib/NGCP/Panel/Form/Contract/CustomerAPI.pm index cc1e7c39c2..0be84c78c0 100644 --- a/lib/NGCP/Panel/Form/Contract/CustomerAPI.pm +++ b/lib/NGCP/Panel/Form/Contract/CustomerAPI.pm @@ -116,7 +116,7 @@ has_field 'create_timestamp' => ( readonly => 1, element_attr => { rel => ['tooltip'], - title => ['Readonly. The datetime (YYYY-MM-DD HH:mm:ss) of the creation.'] + title => ['The datetime (YYYY-MM-DD HH:mm:ss) of the creation.'] }, ); @@ -126,7 +126,7 @@ has_field 'activate_timestamp' => ( readonly => 1, element_attr => { rel => ['tooltip'], - title => ['Readonly. The datetime (YYYY-MM-DD HH:mm:ss) of the activation.'] + title => ['The datetime (YYYY-MM-DD HH:mm:ss) of the activation.'] }, ); @@ -136,7 +136,7 @@ has_field 'modify_timestamp' => ( readonly => 1, element_attr => { rel => ['tooltip'], - title => ['Readonly. The datetime (YYYY-MM-DD HH:mm:ss) of the modification.'] + title => ['The datetime (YYYY-MM-DD HH:mm:ss) of the modification.'] }, ); @@ -146,7 +146,7 @@ has_field 'terminate_timestamp' => ( readonly => 1, element_attr => { rel => ['tooltip'], - title => ['Readonly. The datetime (YYYY-MM-DD HH:mm:ss) of the termination.'] + title => ['The datetime (YYYY-MM-DD HH:mm:ss) of the termination.'] }, ); diff --git a/share/templates/api/root/collection.tt b/share/templates/api/root/collection.tt index bd1a14e868..62e08036f3 100644 --- a/share/templates/api/root/collection.tt +++ b/share/templates/api/root/collection.tt @@ -92,7 +92,7 @@ See description how to obtain properties, if any. [% ELSE -%] [% END -%]