Projekt RTE
This commit is contained in:
1 parent
6c8fe94cbf
commit
63e4fdfee6
7 files changed
+46
-21
No files matched your search
-1
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Filament\Resources\Projektes\RelationManagers;
|
namespace App\Filament\Resources\Projektes\RelationManagers;
|
||||||
|
|||||||
@@ -45,10 +45,25 @@ class ProjekteForm
|
|||||||
RichEditor::make('beschreibung')
|
RichEditor::make('beschreibung')
|
||||||
->toolbarButtons([
|
->toolbarButtons([
|
||||||
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'link'],
|
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'link'],
|
||||||
['h2', 'h3', 'alignStart', 'alignCenter', 'alignEnd'],
|
['alignStart', 'alignCenter', 'alignEnd', 'horizontalRule'],
|
||||||
['bulletList', 'orderedList', 'table'],
|
['bulletList', 'orderedList', 'table'],
|
||||||
['undo', 'redo'],
|
['undo', 'redo'],
|
||||||
])->columnSpan(2),
|
])->floatingToolbars([
|
||||||
|
'paragraph' => [
|
||||||
|
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
|
||||||
|
],
|
||||||
|
'heading' => [
|
||||||
|
'h1', 'h2', 'h3',
|
||||||
|
],
|
||||||
|
'table' => [
|
||||||
|
'tableAddColumnBefore', 'tableAddColumnAfter', 'tableDeleteColumn',
|
||||||
|
'tableAddRowBefore', 'tableAddRowAfter', 'tableDeleteRow',
|
||||||
|
'tableMergeCells', 'tableSplitCell',
|
||||||
|
'tableToggleHeaderRow',
|
||||||
|
'tableDelete',
|
||||||
|
],
|
||||||
|
])
|
||||||
|
->columnSpan(2),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,11 @@ class ProjektesTable
|
|||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('interner_name')
|
TextColumn::make('interner_name')
|
||||||
->label('Interner Name')
|
->label('Interner Name')
|
||||||
->badge()
|
|
||||||
->color('info')
|
->color('info')
|
||||||
|
->wrap()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
TextColumn::make('offizieller_name')
|
TextColumn::make('offizieller_name')
|
||||||
|
->wrap()
|
||||||
->searchable()
|
->searchable()
|
||||||
->label('Offizieller Name'),
|
->label('Offizieller Name'),
|
||||||
TextColumn::make('gutachter.company'),
|
TextColumn::make('gutachter.company'),
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class DatabaseSeeder extends Seeder
|
|||||||
PlansSeeder::class,
|
PlansSeeder::class,
|
||||||
TextblockSeeder::class,
|
TextblockSeeder::class,
|
||||||
InhaltsverzeichnisSeeder::class,
|
InhaltsverzeichnisSeeder::class,
|
||||||
|
ProjekteSeeder::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (app()->isLocal()) {
|
if (app()->isLocal()) {
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class ProjekteImportSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
class ProjekteSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$sql = "INSERT INTO `projektes` (`id`, `konto_id`, `auftraggeber_id`, `gutachter_id`, `interner_name`, `offizieller_name`, `beschreibung`, `erstellung`, `status`, `created_at`, `updated_at`, `deleted_at`)
|
||||||
|
VALUES
|
||||||
|
('1', '1', '4', '25', 'P309 nht GE04-07 08 EF_Version B', 'Gerlos Eigentumswohnungen - Häuser 3-6', '<p>dasD</p>', '2025-10-10', 'entwurf', '2025-10-03 15:58:28', '2025-10-03 15:58:28', NULL);
|
||||||
|
";
|
||||||
|
DB::unprepared($sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,6 +10,11 @@
|
|||||||
@apply relative sm:max-w-3xl;
|
@apply relative sm:max-w-3xl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@layer utilities {
|
||||||
|
.fi-prose {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
/* light theme */
|
/* light theme */
|
||||||
|
|||||||
Reference in new issue
Block a user