finish client brief step
This commit is contained in:
parent
e4f06ad854
commit
cdeebbf8c8
11 changed files with 162 additions and 234 deletions
|
|
@ -1,8 +1,5 @@
|
|||
title: PDF
|
||||
|
||||
accept:
|
||||
mime: application/pdf
|
||||
extension: pdf
|
||||
focus: false
|
||||
fields:
|
||||
comments:
|
||||
|
|
|
|||
|
|
@ -27,10 +27,8 @@ tabs:
|
|||
pdf:
|
||||
label: PDF
|
||||
type: files
|
||||
multiple: false
|
||||
template: pdf
|
||||
accept:
|
||||
extension: pdf
|
||||
multiple: false
|
||||
description:
|
||||
type: textarea
|
||||
size: tiny
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue