This commit is contained in:
@@ -23,6 +23,7 @@ defineEmits(['update:productId', 'update:conditionId', 'submit']);
|
||||
:value="productId"
|
||||
class="fixture-input"
|
||||
required
|
||||
aria-describedby="inventory-product-help"
|
||||
@change="$emit('update:productId', $event.target.value)"
|
||||
>
|
||||
<option value="" disabled>Select a product</option>
|
||||
@@ -30,12 +31,14 @@ defineEmits(['update:productId', 'update:conditionId', 'submit']);
|
||||
{{ product.name }}
|
||||
</option>
|
||||
</select>
|
||||
<p id="inventory-product-help">Select the product represented by this physical copy.</p>
|
||||
<label class="fixture-label" for="inventory-condition">Condition</label>
|
||||
<select
|
||||
id="inventory-condition"
|
||||
:value="conditionId"
|
||||
class="fixture-input"
|
||||
required
|
||||
aria-describedby="inventory-condition-help"
|
||||
@change="$emit('update:conditionId', $event.target.value)"
|
||||
>
|
||||
<option value="" disabled>Select a condition</option>
|
||||
@@ -43,6 +46,7 @@ defineEmits(['update:productId', 'update:conditionId', 'submit']);
|
||||
{{ condition.name }} ({{ condition.code }})
|
||||
</option>
|
||||
</select>
|
||||
<p id="inventory-condition-help">Choose the condition for this individual copy.</p>
|
||||
<button class="button button--primary" type="submit" :disabled="isSaving">
|
||||
Create physical copy
|
||||
</button>
|
||||
|
||||
@@ -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