123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <md-sidenav class="md-sidenav-left md-whiteframe-z2 md-sidebar" md-component-id="left" md-is-locked-open="$mdMedia('gt-md')">
- <md-toolbar class="md-theme-indigo">
- <h1 class="md-toolbar-tools">Chronos</h1>
- </md-toolbar>
- <md-content layout-padding ng-controller="SideBarController">
- <!--<md-button ng-click="close()" class="md-primary" hide-gt-md>
- Close Sidenav Left
- </md-button>
- <p hide-md show-gt-md>
- This sidenav is locked open on your device. To go back to the default behavior,
- narrow your display.
- </p>-->
- <div lu-busy="sidebar">
- <md-autocomplete
- md-selected-item="Search.selected"
- md-search-text="Search.value"
- md-selected-item-change="goTo(item)"
- md-items="item in search(ctrl.searchText)"
- md-item-text="item.Name"
- md-min-length="1"
- placeholder="Type a group name...">
- <md-item-template>
- <span md-highlight-text="ctrl.searchText" md-highlight-flags="^i">{{item.Name}}</span>
- </md-item-template>
- <md-not-found>
- No groups matching "{{Search.value}}" were found.
- </md-not-found>
- </md-autocomplete>
-
- <ul class="col-sm-12 sidebar-group-list">
- <li ng-show="DataShareBusiness.CurrentGroups.length != 0" class="col-xs-12">
- <md-button class="md-primary md-hue-1 md-group-button col-xs-12"
- ui-sref="home({group: DataShareBusiness.getSearchString(DataShareBusiness.getCurrentGroup().Parent)})">
- ..
- </md-button>
- </li>
- <li ng-repeat="group in getCurrentGroups()" class="col-xs-12">
- <md-button class="md-primary md-hue-1 md-group-button col-xs-12"
- ng-class="{'md-group-button-checked': DataShareBusiness.getCurrentGroup().Id == group.Id}"
- ui-sref="home({group: DataShareBusiness.getSearchString(group)})">
- {{ group.Name }}
- </md-button>
- </li>
- </ul>
-
- <div ng-hide="isInState('freeroom')">
- <span>Need a room ?</span>
- <md-button class="md-primary md-group-button col-xs-12" ui-sref="freeroom">
- Find a free room!
- </md-button>
- </div>
- </div>
- </md-content>
- </md-sidenav>
|