Add a roles directive and properly recolor the roles
This commit is contained in:
parent
1cd4fa8d9b
commit
a79b181496
6 changed files with 105 additions and 20 deletions
5
static/directives/role-group.html
Normal file
5
static/directives/role-group.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<div class="btn-group btn-group-sm">
|
||||
<button ng-repeat="role in roles"
|
||||
type="button" class="btn" ng-click="setRole(role.id)"
|
||||
ng-class="(currentRole == role.id) ? ('active btn-' + role.kind) : 'btn-default'">{{ role.title }}</button>
|
||||
</div>
|
Reference in a new issue