From 4dc8ac1e475338a6903ccf62368d2da159cc1254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Sun, 21 Sep 2025 17:42:24 +0300 Subject: [PATCH] =?UTF-8?q?List=20teki=20Card=20=C3=BCzeirnden=20de=C4=9Fi?= =?UTF-8?q?=C5=9Fiklikler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FormDevExpress kullanıldı. Tüm yetenekleriyle birlikte --- ui/src/views/form/FormButtons.tsx | 37 ++++--- ui/src/views/form/FormEdit.tsx | 6 +- ui/src/views/form/FormNew.tsx | 7 +- ui/src/views/form/FormView.tsx | 6 +- ui/src/views/form/SubForms.tsx | 1 + ui/src/views/list/Card.tsx | 149 +++++++++++++++++++++++++ ui/src/views/list/CardView.tsx | 176 ------------------------------ ui/src/views/list/List.tsx | 7 +- 8 files changed, 183 insertions(+), 206 deletions(-) create mode 100644 ui/src/views/list/Card.tsx delete mode 100644 ui/src/views/list/CardView.tsx diff --git a/ui/src/views/form/FormButtons.tsx b/ui/src/views/form/FormButtons.tsx index 9ea24981..e7791e66 100644 --- a/ui/src/views/form/FormButtons.tsx +++ b/ui/src/views/form/FormButtons.tsx @@ -16,6 +16,7 @@ import { GridExtraFilterState } from '../list/Utils' import { usePWA } from '@/utils/hooks/usePWA' const FormButtons = (props: { + isSubForm?: boolean mode: RowMode listFormCode: string id?: string @@ -33,6 +34,7 @@ const FormButtons = (props: { onActionView?: () => void }) => { const { + isSubForm, mode, listFormCode, id, @@ -168,21 +170,24 @@ const FormButtons = (props: { {!!commandColumnData?.buttons?.filter((item) => typeof item !== 'string').length && ( )} - + + {!isSubForm && ( + + )} {mode != 'new' && ( )} - {checkPermission(gridDto?.gridOptions.permissionDto.c) && ( + {checkPermission(gridDto?.gridOptions.permissionDto.c) && !isSubForm && (