<div class="card">
    <div class="card-header">
        <h2>{{::vm.translate.get('Import Tax Rate')}}</h2>
    </div>
    <div class="card-body">
        <form name="taxRateImportForm" 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="col-sm-offset-2">
                <p>TaxClassId(*), CountryId(*), StateOrProvinceName, ZipCode, Rate(*)</p>
            </div>
            <div class="form-group">
                <label class="control-label">{{::vm.translate.get('CSV Delimiter')}}</label>
                <div>
                    <input name="csvDelimiter" ng-model="vm.taxRateImport.csvDelimiter" class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <div>
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" ng-model="vm.taxRateImport.includeHeader">{{::vm.translate.get('Header Included')}}
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label">{{::vm.translate.get('CSV File')}}</label>
                <div>
                    <input class="form-control" type="file" ngf-select ng-model="vm.taxRateImport.csvFile" name="csvFile" ngf-accept="'.csv'">
                    <span ng-show="vm.taxRateImport.csvFile">{{vm.taxRateImport.csvFile.name}}</span>
                </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="tax-rates" class="btn btn-default">{{::vm.translate.get('Cancel')}}</button>
                </div>
            </div>
        </form>
    </div>
</div>