<dialog-ok-cancel title="{{ permission.IsNew ? 'Add' : 'Edit'}} permission {{ permission.Name }}">
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">Name</label>
        <div class="col-sm-9">
            <input autofocus id="name" class="form-control input-permission-name" ng-model="permission.Name" required ng-disabled="!permission.IsNew"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Allowed</label>
        <div class="col-sm-9">
            <button type="button" class="btn btn-primary dropdown-toggle btn-select btn-block" data-toggle="dropdown" href="" lu-enable-permission="{{ neededPermission }}">
                <span class="pull-left">{{ permission.Value ? 'Yes' : 'No' }}</span>
                <span class="caret pull-right"></span>
            </button>
            <ul class="dropdown-menu col-sm-12">
                <li><a href="" ng-click="permission.Value = false">No</a></li>
                <li><a href="" ng-click="permission.Value = true">Yes</a></li>
            </ul>
        </div>
    </div>
</dialog-ok-cancel>