mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 01:54:02 +08:00
DEV: add outlet wrapper for category name field (#28858)
This commit is contained in:
parent
c459d4b76c
commit
ad0ffab79f
|
@ -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>
|
Loading…
Reference in New Issue
Block a user