DEV: add outlet wrapper for category name field (#28858)

This commit is contained in:
Amanda Alves Branquinho 2024-09-16 12:48:24 -03:00 committed by GitHub
parent c459d4b76c
commit ad0ffab79f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,21 +1,26 @@
<section class="field category-name-fields">
{{#unless this.category.isUncategorizedCategory}}
<PluginOutlet
@name="category-name-fields-details"
@outletArgs={{hash category=this.category}}
>
<section class="field category-name-fields">
{{#unless this.category.isUncategorizedCategory}}
<section class="field-item">
<label>{{i18n "category.name"}}</label>
<TextField
@value={{this.category.name}}
@placeholderKey="category.name_placeholder"
@maxlength="50"
class="category-name"
/>
</section>
{{/unless}}
<section class="field-item">
<label>{{i18n "category.name"}}</label>
<label>{{i18n "category.slug"}}</label>
<TextField
@value={{this.category.name}}
@placeholderKey="category.name_placeholder"
@maxlength="50"
class="category-name"
@value={{this.category.slug}}
@placeholderKey="category.slug_placeholder"
@maxlength="255"
/>
</section>
{{/unless}}
<section class="field-item">
<label>{{i18n "category.slug"}}</label>
<TextField
@value={{this.category.slug}}
@placeholderKey="category.slug_placeholder"
@maxlength="255"
/>
</section>
</section>
</PluginOutlet>