This commit is contained in:
@@ -22,14 +22,17 @@ defineEmits(['update:productName', 'update:categoryId', 'submit']);
|
||||
:value="productName"
|
||||
class="fixture-input"
|
||||
required
|
||||
aria-describedby="product-name-help"
|
||||
@input="$emit('update:productName', $event.target.value)"
|
||||
/>
|
||||
<p id="product-name-help">Use the recognizable product name collectors will search for.</p>
|
||||
<label class="fixture-label" for="product-category">Category</label>
|
||||
<select
|
||||
id="product-category"
|
||||
:value="categoryId"
|
||||
class="fixture-input"
|
||||
required
|
||||
aria-describedby="product-category-help"
|
||||
@change="$emit('update:categoryId', $event.target.value)"
|
||||
>
|
||||
<option value="" disabled>Select a category</option>
|
||||
@@ -37,6 +40,7 @@ defineEmits(['update:productName', 'update:categoryId', 'submit']);
|
||||
{{ category.name }}
|
||||
</option>
|
||||
</select>
|
||||
<p id="product-category-help">Choose the catalog category that defines valid conditions for this product.</p>
|
||||
<button class="button button--primary" type="submit" :disabled="isSaving">
|
||||
Create product
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user