<div class="content-header">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-6">
                <h2>{{::vm.translate.get('Application Settings')}}</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" >{{::vm.translate.get('Application Settings')}}</h2>
            </div>
            <div class="card-body">
                <form name="configurationForm" class="form-horizontal">
                    <div class="col-sm-offset-4 bg-danger" ng-show="vm.validationErrors">
                        <ul>
                            <li ng-repeat="error in vm.validationErrors">{{error}}</li>
                        </ul>
                    </div>
                    <div class="form-group row" ng-repeat="item in vm.settings">
                        <label class="col-sm-4 control-label" title="{{item.key}}">{{::vm.translate.get(item.key)}}</label>
                        <div class="col-sm-8">
                            <input name="name" ng-model="item.value" class="form-control" />
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="">
                            <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="dashboard" class="btn btn-default">{{::vm.translate.get('Cancel')}}</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>