浏览代码

issue list

Andrew 2 个月前
父节点
当前提交
5c50964319

+ 1
- 1
app/Filament/Resources/AlbumCategoryResource.php 查看文件

@@ -36,7 +36,7 @@ class AlbumCategoryResource extends Resource
36 36
                     Translate::make()->schema(fn (string $locale) => [
37 37
                         TextInput::make('name')->required($locale == 'zh_TW')->maxLength(40)->label("分類名稱")
38 38
                     ])
39
-                    ->locales(["zh_TW", "en", "jp"])
39
+                    ->locales(["zh_TW", "en"])
40 40
                     ->actions([
41 41
                         app(DeepLService::class)->createTranslationAction("Main", ["name"])
42 42
                     ])->columnSpan(5),

+ 1
- 1
app/Filament/Resources/AlbumResource.php 查看文件

@@ -93,7 +93,7 @@ class AlbumResource extends Resource
93 93
                         ])->visible(fn(Get $get): bool => $get('upload_type') == 2)->columnSpanFull(),
94 94
                     ])->columnSpanFull(),
95 95
                     Toggle::make('on_top')->inline()->label('置頂輪播')->columnSpanFull(),
96
-                    Toggle::make('homepage_top')->inline()->label('在首頁輪播')->columnSpanFull(),
96
+//                    Toggle::make('homepage_top')->inline()->label('在首頁輪播')->columnSpanFull(),
97 97
                 ])->columns(3),
98 98
             ]);
99 99
     }

+ 1
- 1
app/Filament/Resources/HistoryResource.php 查看文件

@@ -68,7 +68,7 @@ class HistoryResource extends Resource
68 68
                         ])->columnSpanFull(),
69 69
                     Group::make()->schema([
70 70
                         FileUpload::make('img_url')->label('圖片')->directory('histories')
71
-                            ->acceptedFileTypes(['image/jpeg', 'image/jpg', 'image/png', 'image/webp'])->required()->imageEditor()
71
+                            ->acceptedFileTypes(['image/jpeg', 'image/jpg', 'image/png', 'image/webp'])->imageEditor()
72 72
                             ->columnSpanFull(),
73 73
                     ])->columnSpanFull(),
74 74
                     Radio::make('visible')->label('顯示/不顯示')->options([1 => '顯示', 0 => '不顯示'])->inline()->default(1)->columnSpan(2),

+ 1
- 1
app/Filament/Resources/ProjectResource.php 查看文件

@@ -164,7 +164,7 @@ class ProjectResource extends Resource
164 164
                     Tab::make('空間資訊')->schema([
165 165
                         Group::make()->schema([
166 166
                             Translate::make()->schema(fn (string $locale) => [
167
-                                TextInput::make('contact_unit')->label('物管單位'),
167
+//                                TextInput::make('contact_unit')->label('物管單位'),
168 168
                                 TextInput::make('contact_phone')->label('物管電話'),
169 169
                                 TextInput::make('inversment_phone')->label('招商電話'),
170 170
                             ])

+ 1
- 1
database/migrations/2025_09_18_091406_create_projects_table.php 查看文件

@@ -23,7 +23,7 @@ return new class extends Migration
23 23
             $table->json("floor_plan")->comment("樓層規劃");
24 24
             $table->json("building_structure")->comment("建築結構");
25 25
             $table->json("design_unit")->comment("設計團隊");
26
-            $table->json("contact_unit")->comment("物管單位");
26
+            $table->json("contact_unit")->nullable()->comment("物管單位");
27 27
             $table->json("contact_phone")->comment("物管電話");
28 28
             $table->json("inversment_phone")->comment("招商電話");
29 29
             $table->tinyInteger("badge_type")->comment("標章呈現方式");