diff --git a/web/pgadmin/browser/static/js/node.js b/web/pgadmin/browser/static/js/node.js index 66769223a..f5cb8cd02 100644 --- a/web/pgadmin/browser/static/js/node.js +++ b/web/pgadmin/browser/static/js/node.js @@ -368,7 +368,7 @@ define('pgadmin.browser.node', [ if (formType == 'fieldset') { // It is used to show, edit, create the object in the // properties tab. - view = new Backform.Fieldset({ + view = new Backform.Accordian({ el: el, model: newModel, schema: fields, diff --git a/web/pgadmin/misc/file_manager/__init__.py b/web/pgadmin/misc/file_manager/__init__.py index 1c29b3b05..ec956ea57 100644 --- a/web/pgadmin/misc/file_manager/__init__.py +++ b/web/pgadmin/misc/file_manager/__init__.py @@ -221,14 +221,13 @@ def file_manager_js(): mimetype="application/javascript") -@blueprint.route("/en.js") +@blueprint.route("/en.json") @login_required def language(): """render the required javascript""" return Response(response=render_template( - "file_manager/js/languages/en.js", _=gettext), - status=200, - mimetype="application/javascript") + "file_manager/js/languages/en.json", _=gettext), + status=200) @blueprint.route("/file_manager_config.js") diff --git a/web/pgadmin/misc/file_manager/static/js/utility.js b/web/pgadmin/misc/file_manager/static/js/utility.js index d9ed297ef..ae6b8b346 100644 --- a/web/pgadmin/misc/file_manager/static/js/utility.js +++ b/web/pgadmin/misc/file_manager/static/js/utility.js @@ -36,7 +36,7 @@ define([ }; /* Common function to load: - * en.js language file + * en.json language file * file_manager_config.js config file * return transaction id */ @@ -585,7 +585,7 @@ define([ result += ''; } else { - result += '
| '; result += '' + lg.name + ' | '; result += '' + lg.size + ' | ';
@@ -1096,8 +1096,8 @@ define([
*/
var lg = [],
- enjs = url_for('file_manager.index') + 'en.js',
- lgf = loadData(enjs);
+ enjson = url_for('file_manager.index') + 'en.json',
+ lgf = loadData(enjson);
if (lgf.readyState == 4) {
this.lg = lg = JSON.parse(lgf.responseText);
diff --git a/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss b/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss
index 2d90a67ff..404bf6d1b 100644
--- a/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss
+++ b/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss
@@ -5,6 +5,58 @@
.file_listing {
min-width: 100%;
+
+ .file_listing_table {
+ height: 100%;
+ display: block;
+ padding: 0;
+ overflow-y: hidden !important;
+ }
+
+ .file_listing_table thead {
+ display: table;
+ width: 100%;
+ }
+
+ .file_listing_table thead tr {
+ position: relative;
+ display: block;
+ width: 100%;
+ border-bottom: $panel-border;
+ }
+
+ .file_listing_table tbody {
+ display: block;
+ overflow: auto;
+ width: 100%;
+ /* 100% minus thead height */
+ height: calc(100% - 30px);
+ }
+
+ .file_listing_table tbody tr {
+ max-width: 100%;
+ width: 100%;
+ }
+
+ .file_listing_table tbody tr td:nth-child(1),
+ .file_listing_table thead tr th:nth-child(1) {
+ width: 100%;
+ min-width: 100%;
+ }
+
+ .file_listing_table tbody tr td:nth-child(2),
+ .file_listing_table thead tr th:nth-child(2) {
+ width: 100px;
+ min-width: 100px;
+ max-width: 100px;
+ }
+
+ .file_listing_table tbody tr td:nth-child(3),
+ .file_listing_table thead tr th:nth-child(3) {
+ width: 200px;
+ min-width: 200px;
+ max-width: 200px;
+ }
}
.file_listing #contents.grid li:hover,
diff --git a/web/pgadmin/misc/file_manager/templates/file_manager/js/languages/en.js b/web/pgadmin/misc/file_manager/templates/file_manager/js/languages/en.json
similarity index 84%
rename from web/pgadmin/misc/file_manager/templates/file_manager/js/languages/en.js
rename to web/pgadmin/misc/file_manager/templates/file_manager/js/languages/en.json
index 65d822f8d..cc2b91b4d 100644
--- a/web/pgadmin/misc/file_manager/templates/file_manager/js/languages/en.js
+++ b/web/pgadmin/misc/file_manager/templates/file_manager/js/languages/en.json
@@ -1,12 +1,3 @@
-/////////////////////////////////////////////////////////////
-//
-// pgAdmin 4 - PostgreSQL Tools
-//
-// Copyright (C) 2013 - 2019, The pgAdmin Development Team
-// This software is released under the PostgreSQL Licence
-//
-//////////////////////////////////////////////////////////////
-
{
"LANGUAGE_FILE_NOT_FOUND": "Language file not found.",
"upload_success": "File uploaded successfully.",
diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js
index a565edebc..246b30b75 100644
--- a/web/pgadmin/static/js/backform.pgadmin.js
+++ b/web/pgadmin/static/js/backform.pgadmin.js
@@ -38,6 +38,8 @@ define([
setGroupClassName: 'set-group pg-el-12',
tabClassName: 'backform-tab pg-el-12',
setGroupContentClassName: 'fieldset-content pg-el-12',
+ accordianGroupClassName: 'accordian-group pg-el-12',
+ accordianContentClassName: 'accordian-content pg-el-12',
hiddenClassName: 'd-none',
});
@@ -429,12 +431,14 @@ define([
offColor: 'primary',
size: 'small',
},
+ controlLabelClassName: Backform.controlLabelClassName,
+ controlsClassName: Backform.controlsClassName,
extraClasses: [],
helpMessage: null,
},
template: _.template([
- '',
- ' ',
+ '',
+ ' ',
' ',
' |
|---|