<template>
    <v-row dense v-if="activeRecord">
        <v-col cols="12">
            <cs-edit-box 
                ref="en"
                :control="controls.en"
                :errors="errorsManager.ByField('en')"
                v-model="activeRecord.en"
                @focus="errorsManager.ResetField('en')"
                @blur="errorsManager.Validate('en')"
            />
        </v-col>
    </v-row>
</template>

<script>
    export default {
        props: {
            editable: {required: true},
        },

        computed: {
            form() {
                return this.editable.form;
            },
        },

        mounted() {
            setTimeout( () => {
                this.$refs.en.Focus();
            }, 250)
        },

        components: {
            CsEditBox: require('@CsVueComp/controls/texts/CsEditBox').default, 
        },
        
        mixins: [
            require('@CsVueMix/Forminput/Forminput')
        ],

        name: 'TranslationsEnEdit',
    }
</script>