Commit 70542fb7 by Torkel Ödegaard

refactor(table views): #3466

parent 736d58e3
...@@ -9,53 +9,6 @@ ...@@ -9,53 +9,6 @@
<div class="page-wide"> <div class="page-wide">
<h2>Data sources</h2> <h2>Data sources</h2>
<!--
<div class="filter-controls-filters">
<div class="tight-form last">
<ul class="tight-form-list">
<li class="tight-form-item">Filters:</li>
<li class="tight-form-item">Name</li>
<li><value-select-dropdown></value-select-dropdown></li>
<li class="tight-form-item">URL</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 2 of 2 total</span>
</li>
</ul>
-->
<div ng-if="datasources.length === 0"> <div ng-if="datasources.length === 0">
<em>No datasources defined</em> <em>No datasources defined</em>
</div> </div>
...@@ -73,7 +26,9 @@ ...@@ -73,7 +26,9 @@
<tbody> <tbody>
<tr ng-repeat="ds in datasources"> <tr ng-repeat="ds in datasources">
<td> <td>
<i class="fa fa-database"></i> &nbsp; {{ds.name}} <a href="datasources/edit/{{ds.id}}">
<i class="fa fa-database"></i> &nbsp; {{ds.name}}
</a>
</td> </td>
<td> <td>
<span class="ellipsis">{{ds.url}}</span> <span class="ellipsis">{{ds.url}}</span>
......
...@@ -54,20 +54,20 @@ ...@@ -54,20 +54,20 @@
<tbody ng-repeat="invite in pendingInvites"> <tbody ng-repeat="invite in pendingInvites">
<tr ng-click="invite.expanded = !invite.expanded" ng-class="{'expanded': invite.expanded}"> <tr ng-click="invite.expanded = !invite.expanded" ng-class="{'expanded': invite.expanded}">
<td>{{invite.email}}</td> <td>{{invite.email}}</td>
<td ng-show="invite.name">{{invite.name}}</td> <td>{{invite.name}}</td>
<td class="text-right"> <td class="text-right">
<button class="btn btn-inverse btn-mini " data-clipboard-text="{{invite.url}}" clipboard-button ng-click="copyInviteToClipboard($event)"> <button class="btn btn-inverse btn-mini " data-clipboard-text="{{invite.url}}" clipboard-button ng-click="copyInviteToClipboard($event)">
<i class="fa fa-clipboard"></i> Copy Invite <i class="fa fa-clipboard"></i> Copy Invite
</button> </button>
&nbsp; &nbsp;
<a class="pointer"> <button class="btn btn-inverse btn-mini">
Details
<i ng-show="!invite.expanded" class="fa fa-caret-right"></i> <i ng-show="!invite.expanded" class="fa fa-caret-right"></i>
<i ng-show="invite.expanded" class="fa fa-caret-down"></i> <i ng-show="invite.expanded" class="fa fa-caret-down"></i>
</a> </button>
</td> </td>
</tr> </tr>
<tr ng-show="invite.expanded"> <tr ng-show="invite.expanded">
<td></td>
<td colspan="3"> <td colspan="3">
<a href="{{invite.url}}">{{invite.url}}</a><br><br> <a href="{{invite.url}}">{{invite.url}}</a><br><br>
<button class="btn btn-inverse btn-mini"> <button class="btn btn-inverse btn-mini">
......
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