finish client brief step

This commit is contained in:
isUnknown 2024-12-20 07:19:46 +01:00
parent e4f06ad854
commit cdeebbf8c8
11 changed files with 162 additions and 234 deletions

View file

@ -1,8 +1,5 @@
title: PDF
accept:
mime: application/pdf
extension: pdf
focus: false
fields:
comments:

View file

@ -27,10 +27,8 @@ tabs:
pdf:
label: PDF
type: files
multiple: false
template: pdf
accept:
extension: pdf
multiple: false
description:
type: textarea
size: tiny

View file

@ -40,7 +40,7 @@ return [
'content' => [
'date' => date('Y-m-d h:i')
]
]);
]);
$newPage = $page->update([
"pdf" => $newFile->id()
@ -50,7 +50,7 @@ return [
} catch (Exception $e) {
return [
'error' => $e->getMessage(),
'error' => $e->getMessage() . " in " . $e->getFile() . " line " . $e->getLine(),
];
}
}

View file

@ -8,6 +8,10 @@ function getFileData($file) {
'quality' => 80,
'format' => 'webp'
])->url(),
'parent' => [
"title" => (string) $file->parent()->title(),
"uri" => $file->parent()->uri()
],
'uuid' => (string) $file->uuid(),
'name' => $file->filename(),
'label' => (string) $file->label(),