From 2964fff2cd93971adebb9c11d8011e150c0b4723 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 2 Aug 2024 09:58:32 +0300 Subject: [PATCH] working time range tooltips --- application/Espo/Resources/i18n/en_US/WorkingTimeRange.json | 4 ++++ .../Espo/Resources/layouts/WorkingTimeRange/detail.json | 4 ++-- .../Resources/layouts/WorkingTimeRange/detailSmall.json | 6 ++++-- .../Resources/metadata/entityDefs/WorkingTimeRange.json | 6 ++++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/application/Espo/Resources/i18n/en_US/WorkingTimeRange.json b/application/Espo/Resources/i18n/en_US/WorkingTimeRange.json index bb236bae1f..938656177b 100644 --- a/application/Espo/Resources/i18n/en_US/WorkingTimeRange.json +++ b/application/Espo/Resources/i18n/en_US/WorkingTimeRange.json @@ -23,5 +23,9 @@ }, "presetFilters": { "actual": "Actual" + }, + "tooltips": { + "calendars": "Calendars to apply the exception to. The exception will be applied to all users of selected calendars.\n\nLeave the field empty if you need to apply the exception only for specific users.", + "users": "Specific users to apply the exception to." } } diff --git a/application/Espo/Resources/layouts/WorkingTimeRange/detail.json b/application/Espo/Resources/layouts/WorkingTimeRange/detail.json index f74a975089..ccfc2151eb 100644 --- a/application/Espo/Resources/layouts/WorkingTimeRange/detail.json +++ b/application/Espo/Resources/layouts/WorkingTimeRange/detail.json @@ -11,10 +11,10 @@ ], [ {"name": "timeRanges"}, - {"name": "calendars"} + false ], [ - false, + {"name": "calendars"}, {"name": "users"} ], [ diff --git a/application/Espo/Resources/layouts/WorkingTimeRange/detailSmall.json b/application/Espo/Resources/layouts/WorkingTimeRange/detailSmall.json index 5b35c0348a..ccfc2151eb 100644 --- a/application/Espo/Resources/layouts/WorkingTimeRange/detailSmall.json +++ b/application/Espo/Resources/layouts/WorkingTimeRange/detailSmall.json @@ -10,10 +10,12 @@ {"name": "dateEnd"} ], [ - {"name": "timeRanges"} + {"name": "timeRanges"}, + false ], [ - {"name": "calendars"} + {"name": "calendars"}, + {"name": "users"} ], [ {"name": "description"} diff --git a/application/Espo/Resources/metadata/entityDefs/WorkingTimeRange.json b/application/Espo/Resources/metadata/entityDefs/WorkingTimeRange.json index ff90c74f22..65ba59e5af 100644 --- a/application/Espo/Resources/metadata/entityDefs/WorkingTimeRange.json +++ b/application/Espo/Resources/metadata/entityDefs/WorkingTimeRange.json @@ -31,11 +31,13 @@ "type": "text" }, "calendars": { - "type": "linkMultiple" + "type": "linkMultiple", + "tooltip": true }, "users": { "type": "linkMultiple", - "view": "views/working-time-range/fields/users" + "view": "views/working-time-range/fields/users", + "tooltip": true }, "createdAt": { "type": "datetime",