|
1 |
| -import { UMB_DOCUMENT_BLUEPRINT_WORKSPACE_ALIAS } from './manifests.js'; |
2 |
| -import { html, customElement, css } from '@umbraco-cms/backoffice/external/lit'; |
| 1 | +import { html, customElement } from '@umbraco-cms/backoffice/external/lit'; |
3 | 2 | import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
| 3 | +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; |
4 | 4 |
|
5 | 5 | @customElement('umb-document-blueprint-root-workspace')
|
6 | 6 | export class UmbDocumentBlueprintRootWorkspaceElement extends UmbLitElement {
|
7 | 7 | override render() {
|
8 |
| - return html`<umb-workspace-editor |
9 |
| - alias=${UMB_DOCUMENT_BLUEPRINT_WORKSPACE_ALIAS} |
10 |
| - headline=${this.localize.term('treeHeaders_contentBlueprints')}> |
11 |
| - <div id="wrapper"> |
12 |
| - <uui-box> |
13 |
| - <h2> |
14 |
| - <umb-localize key="contentTemplatesDashboard_whatHeadline"> What are Document Blueprints? </umb-localize> |
15 |
| - </h2> |
16 |
| - <umb-localize key="contentTemplatesDashboard_whatDescription"> |
17 |
| - Document Blueprints are pre-defined content that can be selected when creating a new content node. |
| 8 | + return html`<umb-body-layout .headline=${this.localize.term('treeHeaders_contentBlueprints')}> |
| 9 | + <uui-box> |
| 10 | + <h2> |
| 11 | + <umb-localize key="contentTemplatesDashboard_whatHeadline"> What are Document Blueprints? </umb-localize> |
| 12 | + </h2> |
| 13 | + <umb-localize key="contentTemplatesDashboard_whatDescription"> |
| 14 | + Document Blueprints are pre-defined content that can be selected when creating a new content node. |
| 15 | + </umb-localize> |
| 16 | + <h2> |
| 17 | + <umb-localize key="contentTemplatesDashboard_createHeadline"> |
| 18 | + How do I create a Document Blueprint? |
18 | 19 | </umb-localize>
|
19 |
| - <h2> |
20 |
| - <umb-localize key="contentTemplatesDashboard_createHeadline"> |
21 |
| - How do I create a Document Blueprint? |
22 |
| - </umb-localize> |
23 |
| - </h2> |
24 |
| - <umb-localize key="contentTemplatesDashboard_createDescription"> |
25 |
| - <p>There are two ways to create a Content Blueprint:</p> |
26 |
| - <ul> |
27 |
| - <li> |
28 |
| - Click "Create Document Blueprint" in the action menu on a content node to create a new Document |
29 |
| - Blueprint. |
30 |
| - </li> |
31 |
| - <li> |
32 |
| - Click the "+" button in the Document Blueprints tree in the Settings section and select the Document |
33 |
| - Type you want to create a Document Blueprint for. |
34 |
| - </li> |
35 |
| - </ul> |
36 |
| - <p>Once given a name, editors can start using the Document Blueprint as a foundation for their new page.</p> |
| 20 | + </h2> |
| 21 | + <umb-localize key="contentTemplatesDashboard_createDescription"> |
| 22 | + <p>There are two ways to create a Content Blueprint:</p> |
| 23 | + <ul> |
| 24 | + <li> |
| 25 | + Click "Create Document Blueprint" in the action menu on a content node to create a new Document Blueprint. |
| 26 | + </li> |
| 27 | + <li> |
| 28 | + Click the "+" button in the Document Blueprints tree in the Settings section and select the Document Type |
| 29 | + you want to create a Document Blueprint for. |
| 30 | + </li> |
| 31 | + </ul> |
| 32 | + <p>Once given a name, editors can start using the Document Blueprint as a foundation for their new page.</p> |
| 33 | + </umb-localize> |
| 34 | + <h2> |
| 35 | + <umb-localize key="contentTemplatesDashboard_manageHeadline"> |
| 36 | + How do I manage Document Blueprints? |
37 | 37 | </umb-localize>
|
38 |
| - <h2> |
39 |
| - <umb-localize key="contentTemplatesDashboard_manageHeadline"> |
40 |
| - How do I manage Document Blueprints? |
41 |
| - </umb-localize> |
42 |
| - </h2> |
43 |
| - <umb-localize key="contentTemplatesDashboard_manageDescription"> |
44 |
| - You can edit and delete Document Blueprints from the "Document Blueprints" tree in the Settings section. |
45 |
| - Expand the Document Type which the Document Blueprint is based on and click it to edit or delete it. |
46 |
| - </umb-localize> |
47 |
| - </uui-box> |
48 |
| - </div> |
49 |
| - </umb-workspace-editor> `; |
| 38 | + </h2> |
| 39 | + <umb-localize key="contentTemplatesDashboard_manageDescription"> |
| 40 | + You can edit and delete Document Blueprints from the "Document Blueprints" tree in the Settings section. |
| 41 | + Expand the Document Type which the Document Blueprint is based on and click it to edit or delete it. |
| 42 | + </umb-localize> |
| 43 | + </uui-box> |
| 44 | + </umb-body-layout> `; |
50 | 45 | }
|
51 | 46 |
|
52 |
| - static override styles = [ |
53 |
| - css` |
54 |
| - #wrapper { |
55 |
| - margin: var(--uui-size-layout-1); |
56 |
| - } |
57 |
| - `, |
58 |
| - ]; |
| 47 | + static override styles = [UmbTextStyles]; |
59 | 48 | }
|
60 | 49 |
|
61 | 50 | export default UmbDocumentBlueprintRootWorkspaceElement;
|
|
0 commit comments