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",
|
||||
"Logout": "Çykyş",
|
||||
"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' => [
|
||||
|
||||
'label' => 'Ayır',
|
||||
'label' => 'Aýyr',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => ':label ayır',
|
||||
'heading' => ':label aýyr',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'detach' => [
|
||||
'label' => 'Ayır',
|
||||
'label' => 'Aýyr',
|
||||
],
|
||||
|
||||
],
|
||||
@@ -23,7 +23,7 @@ return [
|
||||
'notifications' => [
|
||||
|
||||
'detached' => [
|
||||
'title' => 'Ayrıldı',
|
||||
'title' => 'Aýryldy',
|
||||
],
|
||||
|
||||
],
|
||||
@@ -32,16 +32,16 @@ return [
|
||||
|
||||
'multiple' => [
|
||||
|
||||
'label' => 'Seçiliyi ayır',
|
||||
'label' => 'Saýlananlary aýyr',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => ':label seçiliyi ayır ',
|
||||
'heading' => ':label saýlananlary aýyr ',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'detach' => [
|
||||
'label' => 'Seçiliyi ayır',
|
||||
'label' => 'Saýlananlary aýyr',
|
||||
],
|
||||
|
||||
],
|
||||
@@ -51,7 +51,7 @@ return [
|
||||
'notifications' => [
|
||||
|
||||
'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 [
|
||||
|
||||
'confirmation' => 'Bunu yapmak istediğinizden emin misiniz?',
|
||||
'confirmation' => 'Bu hereketi tassyklaýanyzmy?',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'cancel' => [
|
||||
'label' => 'İptal',
|
||||
'label' => 'Ýap',
|
||||
],
|
||||
|
||||
'confirm' => [
|
||||
'label' => 'Onayla',
|
||||
'label' => 'Tassykla',
|
||||
],
|
||||
|
||||
'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' => [
|
||||
|
||||
'close' => [
|
||||
'label' => 'Kapat',
|
||||
'label' => 'Ýap',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
@@ -2,6 +2,4 @@
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
Route::view('/', 'welcome');
|
||||
|
||||
Reference in New Issue
Block a user