<div class="container">
    <div class="col-md-12 col-sm-12 col-xs-12 no-padding">
        <div ng-controller="GroupMenu" ng-model="currentMenu" ng-init="currentMenu = 'new'" ng-include="'group/menu'" class="row"></div>
        <div class="row">
            <div class="col-md-12 no-padding">
                <div class="row">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <i class="fa fa-users"></i> Editar Grupo
                        </div>
                        <div class="panel-body">
                            <div class="col-md-6 col-md-offset-3">
                                <br/>
                                <div class="thumbnail">
                                    <div class="caption">
                                        <form>
                                            <div class="row center-block" style="position: absolute">
                                                <div id="fileupload" ng-controller="UploaderController" data-file-upload="options" ng-class="{'fileupload-processing': processing() || loadingFiles}">
                                                    <span class="btn btn-default btn-sm btn-block fileinput-button">
                                                        <i class="fa fa-refresh fa-spin" ng-if="active() > 0"></i>
                                                        <i class="fa fa-camera" ng-if="active() == 0"></i>
                                                        Subir logo
                                                        <input type="file" name="files[]" multiple ng-disabled="disabled">
                                                    </span>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <img ng-src="{{image.url}}" class="img-responsive">
                                            </div>
                                            <div class="form-group">
                                                <input ng-model="group.title" type="text" class="form-control" id="exampleInputEmail1" placeholder="Nombre del grupo">
                                            </div>
                                            <div class="form-group">
                                                <textarea ng-model="group.text" class="form-control" id="exampleInputPassword1" placeholder="Descripción"></textarea>
                                            </div>
                                            <div class="form-group">
                                                <label ng-if="group.privado" ng-click="group.privado = false">
                                                    <i class="fa fa-check-square-o" ng-model="group.privado"></i>
                                                    Privado
                                                </label>
                                                <label ng-if="!group.privado" ng-click="group.privado = true">
                                                    <i class="fa fa-square-o" ng-model="group.privado"></i>
                                                    Privado
                                                </label>
                                            </div>
                                            <button type="submit" class="btn btn-success" ng-click="actionSubmit()">
                                                {{submitTitle}} <i class="fa fa-floppy-o"></i>
                                            </button>
                                            <a ng-href="/#/group/{{group._id}}" class="btn btn-default btn-primary">
                                                Ver <i class="fa fa-eye"></i>
                                            </a>
                                        </form>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>                
            </div>
        </div>
    </div>
</div>