From 76c88a894636f303e7e6698f1fea2bbf570f9393 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Mon, 30 Mar 2015 13:00:57 +0300 Subject: [PATCH] MT#11147 Add fields documentation For connectable_models, extensions_num, reseller_id Change-Id: I3486fdb5e69d0d13914d319bcc68434465a72ea2 --- lib/NGCP/Panel/Form/Device/Model.pm | 14 +++++++++++--- lib/NGCP/Panel/Form/Device/ModelAdmin.pm | 4 ++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/NGCP/Panel/Form/Device/Model.pm b/lib/NGCP/Panel/Form/Device/Model.pm index 9802666999..82e3a6fa55 100644 --- a/lib/NGCP/Panel/Form/Device/Model.pm +++ b/lib/NGCP/Panel/Form/Device/Model.pm @@ -41,9 +41,13 @@ has_field 'type' => ( ); has_field 'extensions_num' => ( type => 'Integer', - label => 'Max extensions number', + label => 'Number of extension modules', default => '0', wrapper_class => [qw/ngcp-devicetype ngcp-devicetype-phone/], + element_attr => { + rel => ['tooltip'], + title => ['The max number of extension modules which can be attached to this device model.'], + }, ); has_field 'model' => ( @@ -81,6 +85,10 @@ has_field 'connectable_models' => ( ajax_src => '/device/model/ajax', table_titles => ['#', 'Type', 'Vendor', 'Model'], table_fields => ['id', 'type', 'vendor', 'model'], + element_attr => { + rel => ['tooltip'], + title => ['The extension modules which can be attached to this device model.'], + }, ); @@ -298,7 +306,7 @@ has_field 'bootstrap_config_http_sync_params' => ( label => 'Bootstrap Sync Parameters', default => '[% server.uri %]/$MA', wrapper_class => [qw/ngcp-devicetype ngcp-devicetype-phone ngcp-bootstrap-config ngcp-bootstrap-config-http/], - element_attr => { + element_attr => { rel => ['tooltip'], title => ['The parameters appended to the sync URI when setting the provisioning server, e.g. server.uri/$MA. The server.uri variable is automatically expanded during provisioning time.'], }, @@ -375,7 +383,7 @@ has_field 'bootstrap_config_redirect_polycom_profile' => ( label => 'Polycom profile', default => '', wrapper_class => [qw/ngcp-devicetype ngcp-devicetype-phone ngcp-bootstrap-config ngcp-bootstrap-config-redirect_polycom/], - element_attr => { + element_attr => { rel => ['tooltip'], title => ['Preliminary created in ZeroTouch Provisioning console Polycom ZTP profile. Refer to documentation.'], }, diff --git a/lib/NGCP/Panel/Form/Device/ModelAdmin.pm b/lib/NGCP/Panel/Form/Device/ModelAdmin.pm index 4820352e1d..9d9637031c 100644 --- a/lib/NGCP/Panel/Form/Device/ModelAdmin.pm +++ b/lib/NGCP/Panel/Form/Device/ModelAdmin.pm @@ -14,6 +14,10 @@ sub build_form_element_class {[qw(form-horizontal)]} has_field 'reseller' => ( type => '+NGCP::Panel::Field::Reseller', validate_when_empty => 1, + element_attr => { + rel => ['tooltip'], + title => ['The reseller id this device model belongs to.'], + }, ); has_field 'save' => (