diff --git a/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.css b/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.css index fa24a431..bdf4f270 100644 --- a/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.css +++ b/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.css @@ -17,10 +17,18 @@ padding: 24px max(calc(50vw - 325px), 10%) 60px; } +.settings-fields__heading { + margin-top: 20px; +} + .settings-form__full-line { grid-column: 1 / span 2; } +.settings-form__toggle { + margin-bottom: 12px; +} + .icon-picker { margin-left: -4px; margin-bottom: 20px; diff --git a/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.html b/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.html index c4e93ce8..e2a10a2e 100644 --- a/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.html +++ b/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.html @@ -5,6 +5,7 @@
+

General

Table display name @@ -31,6 +32,34 @@ info_outline + + Identity field + + None + {{field}} + + + + info_outline + + + + Allow export + + + + Allow import + + +

Table view

Columns visible by default - Autocomplete fields + Fields to search + name="search_fields" + [(ngModel)]="tableSettings.search_fields"> {{field}} info_outline +
+ + Ordering by field + + None + + {{field}} + + + + + Ascending + Descending + +
+ - Identity field - - None + Sort fields by + {{field}} - - info_outline - +
+

Record view

- Fields to search + Autocomplete fields + name="autocomplete_columns" + [(ngModel)]="tableSettings.autocomplete_columns"> {{field}} info_outline @@ -146,35 +190,8 @@ matTooltipPosition="above"> info_outline - -
- - Ordering by field - - None - - {{field}} - - - - - Ascending - Descending - -
- - - Sort fields by - - {{field}} - -
+
diff --git a/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.ts b/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.ts index 47a255d0..e6438e0d 100644 --- a/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.ts +++ b/frontend/src/app/components/dashboard/db-table-settings/db-table-settings.component.ts @@ -44,7 +44,9 @@ export class DbTableSettingsComponent implements OnInit { readonly_fields: [], sortable_by: [], columns_view: [], - sensitive_fields: [] + sensitive_fields: [], + allow_csv_export: true, + allow_csv_import: true, } public tableSettings: TableSettings = null; public defaultIcons = ['favorite', 'star', 'done', 'arrow_forward', 'key', 'lock', 'visibility', 'language', 'notifications', 'schedule']; diff --git a/frontend/src/app/components/dashboard/db-table/db-table.component.html b/frontend/src/app/components/dashboard/db-table/db-table.component.html index ecb589f7..7e086106 100644 --- a/frontend/src/app/components/dashboard/db-table/db-table.component.html +++ b/frontend/src/app/components/dashboard/db-table/db-table.component.html @@ -54,14 +54,16 @@

{{ displayName }}

filter_list Filter - -