Skip to content

Commit

Permalink
Merge commit '049b74685d4be41527449cc32f667e8ad853282d' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Jun 12, 2024
2 parents 83a0074 + 049b746 commit af12ebc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Filament/Blocks/ImageSpatie.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static function make(
string $context = 'form',
): Block {
return Block::make($name)
->label('Immagine')
->schema([
Hidden::make('img_uuid')
->default(fn () => Str::uuid()->toString())
Expand Down Expand Up @@ -53,7 +54,8 @@ function (HasForms $livewire, SpatieMediaLibraryFileUpload $component, Temporary
}
),

TextInput::make('caption'),
TextInput::make('caption')
->label('didascalia'),
])
->columns('form' === $context ? 2 : 1);
}
Expand Down
2 changes: 2 additions & 0 deletions Filament/Blocks/VideoSpatie.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static function make(
string $context = 'form',
): Block {
return Block::make($name)
->label('Video')
->schema([
Hidden::make('img_uuid')
->default(fn () => Str::uuid()->toString())
Expand Down Expand Up @@ -64,6 +65,7 @@ function (HasForms $livewire, SpatieMediaLibraryFileUpload $component, Temporary
->columnSpanFull(),
*/
TextInput::make('caption')
->label('didascalia')
// ->columnSpanFull()
,

Expand Down

0 comments on commit af12ebc

Please sign in to comment.