diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php index 1efe012..dafae9d 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php @@ -272,7 +272,7 @@ new class extends Component
{{ $message }}
diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php index 8374a6f..a2d96f4 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php @@ -470,14 +470,6 @@ new class extends Component{{ $task->description }}
@endif -{{ __('jobs.tasks.tabs.no_materials') }}
+{{ $message }}
diff --git a/lang/en/jobs.php b/lang/en/jobs.php index 3e257f5..ea17276 100644 --- a/lang/en/jobs.php +++ b/lang/en/jobs.php @@ -148,6 +148,13 @@ return [ 'not_author' => 'You can edit and remove only your own comments.', ], ], + 'tabs' => [ + 'label' => 'Sections of task :title', + 'notes' => 'Checklist and comments', + 'images' => 'Images', + 'materials' => 'Materials and machines', + 'no_materials' => 'This task has no materials or machines.', + ], 'images' => [ 'title' => 'Images', 'list_of' => 'Images: :title', diff --git a/lang/fi/jobs.php b/lang/fi/jobs.php index a31fc4e..a0f5d6a 100644 --- a/lang/fi/jobs.php +++ b/lang/fi/jobs.php @@ -148,6 +148,13 @@ return [ 'not_author' => 'Voit muokata ja poistaa vain omia kommenttejasi.', ], ], + 'tabs' => [ + 'label' => 'Tehtävän :title osiot', + 'notes' => 'Tarkistuslista ja kommentit', + 'images' => 'Kuvat', + 'materials' => 'Materiaali ja koneet', + 'no_materials' => 'Tällä tehtävällä ei ole materiaaleja eikä koneita.', + ], 'images' => [ 'title' => 'Kuvat', 'list_of' => 'Kuvat: :title', diff --git a/resources/views/components/tabs.blade.php b/resources/views/components/tabs.blade.php new file mode 100644 index 0000000..c05c09e --- /dev/null +++ b/resources/views/components/tabs.blade.php @@ -0,0 +1,66 @@ +{{-- + Tabs after the WAI-ARIA tabs pattern, because TallStackUI's