<div class="content-header">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-6">
                <h2>{{::vm.translate.get('Countries')}}</h2>
            </div>
        </div>
    </div>
</div>
<section class="content">
    <div class="container-fluid">
        <div class="card">
            <div class="card-header">
                <h2 class="card-title ng-binding ng-scope" ng-if="!vm.isEditMode">{{::vm.translate.get('Create Country')}}</h2>
                <h2 class="card-title ng-binding ng-scope" ng-if="vm.isEditMode">{{::vm.translate.get('Edit Country')}}</h2>
            </div>
            <div class="card-body">
                <form name="countryForm" class="form-horizontal">
                    <div class="col-sm-offset-2 bg-danger" ng-show="vm.validationErrors">
                        <ul>
                            <li ng-repeat="error in vm.validationErrors track by $index">{{error}}</li>
                        </ul>
                    </div>
                    <div class="form-group">
                        <label class="control-label">{{::vm.translate.get('Code')}} 2</label>
                        <div>
                            <input name="id" ng-model="vm.country.id" class="form-control" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">{{::vm.translate.get('Name')}}</label>
                        <div>
                            <input name="name" ng-model="vm.country.name" class="form-control" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">{{::vm.translate.get('Code')}} 3</label>
                        <div>
                            <input name="code3" ng-model="vm.country.code3" class="form-control" />
                        </div>
                    </div>

                    <div class="form-group">
                        <div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" ng-model="vm.country.isShippingEnabled"> {{::vm.translate.get('Is Shipping Enabled')}}
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" ng-model="vm.country.isBillingEnabled"> {{::vm.translate.get('Is Billing Enabled')}}
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" ng-model="vm.country.isCityEnabled"> {{::vm.translate.get('Display City')}}
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" ng-model="vm.country.isZipCodeEnabled"> {{::vm.translate.get('Display Postal Code')}}
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" ng-model="vm.country.isDistrictEnabled"> {{::vm.translate.get('Display District')}}
                                </label>
                            </div>
                        </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="countries" class="btn btn-default">{{::vm.translate.get('Cancel')}}</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>