-
-
|
-
-
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js index 4999f7007aa3..f7538496e25d 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js @@ -1,17 +1,34 @@ (function () { 'use strict'; - - function EditorContentHeader() { + function EditorContentHeader(localizationService, editorState) { function link(scope, el, attr, ctrl) { + if (!scope.serverValidationNameField) { scope.serverValidationNameField = "Name"; } if (!scope.serverValidationAliasField) { scope.serverValidationAliasField = "Alias"; } - + + scope.isNew =scope.content.state == "NotCreated"; + + localizationService.localizeMany([ + scope.isNew ? "placeholders_a11yCreateItem" : "placeholders_a11yEdit", + "placeholders_a11yName"] + ).then(function (data) { + scope.a11yMessage = data[0]; + scope.a11yName = data[1]; + var contentTypeName = editorState.current.contentTypeName; + if (!scope.isNew) { + scope.a11yMessage += " " + scope.content.name; + } else { + scope.a11yMessage += " " + contentTypeName; + } + scope.a11yName = contentTypeName + " " + scope.a11yName; + }); + scope.vm = {}; scope.vm.dropdownOpen = false; scope.vm.currentVariant = ""; @@ -19,13 +36,11 @@ function onInit() { setCurrentVariant(); - angular.forEach(scope.content.apps, (app) => { if (app.alias === "umbContent") { app.anchors = scope.content.tabs; } }); - } function setCurrentVariant() { @@ -132,10 +147,8 @@ }, link: link }; - return directive; } - angular.module('umbraco.directives').directive('umbEditorContentHeader', EditorContentHeader); - })(); + diff --git a/src/Umbraco.Web.UI.Client/src/less/belle.less b/src/Umbraco.Web.UI.Client/src/less/belle.less index 1e48500bb0a1..475ec01ddce2 100644 --- a/src/Umbraco.Web.UI.Client/src/less/belle.less +++ b/src/Umbraco.Web.UI.Client/src/less/belle.less @@ -81,6 +81,7 @@ @import "forms/umb-validation-label.less"; // Umbraco Components +@import "components/application/umb-app-a11y.less"; @import "components/application/umb-app-header.less"; @import "components/application/umb-app-content.less"; @import "components/application/umb-tour.less"; diff --git a/src/Umbraco.Web.UI.Client/src/less/components/application/umb-app-a11y.less b/src/Umbraco.Web.UI.Client/src/less/components/application/umb-app-a11y.less new file mode 100644 index 000000000000..7e127c5db168 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/less/components/application/umb-app-a11y.less @@ -0,0 +1,10 @@ +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0,0,0,0); + border: 0; +} diff --git a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html index 0f7a61fa01c8..0fd064865515 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html @@ -11,7 +11,13 @@
+ {{a11yMessage}} +
+To proceed, please edit the "web.config" file (using Visual Studio or your favourite text editor), scroll to the bottom, add the connection string for your database in the key named "UmbracoDbDSN" and save the file.
-
- Click the retry button when
- done.
- More information on editing web.config here.
- Don't worry - no content will be deleted and everything will continue working afterwards! -
- ]]>No further actions needs to be taken. Click Next to proceed.]]>
No further actions needs to be taken. Click Next to proceed.]]>
-
|
-
- |
-
-
- -
- |
- - |