12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <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"
- ng-href="{{DataShareBusiness.getGroupUrl(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}"
- ng-href="{{DataShareBusiness.getGroupUrl(group)}}">
- {{ group.Name }}
- </md-button>
- </li>
- </ul>
-
- <!--<span>Need a room ?</span>
- <md-button class="md-primary md-group-button col-xs-12" ng-click="findFreeRoom()">
- Find a free room!
- </md-button>-->
- </div>
- </md-content>
- </md-sidenav>
|