Remove DocumentForm schema and update Turkmen translations for modal actions and notifications; refactor web routes for cleaner syntax.
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Filament\Resources\Documents\Schemas;
|
|
||||||
|
|
||||||
use Filament\Forms\Components\FileUpload;
|
|
||||||
use Filament\Forms\Components\Select;
|
|
||||||
use Filament\Forms\Components\TextInput;
|
|
||||||
use Filament\Schemas\Schema;
|
|
||||||
|
|
||||||
class DocumentForm
|
|
||||||
{
|
|
||||||
public static function configure(Schema $schema): Schema
|
|
||||||
{
|
|
||||||
return $schema
|
|
||||||
->components([
|
|
||||||
Select::make('pilgrim_id')
|
|
||||||
->relationship('pilgrim', 'last_name')
|
|
||||||
->searchable()
|
|
||||||
->preload()
|
|
||||||
->required(),
|
|
||||||
TextInput::make('title')
|
|
||||||
->required(),
|
|
||||||
FileUpload::make('file')
|
|
||||||
->required()
|
|
||||||
->downloadable(),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -11,5 +11,7 @@
|
|||||||
"Name": "Ady",
|
"Name": "Ady",
|
||||||
"Logout": "Çykyş",
|
"Logout": "Çykyş",
|
||||||
"Edit": "Üýtget",
|
"Edit": "Üýtget",
|
||||||
"Delete": "Poz"
|
"Delete": "Poz",
|
||||||
|
"Save changes": "Üýtgeşmeli ýatda sakla",
|
||||||
|
"Cancel": "Ýap"
|
||||||
}
|
}
|
||||||
|
|||||||
16
lang/vendor/filament-actions/tk/detach.php
vendored
16
lang/vendor/filament-actions/tk/detach.php
vendored
@@ -4,16 +4,16 @@ return [
|
|||||||
|
|
||||||
'single' => [
|
'single' => [
|
||||||
|
|
||||||
'label' => 'Ayır',
|
'label' => 'Aýyr',
|
||||||
|
|
||||||
'modal' => [
|
'modal' => [
|
||||||
|
|
||||||
'heading' => ':label ayır',
|
'heading' => ':label aýyr',
|
||||||
|
|
||||||
'actions' => [
|
'actions' => [
|
||||||
|
|
||||||
'detach' => [
|
'detach' => [
|
||||||
'label' => 'Ayır',
|
'label' => 'Aýyr',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
@@ -23,7 +23,7 @@ return [
|
|||||||
'notifications' => [
|
'notifications' => [
|
||||||
|
|
||||||
'detached' => [
|
'detached' => [
|
||||||
'title' => 'Ayrıldı',
|
'title' => 'Aýryldy',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
@@ -32,16 +32,16 @@ return [
|
|||||||
|
|
||||||
'multiple' => [
|
'multiple' => [
|
||||||
|
|
||||||
'label' => 'Seçiliyi ayır',
|
'label' => 'Saýlananlary aýyr',
|
||||||
|
|
||||||
'modal' => [
|
'modal' => [
|
||||||
|
|
||||||
'heading' => ':label seçiliyi ayır ',
|
'heading' => ':label saýlananlary aýyr ',
|
||||||
|
|
||||||
'actions' => [
|
'actions' => [
|
||||||
|
|
||||||
'detach' => [
|
'detach' => [
|
||||||
'label' => 'Seçiliyi ayır',
|
'label' => 'Saýlananlary aýyr',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
@@ -51,7 +51,7 @@ return [
|
|||||||
'notifications' => [
|
'notifications' => [
|
||||||
|
|
||||||
'detached' => [
|
'detached' => [
|
||||||
'title' => 'Ayrıldı',
|
'title' => 'Aýryldy',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
8
lang/vendor/filament-actions/tk/modal.php
vendored
8
lang/vendor/filament-actions/tk/modal.php
vendored
@@ -2,20 +2,20 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'confirmation' => 'Bunu yapmak istediğinizden emin misiniz?',
|
'confirmation' => 'Bu hereketi tassyklaýanyzmy?',
|
||||||
|
|
||||||
'actions' => [
|
'actions' => [
|
||||||
|
|
||||||
'cancel' => [
|
'cancel' => [
|
||||||
'label' => 'İptal',
|
'label' => 'Ýap',
|
||||||
],
|
],
|
||||||
|
|
||||||
'confirm' => [
|
'confirm' => [
|
||||||
'label' => 'Onayla',
|
'label' => 'Tassykla',
|
||||||
],
|
],
|
||||||
|
|
||||||
'submit' => [
|
'submit' => [
|
||||||
'label' => 'Gönder',
|
'label' => 'Ugrat',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
2
lang/vendor/filament-actions/tk/view.php
vendored
2
lang/vendor/filament-actions/tk/view.php
vendored
@@ -13,7 +13,7 @@ return [
|
|||||||
'actions' => [
|
'actions' => [
|
||||||
|
|
||||||
'close' => [
|
'close' => [
|
||||||
'label' => 'Kapat',
|
'label' => 'Ýap',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -2,6 +2,4 @@
|
|||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::view('/', 'welcome');
|
||||||
return view('welcome');
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user