mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: add outlet wrapper for category name field (#28858)
This commit is contained in:
committed by
GitHub
parent
c459d4b76c
commit
ad0ffab79f
@@ -1,21 +1,26 @@
|
|||||||
<section class="field category-name-fields">
|
<PluginOutlet
|
||||||
{{#unless this.category.isUncategorizedCategory}}
|
@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">
|
<section class="field-item">
|
||||||
<label>{{i18n "category.name"}}</label>
|
<label>{{i18n "category.slug"}}</label>
|
||||||
<TextField
|
<TextField
|
||||||
@value={{this.category.name}}
|
@value={{this.category.slug}}
|
||||||
@placeholderKey="category.name_placeholder"
|
@placeholderKey="category.slug_placeholder"
|
||||||
@maxlength="50"
|
@maxlength="255"
|
||||||
class="category-name"
|
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
{{/unless}}
|
|
||||||
<section class="field-item">
|
|
||||||
<label>{{i18n "category.slug"}}</label>
|
|
||||||
<TextField
|
|
||||||
@value={{this.category.slug}}
|
|
||||||
@placeholderKey="category.slug_placeholder"
|
|
||||||
@maxlength="255"
|
|
||||||
/>
|
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</PluginOutlet>
|
||||||
Reference in New Issue
Block a user