From a2c0914aa0a7ee8ab4a929d2630fb5694371d4b0 Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Wed, 14 Sep 2016 11:43:21 +0200 Subject: [PATCH] TT#2393 add description fields for cf-source-sets Change-Id: I2ad646d522b6ea06c7ce4846cc76f6725691cc51 --- lib/NGCP/Panel/Form/CFSourceSetAPI.pm | 7 +++++-- lib/NGCP/Panel/Form/CallforwardSourceSet.pm | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Form/CFSourceSetAPI.pm b/lib/NGCP/Panel/Form/CFSourceSetAPI.pm index e983ea5fc8..5b352fdfe1 100644 --- a/lib/NGCP/Panel/Form/CFSourceSetAPI.pm +++ b/lib/NGCP/Panel/Form/CFSourceSetAPI.pm @@ -33,8 +33,11 @@ has_field 'sources' => ( rel => ['tooltip'], title => ['An array of sources, each containing the key "source" ' . 'which will be matched against the call\'s anumber to determine ' . - 'whether to apply the callforward or not.', - ] + 'whether to apply the callforward or not. ' . + '"source" is the calling party number in E164 format to match. ' . + 'Shell patterns like 431* or 49123[1-5]67 are possible. ' . + 'Use "anonymous" to match suppressed numbers.', + ], }, ); diff --git a/lib/NGCP/Panel/Form/CallforwardSourceSet.pm b/lib/NGCP/Panel/Form/CallforwardSourceSet.pm index b393042040..5c0f3c6a6f 100644 --- a/lib/NGCP/Panel/Form/CallforwardSourceSet.pm +++ b/lib/NGCP/Panel/Form/CallforwardSourceSet.pm @@ -15,6 +15,10 @@ has_field 'name' => ( label => 'Name', wrapper_class => [qw/hfh-rep-field/], required => 1, + element_attr => { + rel => ['tooltip'], + title => ['The unique name of the source set. Arbitrary text'], + }, ); has_field 'source' => ( @@ -39,6 +43,11 @@ has_field 'source.source' => ( required => 1, do_label => 1, wrapper_class => [qw/hfh-rep-field/], + element_attr => { + rel => ['tooltip'], + title => ['The calling party number in E164 format to match. Shell patterns like 431* or 49123~~~[1-5~~~]67 are possible. ' . + 'Use "anonymous" to match suppressed numbers.'], + }, ); has_field 'source.rm' => (