Movinf card title from cartouche to edit
This commit is contained in:
@@ -11,7 +11,6 @@ const Cartouche = (props: CartoucheProps) => {
|
||||
const { translate: t } = useTranslation();
|
||||
return (
|
||||
<>
|
||||
<h2>{record.label}</h2>
|
||||
<ul>
|
||||
{ record.created_at && <li>{t("resource.created_at")}: {record.created_at} {t("resource.created_at")}: <AuthorField partnerId={record.created_by} /></li> }
|
||||
{ record.updated_at && <li>{t("resource.updated_at")}: {record.updated_at} {t("resource.updated_by")}: <AuthorField partnerId={record.updated_by} /></li> }
|
||||
|
||||
@@ -41,6 +41,7 @@ const Edit = <T,>(props: EditProps) => {
|
||||
const record = query.data.data;
|
||||
return (
|
||||
<>
|
||||
<h2>{record.label}</h2>
|
||||
<Cartouche record={record}/>
|
||||
<CrudForm
|
||||
resourceBasePath={resourceBasePath}
|
||||
|
||||
Reference in New Issue
Block a user