Date: Mon, 23 Oct 2017 19:58:44 +0200
Subject: [PATCH 08/15] don't use index in button group + update text in some
tours
---
.../components/buttons/umbbutton.directive.js | 3 +-
.../services/contenteditinghelper.service.js | 12 +-
.../src/common/services/tour.service.js | 112 +++++++++---------
.../src/views/common/overlays/user/user.html | 6 +-
.../components/buttons/umb-button-group.html | 6 +-
.../views/components/buttons/umb-button.html | 2 +-
.../src/views/components/content/edit.html | 4 +-
.../components/overlays/umb-overlay.html | 6 +-
.../views/components/umb-groups-builder.html | 4 +-
.../components/upload/umb-file-dropzone.html | 2 +-
.../views/documenttypes/edit.controller.js | 2 +
.../src/views/media/edit.html | 4 +-
.../src/views/templates/edit.html | 6 +-
13 files changed, 88 insertions(+), 81 deletions(-)
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
index b503648317..4b0bdb6c71 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
@@ -149,7 +149,8 @@ Use this directive to render an umbraco button. The directive can be used to gen
labelKey: "@?",
icon: "@?",
disabled: "=",
- size: "@?"
+ size: "@?",
+ alias: "@?"
}
};
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
index 694cc00148..2c3dafd8c1 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
@@ -134,7 +134,8 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica
labelKey: "buttons_saveAndPublish",
handler: args.methods.saveAndPublish,
hotKey: "ctrl+p",
- hotKeyWhenHidden: true
+ hotKeyWhenHidden: true,
+ alias: "saveAndPublish"
};
case "H":
//send to publish
@@ -143,7 +144,8 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica
labelKey: "buttons_saveToPublish",
handler: args.methods.sendToPublish,
hotKey: "ctrl+p",
- hotKeyWhenHidden: true
+ hotKeyWhenHidden: true,
+ alias: "sendToPublish"
};
case "A":
//save
@@ -152,7 +154,8 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica
labelKey: "buttons_save",
handler: args.methods.save,
hotKey: "ctrl+s",
- hotKeyWhenHidden: true
+ hotKeyWhenHidden: true,
+ alias: "save"
};
case "Z":
//unpublish
@@ -161,7 +164,8 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica
labelKey: "content_unPublish",
handler: args.methods.unPublish,
hotKey: "ctrl+u",
- hotKeyWhenHidden: true
+ hotKeyWhenHidden: true,
+ alias: "unpublish"
};
default:
return null;
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js
index 261d845f99..94df0168d3 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js
@@ -13,37 +13,37 @@
"steps": [
{
title: "Welcome to Umbraco - The Friendly CMS",
- content: "Thank you for choosing Umbraco - we think this could be the beginning of something beautiful. While it may feel overwhelming at first, we've done a lot to make the learning curve as smooth and fast as possible.
",
+ content: "Thank you for choosing Umbraco - we think this could be the beginning of something beautiful. While it may feel overwhelming at first, we've done a lot to make the learning curve as smooth and fast as possible.
In this quick tour we will introduce you to the main areas of Umbraco and show you how to best get started.
",
type: "intro"
},
{
element: "#applications",
title: "Sections",
- content: "These are the Sections and allows you to navigate the different areas of Umbraco"
+ content: "These are the Sections and allows you to navigate the different areas of Umbraco."
},
{
element: "#tree",
title: "The Tree",
- content: "This is the Tree and contains all the pages of your website"
+ content: "This is the Tree and will contain all the content of your website."
},
{
element: "[data-element='global-search-field']",
title: "Search",
- content: "The search allows you to quickly find content across sections within Umbraco"
+ content: "The search allows you to quickly find content across sections within Umbraco."
},
{
element: "#applications [data-element='section-user']",
title: "User profile",
- content: "Click here to open the user profile dialog",
+ content: "Click here to open the user profile dialog.",
event: "click"
},
{
element: "[data-element~='overlay-user']",
title: "User profile",
- content: "This is where you can see details about your user, change your password and log out of Umbraco"
+ content: "This is where you can see details about your user, change your password and log out of Umbraco.
In the User section you will be able to do more advaned user management.
"
},
{
- element: "[data-element~='overlay-user'] [data-element='overlay-close']",
+ element: "[data-element~='overlay-user'] [data-element='button-overlayClose']",
title: "User profile",
content: "Let's close the user profile again",
event: "click"
@@ -51,13 +51,13 @@
{
element: "#applications [data-element='section-help']",
title: "Help",
- content: "If you ever find yourself in trouble click here to open the help drawer",
+ content: "If you ever find yourself in trouble click here to open the help drawer.",
event: "click"
},
{
element: "[data-element='drawer']",
title: "Help",
- content: "In the help drawer you can find articles and videos related to the section you are using.
You will also find more tours like this which will help you get started with Umbraco.
"
+ content: "In the help drawer you will find articles and videos related to the section you are using.
This is also where you will find the next tour on how to get started with Umbraco.
"
}
]
},
@@ -68,38 +68,38 @@
"steps": [
{
title: "Create your first Document Type",
- content: "Step 1 of any site is to create a Document Type. A Document Type is a data container where you can add data fields. The editor can then input data and Umbraco can use it to output it in the relevant parts of a template.
In this tour you will learn how to set up a basic Document Type with a data field to enter some text.
",
+ content: "Step 1 of any site is to create a Document Type. A Document Type is a data container where you can add data fields. The editor can then input data and Umbraco can use it to output it in the relevant parts of a template.
In this tour you will learn how to set up a basic Document Type with a data field to enter a short text.
",
type: "intro"
},
{
element: "#applications [data-element='section-settings']",
title: "Navigate to the settings sections",
- content: "In the settings section we will find the document types",
+ content: "In the Settings section we will find the document types.",
event: "click"
},
{
element: "#tree [data-element='tree-item-documentTypes']",
title: "Create document type",
- content: "Hover the document types tree and click the three small dots to open the context menu
",
+ content: "Hover the document types tree and click the three small dots to open the context menu.
",
event: "click",
eventElement: "#tree [data-element='tree-item-documentTypes'] [data-element='tree-item-options']"
},
{
element: "#dialog [data-element='action-documentType']",
title: "Create document type",
- content: "Click Document Type to create a new document type with a template",
+ content: "Click Document Type to create a new document type with a template.
We will use the template in a later tour when we need to render our content.
",
event: "click"
},
{
element: "[data-element='editor-name-field']",
title: "Enter a name",
- content: "Our document type needs a name. Enter Home in the field and click Next
",
+ content: "Our document type needs a name. Enter Home in the field and click Next.",
view: "doctypename"
},
{
element: "[data-element='editor-description']",
title: "Enter a description",
- content: "
A description helps the content editor pick the right document type when creating content:
The home to our website
"
+ content: "A description helps to pick the right document type when creating content.
Write a description to our Home page. It could be:
The home to our website
"
},
{
element: "[data-element='group-add']",
@@ -110,29 +110,29 @@
{
element: "[data-element='group-name']",
title: "Enter a name",
- content: "Enter Content in the tab name"
+ content: "Enter Content in the tab name."
},
{
element: "[data-element='property-add']",
title: "Add a property",
- content: "Properties are the different types of data on our content page.
On our Home page we wan't to add a welcome text.
Click Add property to open the property dialog
",
+ content: "Properties are the different types of data on our content page.
On our Home page we wan't to add a welcome text.
Click Add property to open the property dialog.
",
event: "click"
},
{
element: "[data-element~='overlay-property-settings'] [data-element='property-name']",
title: "Enter a name",
- content: "Enter Welcome Text as name for the property",
+ content: "Enter Welcome Text as name for the property.",
view: "propertyname"
},
{
element: "[data-element~='overlay-property-settings'] [data-element='property-description']",
title: "Enter a description",
- content: "Enter a description for the property editor:
Write a nice introduction text so the visitors feel welcome
"
+ content: "A description will help to fill in the right content.
Enter a description for the property editor. It could be:
Write a nice introduction text so the visitors feel welcome
"
},
{
element: "[data-element~='overlay-property-settings'] [data-element='editor-add']",
title: "Add editor",
- content: "The editor define what data type the property is. Click Add editor to open the editor picker dialog",
+ content: "The editor defines what data type the property is. Click Add editor to open the editor picker dialog.",
event: "click"
},
{
@@ -143,30 +143,30 @@
{
element: "[data-element~='overlay-editor-picker'] [data-element='editor-Textarea']",
title: "Select editor",
- content: "Select the Textarea editor which allows the content editor to enter long texts",
+ content: "Select the Textarea editor which allows us to enter long texts.",
event: "click"
},
{
element: "[data-element~='overlay-editor-settings']",
title: "Editor settings",
- content: "Each editor can have individual settings. We don't need to change any of these now."
+ content: "Each property editor can have individual settings. We don't want to change any of these now."
},
{
- element: "[data-element~='overlay-editor-settings'] [data-element='overlay-submit']",
+ element: "[data-element~='overlay-editor-settings'] [data-element='button-overlaySubmit']",
title: "Save editor",
- content: "Click Submit to save the editor and any changes you may have made to the editor settings.",
+ content: "Click Submit to save the editor.",
event: "click"
},
{
- element: "[data-element~='overlay-property-settings'] [data-element='overlay-submit']",
- title: "Save property",
- content: "Click Submit to add the property",
+ element: "[data-element~='overlay-property-settings'] [data-element='button-overlaySubmit']",
+ title: "Add property to document type",
+ content: "Click Submit to add the property to the document type.",
event: "click"
},
{
- element: "[data-element='button-group-primary']",
+ element: "[data-element='button-save']",
title: "Save the document type",
- content: "Click Save to create your document type",
+ content: "All we need now is to save the document type. Click Save to create and save your new document type.",
event: "click"
}
]
@@ -178,37 +178,37 @@
"steps": [
{
title: "Creating your first content node",
- content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam in euismod velit. Aliquam sit amet turpis in velit convallis bibendum. Suspendisse venenatis porttitor ipsum eu eleifend.
",
+ content: "The Content section contains the content of the website. Content is displayed as nodes in the content tree.
In this tour we will learn how to create our Home page for our website.
",
type: "intro"
},
{
element: "[data-element='tree-root']",
title: "Open context menu",
- content: "Open the context menu by hovering the root of the content section.
Now click the three small dots to the right
",
+ content: "Open the context menu by hovering the root of the content section.
Now click the three small dots to the right.
",
event: "click",
eventElement: "[data-element='tree-root'] [data-element='tree-item-options']"
},
{
element: "[data-element='action-create-home']",
title: "Create Home page",
- content: "Click on Home to create a new page of type Home
",
+ content: "Click on Home to create a new page of type Home.
",
event: "click"
},
{
element: "[data-element='editor-content'] [data-element='editor-name-field']",
title: "Give your new page a name",
- content: "Our new page needs a name. Enter Home in the field and click Next
",
+ content: "Our new page needs a name. Enter Home in the field and click Next.
",
view: "nodename"
},
{
element: "[data-element='editor-content'] [data-element='property-welcomeText']",
title: "Add a welcome text",
- content: "Add content to the Welcome Text field
If you don't have any ideas here is a start:
I am learning Umbraco. High Five I Rock #H5IR
"
+ content: "Add content to the Welcome Text field
If you don't have any ideas here is a start:
I am learning Umbraco. High Five I Rock #H5IR
."
},
{
- element: "[data-element='editor-content'] [data-element='button-group-primary']",
+ element: "[data-element='editor-content'] [data-element='button-saveAndPublish']",
title: "Save and publish",
- content: "Now click the Save and publish button to save and publish your changes
",
+ content: "Now click the Save and publish button to save and publish your changes.
",
event: "click"
}
]
@@ -220,19 +220,19 @@
"steps": [
{
title: "Render your content in a template",
- content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam in euismod velit. Aliquam sit amet turpis in velit convallis bibendum. Suspendisse venenatis porttitor ipsum eu eleifend.
",
+ content: "Templating in Umbraco builds on the concept of Razor Views from asp.net MVC. - This tour is a sneak peak on how to write templates in Umbraco.
In this tour we will learn how to render content from our Home document type so we can see the content added to our Home page.
",
type: "intro"
},
{
element: "#applications [data-element='section-settings']",
- title: "Navigate to the settings section",
- content: "In the Settings section you will find the templates for all your document types",
+ title: "Navigate to the Settings section",
+ content: "In the Settings section you will find all the templates
It is of course also possible to edit all your code files in your favorite code editor.
",
event: "click"
},
{
element: "#tree [data-element='tree-item-templates']",
title: "Expand the Templates node",
- content: "To see all our templates click the small triangle to the left of the templates node
",
+ content: "To see all our templates click the small triangle to the left of the templates node.
",
event: "click",
eventElement: "#tree [data-element='tree-item-templates'] [data-element='tree-item-expand']",
view: "templatetree"
@@ -240,19 +240,19 @@
{
element: "#tree [data-element='tree-item-templates'] [data-element='tree-item-Home']",
title: "Open Home template",
- content: "Click the Home template to open and edit it
",
+ content: "Click the Home template to open and edit it.
",
eventElement: "#tree [data-element='tree-item-templates'] [data-element='tree-item-Home'] a.umb-tree-item__label",
event: "click"
},
{
element: "[data-element='editor-templates'] [data-element='code-editor']",
title: "Edit template",
- content: 'Templates can be edited here or in your favorite code editor.
To render the value we entered on the Home page add the following to the template:
@Model.Content.GetPropertyValue("welcomeText")'
+ content: 'The template can be edited here or in your favorite code editor.
To render the field from the document type add the following to the template:
@Model.Content.GetPropertyValue("welcomeText")'
},
{
element: "[data-element='editor-templates'] [data-element='button-save']",
title: "Save the template",
- content: "Click the save button and your template will be saved",
+ content: "Click the Save button and your template will be saved.",
event: "click"
}
]
@@ -264,7 +264,7 @@
"steps": [
{
title: "View your Umbraco site",
- content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam in euismod velit. Aliquam sit amet turpis in velit convallis bibendum. Suspendisse venenatis porttitor ipsum eu eleifend.
",
+ content: "Our three main components to a page is done: Document type, Template, and Content - it is now time to see the result.
In this tour we will learn how to see our published website.
",
type: "intro"
},
{
@@ -277,13 +277,13 @@
{
element: "[data-element='editor-content'] [data-element='tab-Generic properties']",
title: "Properties",
- content: "Under the properties tab you will find default information about the content item
",
+ content: "Under the properties tab you will find the default information about a content item.
",
event: "click"
},
{
element: "[data-element='editor-content'] [data-element='property-_umb_urls']",
title: "Open page",
- content: "Click the Link to view your page.
Tip: Click the preview button in the bottom right corner to preview changes without publishing them
",
+ content: "Click the Link to view your page.
Tip: Click the preview button in the bottom right corner to preview changes without publishing them.
",
event: "click",
eventElement: "[data-element='editor-content'] [data-element='property-_umb_urls'] a[target='_blank']"
}
@@ -296,32 +296,32 @@
"steps": [
{
title: "How to use the media library",
- content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam in euismod velit. Aliquam sit amet turpis in velit convallis bibendum. Suspendisse venenatis porttitor ipsum eu eleifend.
",
+ content: "A website would be boring without media content. In Umbraco you can manage all your images, documents, videos etc. in the Media section. Here you can upload and organise your media items and see details about each item.
In this tour we will learn how to upload and orginise your Media library in Umbraco. It will also show you how to view details about a specific media item.
",
type: "intro"
},
{
element: "#applications [data-element='section-media']",
title: "Navigate to the media section",
- content: "The media section is where you will manage all your media items",
+ content: "The media section is where you will manage all your media items.",
event: "click"
},
{
element: "#tree [data-element='tree-root']",
title: "Create a new folder",
- content: "Hover the media root and click the three small dots on the right side of the item
",
+ content: "Let's first create a folder for our images. Hover the media root and click the three small dots on the right side of the item.
",
event: "click",
eventElement: "#tree [data-element='tree-root'] [data-element='tree-item-options']"
},
{
element: "#dialog [data-element='action-Folder']",
title: "Create a new folder",
- content: "Select the Folder options to create a new folder
",
+ content: "Select the Folder options to select the type folder.
",
event: "click"
},
{
element: "[data-element='editor-media'] [data-element='editor-name-field']",
title: "Enter a name",
- content: "Enter 'My folder' in the field
"
+ content: "Enter My folder in the field.
"
},
{
element: "[data-element='editor-media'] [data-element='button-save']",
@@ -332,7 +332,7 @@
{
element: "[data-element='editor-media'] [data-element='dropzone']",
title: "Upload images",
- content: "In the upload area you can upload your media items.
Click the Upload button and select some images on your computer and upload them.
",
+ content: "In the upload area you can upload your media items.
Click the Upload button and select a couple of images on your computer and upload them.
",
view: "uploadimages"
},
{
@@ -345,17 +345,17 @@
{
element: "[data-element='editor-media'] [data-element='property-umbracoFile']",
title: "The uploaded image",
- content: "Here you can see the image you have uploaded.
Use the dot in the center of the image to set a focal point on the image.
"
+ content: "Here you can see the image you have uploaded.
You can use the dot in the center of the image to set a focal point on the image.
"
},
{
element: "[data-element='editor-media'] [data-element='property-umbracoBytes']",
title: "Image size",
- content: "You will also find other details about the image, like the size
You can add extra properties to an image by creating or editing the Media types
"
+ content: "You will also find other details about the image, like the size.
You can add extra properties to an image by creating or editing the Media types
"
},
{
element: "[data-element='editor-media'] [data-element='tab-Generic properties']",
title: "Properties",
- content: "Like the content section you can also find default properties about the media item. You will find these under the properties tab",
+ content: "Like the content section you can also find default properties about the media item. You will find these under the properties tab.",
event: "click"
},
{
@@ -366,7 +366,7 @@
{
element: "[data-element='editor-media'] [data-element='property-_umb_updatedate']",
title: "Last edited",
- content: "...and information about when the item has been created and edited."
+ content: "...and information about when the media item has been created and edited."
}
]
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html b/src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html
index be80e3e815..8021d66a43 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html
@@ -11,7 +11,7 @@