Files
DiceCloud/app/imports/ui/properties/forms/AttributeConsumedForm.vue

31 lines
911 B
Vue

<template lang="html">
<div class="layout row">
<smart-combobox
label="Attribute"
hint="The attribute variable name that will be consumed"
style="flex-basis: 300px;"
:items="attributeList"
:value="model.variableName"
:error-messages="errors.variableName"
@change="change('variableName', ...arguments)"
/>
<text-field
label="Quantity"
hint="How much of the attribute will be consumed"
style="flex-basis: 300px;"
:value="model.quantity"
:error-messages="errors.quantity"
@change="change('quantity', ...arguments)"
/>
</div>
</template>
<script>
import propertyFormMixin from '/imports/ui/properties/forms/shared/propertyFormMixin.js';
import attributeListMixin from '/imports/ui/properties/forms/shared/lists/attributeListMixin.js';
export default {
mixins: [propertyFormMixin, attributeListMixin],
}
</script>