Commit 58dc282c by Nick Christus

updated-list-views: updating table layout for org users

parent e63ff167
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
<thead> <thead>
<tr> <tr>
<th style="width: 48px;"></th> <th style="width: 48px;"></th>
<th style="width: auto;"><strong>Name</strong></th> <th><strong>Name</strong></th>
<th style="width: auto;"><strong>Url</strong></th> <th><strong>Url</strong></th>
<th style="width: 60px;"></th> <th style="width: 60px;"></th>
<th style="width: 65px;"></th> <th style="width: 65px;"></th>
<th style="width: 34px;"></th> <th style="width: 34px;"></th>
...@@ -76,10 +76,7 @@ ...@@ -76,10 +76,7 @@
<label for="alert1" class="cr1"></label> <label for="alert1" class="cr1"></label>
</td> </td>
<td> <td>
<span class="ellipsis"> <i class="fa fa-database"></i> &nbsp; {{ds.name}}
<i class="fa fa-database"></i> &nbsp;
{{ds.name}}
</span>
</td> </td>
<td> <td>
<span class="ellipsis">{{ds.url}}</span> <span class="ellipsis">{{ds.url}}</span>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
</ul> </ul>
</topnav> </topnav>
<div class="page-container"> <div class="page-container" style="background: transparent; border: 0;">
<div class="page"> <div class="page">
<h2>Organization users</h2> <h2>Organization users</h2>
...@@ -18,21 +18,69 @@ ...@@ -18,21 +18,69 @@
<tabset> <tabset>
<tab heading="Users ({{users.length}})"> <tab heading="Users ({{users.length}})">
<table class="grafana-options-table form-inline">
<tr> <div class="filter-controls-filters">
<th>Login</th> <div class="tight-form last">
<th>Email</th> <ul class="tight-form-list">
<th>Role</th> <li class="tight-form-item">Filters:</li>
<th></th> <li class="tight-form-item">Login</li>
</tr> <li><!-- <value-select-dropdown></value-select-dropdown> --></li>
<li class="tight-form-item">Role</li>
<li><!-- <value-select-dropdown></value-select-dropdown> --></li>
<li class="tight-form-item">
<a class="pointer">
<i class="fa fa-pencil"></i>
</a>
</li>
</ul>
<div class="clearfix"></div>
</div>
</div>
<ul class="filter-controls-actions">
<li>
<div class="dropdown">
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">
<input class="cr1" id="state-enabled" type="checkbox">
<label for="state-enabled" class="cr1"></label> <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a>All</a></li>
</ul>
</div>
</li>
<li>
<div class="dropdown">
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">
Bulk Actions &nbsp; <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a>Update notifications</a></li>
</ul>
</div>
</li>
<li>
<span class="filter-controls-actions-selected">0 selected, showing 1 of 1 total</span>
</li>
</ul>
<table class="filter-table form-inline">
<thead>
<tr>
<th>Login</th>
<th>Email</th>
<th>Role</th>
<th style="width: 34px;"></th>
</tr>
</thead>
<tr ng-repeat="user in users"> <tr ng-repeat="user in users">
<td>{{user.login}}</td> <td>{{user.login}}</td>
<td>{{user.email}}</td> <td><span class="ellipsis">{{user.email}}</span></td>
<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 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> </select>
</td> </td>
<td style="width: 1%"> <td>
<a ng-click="removeUser(user)" class="btn btn-danger btn-mini"> <a ng-click="removeUser(user)" class="btn btn-danger btn-mini">
<i class="fa fa-remove"></i> <i class="fa fa-remove"></i>
</a> </a>
......
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
margin-bottom: 40px; margin-bottom: 40px;
} }
.tab-pane > .filter-controls-filters {
margin-top: 20px;
}
// Actions // Actions
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
.filter-table { .filter-table {
width: 100%; width: 100%;
table-layout: fixed; // table-layout: fixed;
border-collapse: collapse; border-collapse: collapse;
} }
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
} }
.filter-table th { .filter-table th {
width: auto;
padding: 10px 15px 10px 0; padding: 10px 15px 10px 0;
text-align: left; text-align: left;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment