2015-02-23 18:29:01 +01:00
< topnav title = "Organization" icon = "fa fa-fw fa-users" subnav = "true" >
2015-02-07 12:28:47 +01:00
< ul class = "nav" >
2015-02-23 18:29:01 +01:00
< li class = "active" > < a href = "org/users" > Users< / a > < / li >
2015-02-07 12:28:47 +01:00
< / ul >
< / topnav >
2015-02-08 10:23:35 +01:00
< div class = "page-container" >
< div class = "page" >
2015-05-19 10:16:32 +02:00
< h2 > Organization users< / h2 >
2015-02-08 10:23:35 +01:00
2015-07-16 10:44:55 +02:00
< button class = "btn btn-success pull-right" ng-click = "openInviteModal()" >
Invite Users
< / button >
2015-02-08 10:23:35 +01:00
< br >
2015-07-17 09:51:34 +02:00
< tabset >
< tab heading = "Users ({{users.length}})" >
< table class = "grafana-options-table form-inline" >
< tr >
< th > Login< / th >
< th > Email< / th >
< th > Role< / th >
< th > < / th >
< / tr >
< tr ng-repeat = "user in users" >
< td > {{user.login}}< / td >
< td > {{user.email}}< / td >
< td >
< select type = "text" ng-model = "user.role" class = "input-medium" ng-options = "f for f in ['Viewer', 'Editor', 'Read Only Editor', 'Admin']" ng-change = "updateOrgUser(user)" >
< / select >
< / td >
< td style = "width: 1%" >
< a ng-click = "removeUser(user)" class = "btn btn-danger btn-mini" >
< i class = "fa fa-remove" > < / i >
< / a >
< / td >
< / tr >
< / table >
< / tab >
< tab heading = "Pending Invitations ({{pendingInvites.length}})" >
2015-07-20 10:57:39 +02:00
< div class = "grafana-list-item" ng-repeat = "invite in pendingInvites" ng-click = "invite.expanded = !invite.expanded" >
{{invite.email}}
< span ng-show = "invite.name" style = "padding-left: 20px" > {{invite.name}}< / span >
< span class = "pull-right" >
2015-07-20 14:26:49 +02:00
< button class = "btn btn-inverse btn-mini " data-clipboard-text = "{{invite.url}}" clipboard-button ng-click = "copyInviteToClipboard($event)"
2015-07-20 10:57:39 +02:00
< i class = "fa fa-clipboard" > < / i > Copy Invite
< / button >
< a class = "pointer" >
< i ng-show = "!invite.expanded" class = "fa fa-caret-right" > < / i >
< i ng-show = "invite.expanded" class = "fa fa-caret-down" > < / i >
< / a >
< / span >
< div ng-show = "invite.expanded" >
2015-07-20 14:26:49 +02:00
< a href = "{{invite.url}}" > {{invite.url}}< / a > < br >
2015-07-20 10:57:39 +02:00
< button class = "btn btn-inverse btn-mini" >
< i class = "fa fa-envelope-o" > < / i > Resend invite
< / button >
< button class = "btn btn-inverse btn-mini" ng-click = "revokeInvite(invite, $event)" >
< i class = "fa fa-remove" style = "color: red" > < / i > Revoke invite
< / button >
< span style = "padding-left: 15px" >
Invited: < em > {{invite.createdOn | date: 'shortDate'}} by {{invite.invitedBy}} < / em >
< / span >
< div >
< / div >
2015-07-17 09:51:34 +02:00
< / tab >
< / tabset >
2015-07-16 10:44:55 +02:00
2015-01-15 19:14:07 +01:00
< / div >
< / div >