Finish work on the new role group and make sure it only appears when the new layout is enabled
This commit is contained in:
parent
a4cacd7307
commit
54097c351e
9 changed files with 58 additions and 32 deletions
16
static/directives/new-role-group.html
Normal file
16
static/directives/new-role-group.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="new-role-group btn-group btn-group-sm">
|
||||
<div class="dropdown" style="text-align: left;">
|
||||
<button class="btn btn-default" ng-class="getRoleInfo(currentRole).kind" data-toggle="dropdown">
|
||||
<span ng-if="currentRole" class="role-title">{{ getRoleInfo(currentRole).title }}</span>
|
||||
<span ng-if="!currentRole">(Select)</span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" ng-class="pullLeft == 'true' ? '' : 'pull-right'">
|
||||
<li ng-repeat="roleInfo in fullRoles" ng-class="roleInfo.kind">
|
||||
<a href="javascript:void(0)" ng-click="setRole(roleInfo.id)">{{ roleInfo.title }}
|
||||
<div class="role-help-text">{{ roleInfo.description }}</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
Reference in a new issue