diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbbox.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbbox.directive.js new file mode 100644 index 0000000000..b3f57e6b5e --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbbox.directive.js @@ -0,0 +1,19 @@ +(function(){ + 'use strict'; + + function BoxDirective() { + + var directive = { + restrict: 'E', + replace: true, + transclude: true, + templateUrl: 'views/components/html/umb-box/umb-box.html' + }; + + return directive; + + } + + angular.module('umbraco.directives').directive('umbBox', BoxDirective); + +})(); \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbboxcontent.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbboxcontent.directive.js new file mode 100644 index 0000000000..6b62575bee --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbboxcontent.directive.js @@ -0,0 +1,18 @@ +(function(){ + 'use strict'; + + function BoxContentDirective() { + + var directive = { + restrict: 'E', + replace: true, + transclude: true, + templateUrl: 'views/components/html/umb-box/umb-box-content.html' + }; + + return directive; + } + + angular.module('umbraco.directives').directive('umbBoxContent', BoxContentDirective); + +})(); \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbboxheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbboxheader.directive.js new file mode 100644 index 0000000000..d005fa9efc --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbboxheader.directive.js @@ -0,0 +1,23 @@ +(function(){ + 'use strict'; + + function BoxHeaderDirective() { + + var directive = { + restrict: 'E', + replace: true, + transclude: true, + templateUrl: 'views/components/html/umb-box/umb-box-header.html', + scope: { + titleKey: "@?", + title: "@?" + } + }; + + return directive; + + } + + angular.module('umbraco.directives').directive('umbBoxHeader', BoxHeaderDirective); + +})(); \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/components/html/umb-box/umb-box-content.html b/src/Umbraco.Web.UI.Client/src/views/components/html/umb-box/umb-box-content.html new file mode 100644 index 0000000000..f3ebfcb505 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/views/components/html/umb-box/umb-box-content.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/components/html/umb-box/umb-box-header.html b/src/Umbraco.Web.UI.Client/src/views/components/html/umb-box/umb-box-header.html new file mode 100644 index 0000000000..6feffe9d3d --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/views/components/html/umb-box/umb-box-header.html @@ -0,0 +1,6 @@ +