Skip to content

Commit 6237ddc

Browse files
Improves the layout on the create blueprint dialog (#19556)
* Improves the layout on the create blueprint dialog. * localize texts --------- Co-authored-by: Mads Rasmussen <madsr@hey.com>
1 parent ef453ad commit 6237ddc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Umbraco.Web.UI.Client/src/packages/documents/documents/entity-actions/create-blueprint/modal/create-blueprint-modal.element.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ export class UmbCreateBlueprintModalElement extends UmbModalBaseElement<
3838
this.modalContext?.submit();
3939
}
4040

41-
#renderBlueprintName() {
42-
return html`<strong>Create a new Content Template from ${this._documentName}</strong>
43-
A Content Template is predefined content that an editor can select to use as the basis for creating new content .
44-
<uui-label for="name">Name</uui-label>
45-
<uui-input
46-
id="name"
47-
label="name"
48-
.value=${this._blueprintName}
49-
@input=${(e: UUIInputEvent) => (this._blueprintName = e.target.value as string)}></uui-input>`;
50-
}
51-
5241
override render() {
5342
return html`
54-
<umb-body-layout headline="Create Content Template">
55-
${this.#renderBlueprintName()}
43+
<umb-body-layout headline=${this.localize.term('actions_createblueprint')}>
44+
<uui-box id="tree-box" headline=${this.localize.term('blueprints_createBlueprintFrom', this._documentName)}>
45+
<umb-localize key="blueprints_blueprintDescription"></umb-localize>
46+
<umb-property-layout label=${this.localize.term('general_name')} orientation="vertical">
47+
<div slot="editor">
48+
<uui-input
49+
id="name"
50+
label="name"
51+
.value=${this._blueprintName}
52+
@input=${(e: UUIInputEvent) => (this._blueprintName = e.target.value as string)}></uui-input>
53+
</div>
54+
</umb-property-layout>
55+
</uui-box>
5656
<uui-button
5757
slot="actions"
5858
id="close"

0 commit comments

Comments
 (0)