Commit 4098bf1e authored by Jochen Kressin's avatar Jochen Kressin
Browse files

adapted styles

parent 175c9020
<div class="searchguard app-container ng-scope">
<div class="kuiLocalNav">
<div class="localNav">
<div class="kuiLocalNavRow">
<div class="kuiLocalNavRow__section">
<div class="kuiLocalTitle">
<div class="localNavRow">
<div class="localNavRow__section">
<div class="localTitle">
Select Tenant
<br />
</div>
</div>
<div class="kuiLocalNavRow__section">
<div class="kuiLocalMenu">
<div class="localNavRow__section">
<div class="localMenu">
<div class="kuiLocalMenuItem"
ng-class="{'kuiLocalMenuItem-isSelected': kbnTopNav.isCurrent(menuItem.key), 'kuiLocalMenuItem-isDisabled': menuItem.disableButton()}"
<div class="localMenuItem"
ng-class="{'localMenuItem-isSelected': kbnTopNav.isCurrent(menuItem.key), 'localMenuItem-isDisabled': menuItem.disableButton()}"
ng-click="ctrl.showSubmenu = !ctrl.showSubmenu"
tooltip="Show more"
tooltip-placement="bottom"
tooltip-popup-delay="400"
tooltip-append-to-body="1"
ng-show="ctrl.showroles">
<div class="kuiLocalMenuItem__icon kuiIcon fa-user"></div>
<div class="localMenuItem__icon fa fa-user"></div>
{{ctrl.username}}
</div>
<div class="kuiLocalMenuItem kuiLocalMenuItem-isDisabled" ng-show="!ctrl.showroles">
<div class="localMenuItem localMenuItem-isDisabled" ng-show="!ctrl.showroles">
<div>
<div class="kuiLocalMenuItem__icon kuiIcon fa-user"></div>
<div class="localMenuItem__icon fa fa-user"></div>
{{ctrl.username}}
</div>
</div>
......@@ -36,18 +36,18 @@
</div>
<div class="kuiLocalDropdown" ng-show="ctrl.showSubmenu">
<button class="kuiLocalDropdownCloseButton" ng-click="ctrl.showSubmenu = false">
<div class="localDropdown" ng-show="ctrl.showSubmenu">
<button class="localDropdownCloseButton" ng-click="ctrl.showSubmenu = false">
<span class="fa fa-chevron-circle-up"></span>
</button>
<div id="template_wrapper">
<div class="kuiLocalDropdownPanels">
<div class="kuiLocalDropdownPanel">
<div class="localDropdownPanels">
<div class="localDropdownPanel">
<!-- Title -->
<div data-test-subj="shareUiTitle" class="kuiLocalDropdownTitle ng-binding">
<div data-test-subj="shareUiTitle" class="localDropdownTitle ng-binding">
Roles for user {{ctrl.username}}
</div>
<div class="kuiLocalDropdownWarning ng-scope">
<div class="localDropdownWarning ng-scope">
<ul>
<li ng-repeat="role in ctrl.rolesArray" ng-bind="role"></li>
</ul>
......@@ -57,17 +57,17 @@
</div>
</div>
<div class="kuiLocalNavRow kuiLocalNavRow--secondary" ng-show="ctrl.showfilter">
<div class="kuiLocalSearch">
<div class="localNavRow localNavRow--secondary" ng-show="ctrl.showfilter">
<div class="localSearch">
<input
class="kuiLocalSearchInput"
class="localSearchInput"
type="text"
placeholder="Filter..."
autocomplete="off"
ng-model="ctrl.tenantSearch"
>
<button class="kuiLocalSearchButton">
<span class="kuiIcon fa-search"></span>
<button class="localSearchButton">
<span class="fa fa-search"></span>
</button>
</div>
</div>
......@@ -87,87 +87,87 @@
<div class="col-xs-12">
<table class="table">
<thead>
<tr>
<th class="kuiTableHeaderCell">Name</th>
<th class="kuiTableHeaderCell">Permissions</th>
<th class="kuiTableHeaderCell"></th>
<th class="kuiTableHeaderCell"></th>
<th class="kuiTableHeaderCell"></th>
</tr>
<tr>
<th class="tableHeaderCell">Name</th>
<th class="tableHeaderCell">Permissions</th>
<th class="tableHeaderCell"></th>
<th class="tableHeaderCell"></th>
<th class="tableHeaderCell"></th>
</tr>
</thead>
<tbody>
<tr class="kuiTableRow" ng-class="{'selected': ctrl.currentTenant == ''}" ng-show="ctrl.globalEnabled && (ctrl.tenantSearch == '' || 'global'.startsWith(ctrl.tenantSearch.toLowerCase()))">
<td class="kuiTableRowCell">
{{ctrl.GLOBAL_USER_LABEL}}
</td>
<td class="kuiTableRowCell">
<div ng-if="ctrl.GLOBAL_USER_WRITEABLE">read/write</div>
<div ng-if="!ctrl.GLOBAL_USER_WRITEABLE">read only</div>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.GLOBAL_USER_LABEL, ctrl.GLOBAL_USER_VALUE, 'dash')">Show Dashboards
</button>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.GLOBAL_USER_LABEL, ctrl.GLOBAL_USER_VALUE, 'vis')">Show Visualizations
</button>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == ''"
ng-show="ctrl.currentTenant != ctrl.GLOBAL_USER_VALUE"
ng-click="ctrl.selectTenant(ctrl.GLOBAL_USER_LABEL, ctrl.GLOBAL_USER_VALUE)">Select
</button>
</td>
</tr>
<tr class="kuiTableRow" ng-class="{'selected': ctrl.currentTenant == ctrl.PRIVATE_USER_VALUE}" ng-show="ctrl.privateEnabled && (ctrl.tenantSearch == '' || 'private'.startsWith(ctrl.tenantSearch.toLowerCase()))">
<td class="kuiTableRowCell">
{{ctrl.PRIVATE_USER_LABEL}}
</td>
<td class="kuiTableRowCell">
<div>read/write</div>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.PRIVATE_USER_LABEL, ctrl.PRIVATE_USER_VALUE, 'dash')">Show Dashboards
</button>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.PRIVATE_USER_LABEL, ctrl.PRIVATE_USER_VALUE, 'vis')">Show Visualizations
</button>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == ctrl.PRIVATE_USER_VALUE"
ng-click="ctrl.selectTenant(ctrl.PRIVATE_USER_LABEL, ctrl.PRIVATE_USER_VALUE)">Select
</button>
</td>
</tr>
<tr class="kuiTableRow" ng-show="ctrl.tenantSearch == '' || tenantkey.toLowerCase().startsWith(ctrl.tenantSearch.toLowerCase())" ng-repeat="tenantkey in ctrl.tenantkeys" ng-class="{'selected': tenantkey == ctrl.currentTenant}">
<td class="kuiTableRowCell">
{{tenantkey}}
</td>
<td class="kuiTableRowCell">
<div ng-if="ctrl.tenants[tenantkey]">read/write</div>
<div ng-if="!ctrl.tenants[tenantkey]">read only</div>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(tenantkey, tenantkey, 'dash')">Show Dashboards
</button>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(tenantkey, tenantkey, 'vis')">Show Visualizations
</button>
</td>
<td class="actions kuiTableRowCell">
<button class="kuiButton kuiButton--primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(tenantkey, tenantkey)">Select
</button>
</td>
</tr>
<tr class="tableRow" ng-class="{'selected': ctrl.currentTenant == ''}" ng-show="ctrl.globalEnabled && (ctrl.tenantSearch == '' || 'global'.startsWith(ctrl.tenantSearch.toLowerCase()))">
<td class="tableRowCell">
{{ctrl.GLOBAL_USER_LABEL}}
</td>
<td class="tableRowCell">
<div ng-if="ctrl.GLOBAL_USER_WRITEABLE">read/write</div>
<div ng-if="!ctrl.GLOBAL_USER_WRITEABLE">read only</div>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.GLOBAL_USER_LABEL, ctrl.GLOBAL_USER_VALUE, 'dash')">Show Dashboards
</button>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.GLOBAL_USER_LABEL, ctrl.GLOBAL_USER_VALUE, 'vis')">Show Visualizations
</button>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == ''"
ng-show="ctrl.currentTenant != ctrl.GLOBAL_USER_VALUE"
ng-click="ctrl.selectTenant(ctrl.GLOBAL_USER_LABEL, ctrl.GLOBAL_USER_VALUE)">Select
</button>
</td>
</tr>
<tr class="tableRow" ng-class="{'selected': ctrl.currentTenant == ctrl.PRIVATE_USER_VALUE}" ng-show="ctrl.privateEnabled && (ctrl.tenantSearch == '' || 'private'.startsWith(ctrl.tenantSearch.toLowerCase()))">
<td class="tableRowCell">
{{ctrl.PRIVATE_USER_LABEL}}
</td>
<td class="tableRowCell">
<div>read/write</div>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.PRIVATE_USER_LABEL, ctrl.PRIVATE_USER_VALUE, 'dash')">Show Dashboards
</button>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(ctrl.PRIVATE_USER_LABEL, ctrl.PRIVATE_USER_VALUE, 'vis')">Show Visualizations
</button>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == ctrl.PRIVATE_USER_VALUE"
ng-click="ctrl.selectTenant(ctrl.PRIVATE_USER_LABEL, ctrl.PRIVATE_USER_VALUE)">Select
</button>
</td>
</tr>
<tr class="tableRow" ng-show="ctrl.tenantSearch == '' || tenantkey.toLowerCase().startsWith(ctrl.tenantSearch.toLowerCase())" ng-repeat="tenantkey in ctrl.tenantkeys" ng-class="{'selected': tenantkey == ctrl.currentTenant}">
<td class="tableRowCell">
{{tenantkey}}
</td>
<td class="tableRowCell">
<div ng-if="ctrl.tenants[tenantkey]">read/write</div>
<div ng-if="!ctrl.tenants[tenantkey]">read only</div>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(tenantkey, tenantkey, 'dash')">Show Dashboards
</button>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(tenantkey, tenantkey, 'vis')">Show Visualizations
</button>
</td>
<td class="actions tableRowCell">
<button class="btn btn-primary" ng-disabled="ctrl.currentTenant == tenantkey"
ng-click="ctrl.selectTenant(tenantkey, tenantkey)">Select
</button>
</td>
</tr>
</tbody>
</table>
</div>
......
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