From 7b91e9e164789698ff612a84742ee8281148c928 Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Wed, 10 Jul 2024 10:29:11 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07644=20-=20Add=20Brand=20logo=20and=20Mo?= =?UTF-8?q?del=20picture=20(#646)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add Brand logo and Model picture * Add dictionary items for new attributes * Add Model picture to summary card --- .../datamodel.itop-config-mgmt.xml | 42 +++++++++++++++++-- .../dictionaries/en.dict.itop-config-mgmt.php | 4 ++ 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml b/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml index 29298ca9fe..e5f341eb1e 100755 --- a/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml +++ b/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml @@ -4491,6 +4491,9 @@ + + logo + @@ -4509,6 +4512,13 @@ + PhysicalDevice brand_id @@ -4525,9 +4535,12 @@ 10 - + + + 30 + @@ -4544,6 +4557,13 @@ + + + + 10 + + + @@ -4564,6 +4584,9 @@ + + picture + @@ -4596,6 +4619,13 @@ brand_id name + + 256 + 256 + 512 + 512 + true + label @@ -4678,12 +4708,15 @@ 20 - + 30 - + 40 + + 50 + @@ -4717,6 +4750,9 @@ 20 + + 30 + diff --git a/datamodels/2.x/itop-config-mgmt/dictionaries/en.dict.itop-config-mgmt.php b/datamodels/2.x/itop-config-mgmt/dictionaries/en.dict.itop-config-mgmt.php index 104033689d..db38b6e5df 100644 --- a/datamodels/2.x/itop-config-mgmt/dictionaries/en.dict.itop-config-mgmt.php +++ b/datamodels/2.x/itop-config-mgmt/dictionaries/en.dict.itop-config-mgmt.php @@ -1092,6 +1092,8 @@ Dict::Add('EN US', 'English', 'English', array( Dict::Add('EN US', 'English', 'English', array( 'Class:Brand' => 'Brand', 'Class:Brand+' => '', + 'Class:Brand/Attribute:logo' => 'Logo', + 'Class:Brand/Attribute:logo+' => '', 'Class:Brand/Attribute:physicaldevices_list' => 'Physical devices', 'Class:Brand/Attribute:physicaldevices_list+' => 'All the physical devices corresponding to this brand', 'Class:Brand/UniquenessRule:name+' => 'The name must be unique', @@ -1110,6 +1112,8 @@ Dict::Add('EN US', 'English', 'English', array( 'Class:Model/Attribute:brand_id+' => '', 'Class:Model/Attribute:brand_name' => 'Brand name', 'Class:Model/Attribute:brand_name+' => '', + 'Class:Model/Attribute:picture' => 'Picture', + 'Class:Model/Attribute:picture+' => '', 'Class:Model/Attribute:type' => 'Device type', 'Class:Model/Attribute:type+' => '', 'Class:Model/Attribute:type/Value:PowerSource' => 'Power Source',