<script type="text/x-template" id="addvnet-template">
    <!-- full template HTML here -->

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3 v-html="headerText"></h3>
            </div>
            <div class="body">
                <div class="row" v-if="ddlCustomers.show">
                    <div class="col-sm-2 col-xs-12 row-label">* {{ getLabelText('GN0000889') }}: </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group
                             form-float">
                            <VueSelect id="ddlCustomers" :options="ddlCustomers.items" :selectedValue="this.selectedCustomerId" @selectchange="customerChangeHandler" />
                        </div>
                    </div>
                </div>
                <div class="row" v-if="ddlServers.show">
                    <div class="col-sm-2 col-xs-12 row-label">* {{ getLabelText('DGN1110254') }}: </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">

                        </div>
                        <VueSelect id="ddlServers" :options="ddlServers.items" :selectedValue="this.selectedServerId" @selectchange="serversChangeHandler" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <a v-if="!readOnly" @click.prevent="saveRecord"
                           :disabled="(ddlCustomers.items && ddlCustomers.items.length > 0 && ddlServers.items && ddlServers.items.length > 0 ? null : true)" 
                           class="btn btn-primary waves-effect btnAction">{{ getLabelText('GN0000281')}}
                        </a>
                        <a @click.prevent="cancelRecord" class="btn btn-primary waves-effect">{{ getLabelText('GN0000572')}} </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>


