<form method="post" class="form-horizontal">
    <h2>Group Detail</h2>

    <div class="form-group">
        <label for="txtName" class="col-md-2 control-label">Name</label>

        <div class="col-md-10">
            <input type="text" id="txtName" class="form-control" ng-model="group.Name"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 control-label">Permissions</label>

        <div class="col-md-10">
            <div class="checkbox" ng-repeat="permission in group.Permissions">
                <label>
                    <input type="checkbox" ng-model="permission.Enabled"> {{permission.Name}}
                </label>
                <!--<li ng-repeat="group in user.Groups">{{group}}</li>-->
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <button ng-click="save()" class="btn btn-primary">Save</button>
        </div>
    </div>
</form>
