diff --git a/datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_mosaic.html.twig b/datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_mosaic.html.twig index 728ef0fc42..6187119cdd 100644 --- a/datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_mosaic.html.twig +++ b/datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_mosaic.html.twig @@ -187,7 +187,7 @@ // - Adding stub div var textElem = $('
').addClass('mosaic-item-text'); // - Adding image - if( (item.image !== undefined) && (item.image !== '') ) + if( (item.image !== undefined) && (item.image !== '') && (item.image !== null) ) { iItemFlags += 4; aElem.append( $('
').addClass('mosaic-item-image').append( $('').attr('src', item.image) ) ); diff --git a/datamodels/2.x/itop-portal-base/portal/web/css/portal.css b/datamodels/2.x/itop-portal-base/portal/web/css/portal.css index c4d1cd95a1..b1894412ca 100644 --- a/datamodels/2.x/itop-portal-base/portal/web/css/portal.css +++ b/datamodels/2.x/itop-portal-base/portal/web/css/portal.css @@ -628,10 +628,19 @@ table .group-actions { border-radius: 0px 0px 4px 4px; font-size: 1em; } -/****************/ -/* - Mosaic mode */ -/* Note: Some of the CSS is factorised in the "Tree mode" part */ -/****************/ +/****************************************************************/ +/* - Mosaic mode */ +/* */ +/* Note: Some of the CSS is factorised in the "Tree mode" part */ +/* */ +/* Note: .mosaic-item-layout-x classes are for different */ +/* presentation modes. Like in binary, add the values to know */ +/* which class to use. */ +/* - 1 is for name */ +/* - 2 is for description */ +/* - 4 is for image */ +/* eg. .mosaic-item-layout-5 when just name and image */ +/****************************************************************/ #brick_content_mosaic { position: relative; padding: 10px 10px 1px 10px; diff --git a/datamodels/2.x/itop-portal-base/portal/web/css/portal.scss b/datamodels/2.x/itop-portal-base/portal/web/css/portal.scss index 8e8ef2c684..ec6e20cb3a 100644 --- a/datamodels/2.x/itop-portal-base/portal/web/css/portal.scss +++ b/datamodels/2.x/itop-portal-base/portal/web/css/portal.scss @@ -677,10 +677,19 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{ font-size: 1em; } -/****************/ -/* - Mosaic mode */ -/* Note: Some of the CSS is factorised in the "Tree mode" part */ -/****************/ +/****************************************************************/ +/* - Mosaic mode */ +/* */ +/* Note: Some of the CSS is factorised in the "Tree mode" part */ +/* */ +/* Note: .mosaic-item-layout-x classes are for different */ +/* presentation modes. Like in binary, add the values to know */ +/* which class to use. */ +/* - 1 is for name */ +/* - 2 is for description */ +/* - 4 is for image */ +/* eg. .mosaic-item-layout-5 when just name and image */ +/****************************************************************/ #brick_content_mosaic{ position: relative; padding: 10px 10px 1px 10px; diff --git a/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml b/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml index 3cd1b44990..0f30b72cb6 100755 --- a/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml +++ b/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml @@ -1,5 +1,5 @@ - + @@ -951,6 +951,14 @@ false + + 96 + 96 + 256 + 256 + + true + Service servicefamily_id @@ -967,6 +975,9 @@ 10 + + 15 + 20 @@ -1070,6 +1081,14 @@ true list + + 96 + 96 + 256 + 256 + + true + lnkCustomerContractToService service_id @@ -1106,6 +1125,9 @@ 50 + + 55 + 60 diff --git a/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml b/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml index 705cfa622b..0eae5748fe 100755 --- a/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml +++ b/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml @@ -1,5 +1,5 @@ - + @@ -935,6 +935,14 @@ false + + 96 + 96 + 256 + 256 + + true + Service servicefamily_id @@ -951,6 +959,9 @@ 10 + + 15 + 20 @@ -1054,6 +1065,14 @@ true list + + 96 + 96 + 256 + 256 + + true + lnkCustomerContractToService service_id @@ -1106,6 +1125,9 @@ 50 + + 55 + 60 diff --git a/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml b/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml index 16441d587f..8cc2b01bb8 100755 --- a/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml +++ b/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml @@ -1067,6 +1067,7 @@ ServiceFamily + icon @@ -1080,10 +1081,10 @@ description - + description - + icon Class:Service @@ -1100,6 +1101,7 @@ service_id description + description Class:ServiceSubcategory