diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/field/umbfield.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/field/umbfield.directive.js deleted file mode 100644 index 8ea2261d3a..0000000000 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/field/umbfield.directive.js +++ /dev/null @@ -1,53 +0,0 @@ -/** -* @ngdoc directive -* @name umbraco.directives.directive:umbField -* @restrict E -* -* Used to constryct propety like form html, but without an actual property object -**/ -/** -* @ngdoc directive -* @name umbraco.directives.directive:umbProperty -* @restrict E -**/ -angular.module("umbraco.directives") - .directive('umbField', function (localizationService) { - return { - scope: { - label: "@label", - description: "@", - hideLabel: "@", - alias: "@" - }, - require: '?^form', - transclude: true, - restrict: 'E', - replace: true, - templateUrl: 'views/components/field/umb-field.html', - link: function (scope, element, attr, formCtrl) { - - scope.formValid = function() { - if (formCtrl) { - return formCtrl.$valid; - } - //there is no form. - return true; - }; - - if (scope.label && scope.label[0] === "@") { - scope.labelstring = localizationService.localize(scope.label.substring(1)); - } - else { - scope.labelstring = scope.label; - } - - if (scope.description && scope.description[0] === "@") { - scope.descriptionstring = localizationService.localize(scope.description.substring(1)); - } - else { - scope.descriptionstring = scope.description; - } - - } - }; - }); \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/components/field/umb-field.html b/src/Umbraco.Web.UI.Client/src/views/components/field/umb-field.html deleted file mode 100644 index 0cc3a6ec1c..0000000000 --- a/src/Umbraco.Web.UI.Client/src/views/components/field/umb-field.html +++ /dev/null @@ -1,13 +0,0 @@ -