<div class="card">
    <div class="card-header">
        <h2>{{::vm.translate.get('Clone Product')}}</h2>
    </div>
    <div class="card-body">
        <form name="cloneForm" class="form-horizontal">
            <div class="col-sm-offset-2 bg-danger" ng-show="vm.validationErrors">
                <ul>
                    <li ng-repeat="error in vm.validationErrors">{{error}}</li>
                </ul>
            </div>
            <div class="form-group">
                <label class="control-label">{{::vm.translate.get('Product Name')}}</label>
                <div>
                    <input name="name" ng-model="vm.productClone.name" ng-change="vm.updateSlug()" required class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label">{{::vm.translate.get('Slug')}}</label>
                <div>
                    <input name="slug" ng-model="vm.productClone.slug" required class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <div>
                    <button class="btn btn-success float-right" ng-click="vm.save()"><span class="fa fa-save"></span> {{::vm.translate.get('Save')}}</button>
                    <button ui-sref="product-edit({id: vm.productId})" class="btn btn-default">{{::vm.translate.get('Cancel')}}</button>
                </div>
            </div>
        </form>
    </div>
</div>
