Extract category name fields into a component
This commit is contained in:
parent
74ec100aff
commit
e244a1a319
|
@ -0,0 +1,10 @@
|
|||
<section class='field'>
|
||||
<section class="field-item">
|
||||
<label>{{i18n 'category.name'}}</label>
|
||||
{{text-field value=category.name placeholderKey="category.name_placeholder" maxlength="50"}}
|
||||
</section>
|
||||
<section class="field-item">
|
||||
<label>{{i18n 'category.slug'}}</label>
|
||||
{{text-field value=category.slug placeholderKey="category.slug_placeholder" maxlength="255"}}
|
||||
</section>
|
||||
</section>
|
|
@ -1,14 +1,5 @@
|
|||
<form>
|
||||
<section class='field'>
|
||||
<section class="field-item">
|
||||
<label>{{i18n 'category.name'}}</label>
|
||||
{{text-field value=category.name placeholderKey="category.name_placeholder" maxlength="50"}}
|
||||
</section>
|
||||
<section class="field-item">
|
||||
<label>{{i18n 'category.slug'}}</label>
|
||||
{{text-field value=category.slug placeholderKey="category.slug_placeholder" maxlength="255"}}
|
||||
</section>
|
||||
</section>
|
||||
{{category-name-fields category=category tagName=""}}
|
||||
|
||||
{{#if canSelectParentCategory}}
|
||||
<section class='field'>
|
||||
|
|
Loading…
Reference in New Issue