diff --git a/src/frontend/src/pages/Index/Settings/AdminCenter/ReportTemplatePanel.tsx b/src/frontend/src/pages/Index/Settings/AdminCenter/ReportTemplatePanel.tsx index 1b84993e7d..66ad35c69c 100644 --- a/src/frontend/src/pages/Index/Settings/AdminCenter/ReportTemplatePanel.tsx +++ b/src/frontend/src/pages/Index/Settings/AdminCenter/ReportTemplatePanel.tsx @@ -1,3 +1,6 @@ +import { t } from '@lingui/macro'; + +import { YesNoButton } from '../../../../components/buttons/YesNoButton'; import { ApiEndpoints } from '../../../../enums/ApiEndpoints'; import { ModelType } from '../../../../enums/ModelType'; import { TemplateTable } from '../../../../tables/settings/TemplateTable'; @@ -10,8 +13,15 @@ export default function ReportTemplateTable() { templateEndpoint: ApiEndpoints.report_list, printingEndpoint: ApiEndpoints.report_print, additionalFormFields: { - page_size: {}, - landscape: {} + page_size: { + label: t`Page Size` + }, + landscape: { + label: t`Landscape`, + modelRenderer: (instance: any) => ( + + ) + } } }} /> diff --git a/src/frontend/src/tables/settings/TemplateTable.tsx b/src/frontend/src/tables/settings/TemplateTable.tsx index e5019a3d3e..c189811c96 100644 --- a/src/frontend/src/tables/settings/TemplateTable.tsx +++ b/src/frontend/src/tables/settings/TemplateTable.tsx @@ -161,8 +161,11 @@ export function TemplateTable({ }, ...Object.entries(additionalFormFields || {})?.map(([key, field]) => ({ accessor: key, + ...field, + title: field.label, sortable: false, - switchable: true + switchable: true, + render: field.modelRenderer })), BooleanColumn({ accessor: 'enabled', title: t`Enabled` }) ];