<form method="post" class="form-horizontal">
    <legend>Group Detail</legend>
    <div class="control-group">
        <label for="txtName" class="control-label">Name</label>

        <div class="controls">
            <input type="text" id="txtName" ng-model="group.Name"/>
        </div>
    </div>

    <div class="control-group">
        <label for="ulPermissions" class="control-label">Permissions</label>

        <div class="controls">
            <ul id="ulPermissions">
                <li ng-repeat="permission in group.Permissions">
                    <label class="checkbox">
                        <input type="checkbox" ng-model="permission.Enabled"> {{permission.Name}}
                    </label>
                </li>
                <!--<li ng-repeat="group in user.Groups">{{group}}</li>-->
            </ul>

        </div>
    </div>
    <div class="form-actions">
        <button class="btn btn-primary" ng-click="save()">Save</button>
    </div>
</form>
