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
< form name = "form" >
< div class = "tight-form" >
< ul class = "tight-form-list" >
2015-06-01 17:01:04 +02:00
< li class = "tight-form-item" style = "width: 127px" >
2015-02-08 10:23:35 +01:00
< strong > Username or Email< / strong >
< / li >
< li >
< input type = "text" ng-model = "user.loginOrEmail" required class = "input-xlarge tight-form-input" placeholder = "user@email.com or username" >
< / li >
< li class = "tight-form-item" >
role
< / li >
< li >
2015-06-01 17:01:04 +02:00
< select type = "text" ng-model = "user.role" class = "input-medium tight-form-input" ng-options = "f for f in ['Viewer', 'Editor', 'Read Only Editor', 'Admin']" >
2015-02-08 10:23:35 +01:00
< / select >
< / li >
< li >
< button class = "btn btn-success tight-form-btn" ng-click = "addUser()" > Add< / button >
< / li >
< div class = "clearfix" > < / div >
< / ul >
2015-01-15 19:14:07 +01:00
< / div >
2015-02-08 10:23:35 +01:00
< / form >
< br >
2015-05-01 09:48:07 +02:00
< table class = "grafana-options-table form-inline" >
2015-04-04 10:14:51 +02:00
< tr >
< th > Login< / th >
< th > Email< / th >
< th > Role< / th >
< th > < / th >
< / tr >
2015-02-08 10:23:35 +01:00
< tr ng-repeat = "user in users" >
2015-04-04 10:14:51 +02:00
< td > {{user.login}}< / td >
2015-02-08 10:23:35 +01:00
< td > {{user.email}}< / td >
< td >
2015-06-01 17:01:04 +02:00
< 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)" >
2015-05-01 09:48:07 +02:00
< / select >
2015-02-08 10:23:35 +01:00
< / 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 >
2015-01-15 19:14:07 +01:00
< / div >
< / div >