Using chips for adding/viewing contact categories

This commit is contained in:
Ludovic Marcotte
2015-06-12 11:47:50 -04:00
committed by Francis Lachapelle
parent 8557b2a161
commit a166d1b4cf
5 changed files with 40 additions and 37 deletions
@@ -17,9 +17,13 @@
</div>
<div class="msg-header-content">
<h1 class="sg-md-display-2--light" ng-bind-html="card.$fullname()"><!-- fullname --></h1>
<h6 class="sg-md-display-2-subheader">{{card.$description()}}
<span class="label radius" ng-repeat="category in card.categories">{{category.value}}</span>
</h6>
<h6 class="sg-md-display-2-subheader">{{card.$description()}}</h6>
<md-chips ng-model="card.categories"
readonly="true">
<md-chip-template>
{{$chip.value}}
</md-chip-template>
</md-chips>
</div>
<div class="sg-icon-bar--vertical">
<md-button class="iconButton" aria-label="Edit" ng-show="currentFolder.isEditable" ui-sref="app.addressbook.card.editor({addressbookId: currentFolder.id, cardId: card.id})">