diff --git a/UI/WebServerResources/js/Common/ui-desktop.js b/UI/WebServerResources/js/Common/ui-desktop.js
index ba3505cab..04be0a941 100644
--- a/UI/WebServerResources/js/Common/ui-desktop.js
+++ b/UI/WebServerResources/js/Common/ui-desktop.js
@@ -652,6 +652,70 @@
}
}
};
+ }])
+
+ /*
+ * sgCalendarDayTable - Build list of blocks for a specific day
+ * @memberof SOGo.UIDesktop
+ * @restrict element
+ * @param {object} sgBlocks - the events blocks definitions for the current view
+ * @param {string} sgDay - the day of the events to display
+ * @example:
+
+
+ */
+ .directive('sgCalendarDayTable', [function() {
+ return {
+ restrict: 'E',
+ scope: {
+ blocks: '=sgBlocks',
+ day: '@sgDay'
+ },
+ template:
+ '',
+ };
+ }])
+
+ /*
+ * sgCalendarDayBlock - An event block to be displayed in a week
+ * @memberof SOGo.UIDesktop
+ * @restrict element
+ * @param {object} sgBlock - the event block definition
+ * @example:
+
+
+ */
+ .directive('sgCalendarDayBlock', [function() {
+ return {
+ restrict: 'E',
+ scope: {
+ block: '=sgBlock'
+ },
+ replace: true,
+ template:
+ '
' +
+ '
' +
+ '
' +
+ '
' +
+ '
{{ block.component.c_title }}
' +
+ '
' +
+ '
' +
+ '
' +
+ '
',
+ link: link
+ };
+
+ function link(scope, iElement, attrs) {
+ iElement.addClass('starts' + scope.block.start);
+ iElement.addClass('lasts' + scope.block.length);
+ }
}]);
})();