|
@@ -76,6 +76,16 @@ from desktop.views import _ko
|
|
|
margin-top: 0
|
|
margin-top: 0
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .assist-database-list {
|
|
|
|
|
+ position:relative;
|
|
|
|
|
+ width:100%;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ background-color: #FFF;
|
|
|
|
|
+ margin-bottom: 1px;
|
|
|
|
|
+ margin-top:3px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.assist-header-actions {
|
|
.assist-header-actions {
|
|
|
float: right;
|
|
float: right;
|
|
|
margin-right: 3px;
|
|
margin-right: 3px;
|
|
@@ -326,7 +336,6 @@ from desktop.views import _ko
|
|
|
<script type="text/html" id="assist-db-inner-panel">
|
|
<script type="text/html" id="assist-db-inner-panel">
|
|
|
<div class="assist-inner-panel" style="overflow: auto; display:none;" data-bind="event: { 'scroll': function (data, event) { if (selectedSource()) { selectedSource().repositionActions(data, event); } } }">
|
|
<div class="assist-inner-panel" style="overflow: auto; display:none;" data-bind="event: { 'scroll': function (data, event) { if (selectedSource()) { selectedSource().repositionActions(data, event); } } }">
|
|
|
<!-- ko template: { if: breadcrumb() !== null, name: 'assist-db-breadcrumb' } --><!-- /ko -->
|
|
<!-- ko template: { if: breadcrumb() !== null, name: 'assist-db-breadcrumb' } --><!-- /ko -->
|
|
|
- <ul class="nav nav-list" style="position:relative; border: none; padding: 0; background-color: #FFF; margin-bottom: 1px; margin-top:3px;width:100%;">
|
|
|
|
|
<!-- ko template: { ifnot: selectedSource, name: 'assist-sources-template' } --><!-- /ko -->
|
|
<!-- ko template: { ifnot: selectedSource, name: 'assist-sources-template' } --><!-- /ko -->
|
|
|
<!-- ko with: selectedSource -->
|
|
<!-- ko with: selectedSource -->
|
|
|
<!-- ko template: { ifnot: selectedDatabase, name: 'assist-databases-template' }--><!-- /ko -->
|
|
<!-- ko template: { ifnot: selectedDatabase, name: 'assist-databases-template' }--><!-- /ko -->
|
|
@@ -334,7 +343,6 @@ from desktop.views import _ko
|
|
|
<!-- ko template: { name: "assist-tables-template" } --><!-- /ko -->
|
|
<!-- ko template: { name: "assist-tables-template" } --><!-- /ko -->
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
- </ul>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
@@ -473,16 +481,18 @@ from desktop.views import _ko
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/html" id="assist-sources-template">
|
|
<script type="text/html" id="assist-sources-template">
|
|
|
- <li class="assist-inner-header">
|
|
|
|
|
- ${_('sources')}
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <ul class="assist-tables" data-bind="foreach: sources">
|
|
|
|
|
- <li class="assist-table pointer">
|
|
|
|
|
- <a class="assist-table-link" href="javascript: void(0);" data-bind="text: name, click: function () { $parent.selectedSource($data); }"></a>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </li>
|
|
|
|
|
|
|
+ <ul class="nav nav-list assist-database-list">
|
|
|
|
|
+ <li class="assist-inner-header">
|
|
|
|
|
+ ${_('sources')}
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <ul class="assist-tables" data-bind="foreach: sources">
|
|
|
|
|
+ <li class="assist-table pointer">
|
|
|
|
|
+ <a class="assist-table-link" href="javascript: void(0);" data-bind="text: name, click: function () { $parent.selectedSource($data); }"></a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/html" id="assist-db-header-actions">
|
|
<script type="text/html" id="assist-db-header-actions">
|
|
@@ -494,7 +504,7 @@ from desktop.views import _ko
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/html" id="assist-databases-template">
|
|
<script type="text/html" id="assist-databases-template">
|
|
|
- <div data-bind="visibleOnHover: { selector: '.hover-actions', override: isSearchVisible() || loading() }" style="position: relative; width:100%">
|
|
|
|
|
|
|
+ <ul class="nav nav-list assist-database-list" data-bind="visibleOnHover: { selector: '.hover-actions', override: isSearchVisible() || loading() }" >
|
|
|
<li class="assist-inner-header">
|
|
<li class="assist-inner-header">
|
|
|
${_('Databases')}
|
|
${_('Databases')}
|
|
|
<!-- ko template: 'assist-db-header-actions' --><!-- /ko -->
|
|
<!-- ko template: 'assist-db-header-actions' --><!-- /ko -->
|
|
@@ -522,11 +532,11 @@ from desktop.views import _ko
|
|
|
<li data-bind="visible: hasErrors">
|
|
<li data-bind="visible: hasErrors">
|
|
|
<span>${ _('The database list cannot be loaded.') }</span>
|
|
<span>${ _('The database list cannot be loaded.') }</span>
|
|
|
</li>
|
|
</li>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </ul>
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/html" id="assist-tables-template">
|
|
<script type="text/html" id="assist-tables-template">
|
|
|
- <div data-bind="visibleOnHover: { selector: '.hover-actions', override: $parent.reloading() || isSearchVisible() }" style="position: relative; width:100%">
|
|
|
|
|
|
|
+ <ul class="nav nav-list assist-database-list" data-bind="visibleOnHover: { selector: '.hover-actions', override: $parent.reloading() || isSearchVisible() }">
|
|
|
<li class="assist-inner-header" data-bind="visible: !$parent.loading() && !$parent.hasErrors()">
|
|
<li class="assist-inner-header" data-bind="visible: !$parent.loading() && !$parent.hasErrors()">
|
|
|
${_('Tables')}
|
|
${_('Tables')}
|
|
|
<!-- ko template: 'assist-db-header-actions' --><!-- /ko -->
|
|
<!-- ko template: 'assist-db-header-actions' --><!-- /ko -->
|
|
@@ -537,15 +547,14 @@ from desktop.views import _ko
|
|
|
<div><input id="searchInput" class="clearable" type="text" placeholder="${ _('Table name...') }" style="width:90%;" data-bind="hasFocus: editingSearch, clearable: filter.query, value: filter.query, valueUpdate: 'afterkeydown'"/></div>
|
|
<div><input id="searchInput" class="clearable" type="text" placeholder="${ _('Table name...') }" style="width:90%;" data-bind="hasFocus: editingSearch, clearable: filter.query, value: filter.query, valueUpdate: 'afterkeydown'"/></div>
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
- <div class="table-container">
|
|
|
|
|
|
|
+ <li class="table-container">
|
|
|
<div class="center" data-bind="visible: loading() || $parent.loading()">
|
|
<div class="center" data-bind="visible: loading() || $parent.loading()">
|
|
|
<!--[if !IE]><!--><i class="fa fa-spinner fa-spin" style="font-size: 20px; color: #BBB"></i><!--<![endif]-->
|
|
<!--[if !IE]><!--><i class="fa fa-spinner fa-spin" style="font-size: 20px; color: #BBB"></i><!--<![endif]-->
|
|
|
<!--[if IE]><img src="${ static('desktop/art/spinner.gif') }"/><![endif]-->
|
|
<!--[if IE]><img src="${ static('desktop/art/spinner.gif') }"/><![endif]-->
|
|
|
</div>
|
|
</div>
|
|
|
<!-- ko template: { ifnot: loading() || $parent.loading(), name: 'assist-entries' } --><!-- /ko -->
|
|
<!-- ko template: { ifnot: loading() || $parent.loading(), name: 'assist-entries' } --><!-- /ko -->
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
<div id="assistQuickLook" class="modal hide fade">
|
|
<div id="assistQuickLook" class="modal hide fade">
|
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
|
<a href="#" class="close" data-dismiss="modal">×</a>
|
|
<a href="#" class="close" data-dismiss="modal">×</a>
|
|
@@ -576,14 +585,14 @@ from desktop.views import _ko
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
</tr>
|
|
</tr>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
- <!-- ko foreach: rows -->
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td data-bind="text: $index()+1"></td>
|
|
|
|
|
- <!-- ko foreach: $data -->
|
|
|
|
|
- <td style="white-space: pre;" data-bind="text: $data"></td>
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
- </tr>
|
|
|
|
|
|
|
+ <!-- ko foreach: rows -->
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td data-bind="text: $index()+1"></td>
|
|
|
|
|
+ <!-- ko foreach: $data -->
|
|
|
|
|
+ <td style="white-space: pre;" data-bind="text: $data"></td>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|