48 lines
1.2 KiB
Vue
48 lines
1.2 KiB
Vue
<template lang="html">
|
|
<div class="feature-form">
|
|
<text-field
|
|
ref="focusFirst"
|
|
label="Name"
|
|
:value="model.name"
|
|
:error-messages="errors.name"
|
|
@change="change('name', ...arguments)"
|
|
/>
|
|
|
|
<inline-computation-field
|
|
label="Summary"
|
|
hint="This will appear in the card in the character sheet"
|
|
:model="model.summary"
|
|
:error-messages="errors.summary"
|
|
@change="({path, value, ack}) =>
|
|
$emit('change', {path: ['summary', ...path], value, ack})"
|
|
/>
|
|
|
|
<inline-computation-field
|
|
label="Description"
|
|
hint="Text that does not fit in the summary"
|
|
:model="model.description"
|
|
:error-messages="errors.description"
|
|
@change="({path, value, ack}) =>
|
|
$emit('change', {path: ['description', ...path], value, ack})"
|
|
/>
|
|
|
|
<smart-combobox
|
|
label="Tags"
|
|
multiple
|
|
chips
|
|
deletable-chips
|
|
hint="Used to let slots find this property in a library, should otherwise be left blank"
|
|
:value="model.tags"
|
|
@change="change('tags', ...arguments)"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="js">
|
|
import propertyFormMixin from '/imports/ui/properties/forms/shared/propertyFormMixin.js';
|
|
|
|
export default {
|
|
mixins: [propertyFormMixin],
|
|
}
|
|
</script>
|