update
This commit is contained in:
parent
fb679c7801
commit
f909a4b958
2 changed files with 77 additions and 5 deletions
|
@ -17,7 +17,7 @@ class Settings extends BaseSettings
|
|||
|
||||
protected static ?string $cluster = MicroweberCluster::class;
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-document-text';
|
||||
protected static ?string $navigationIcon = 'heroicon-o-cog';
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
|
|
|
@ -2,19 +2,91 @@
|
|||
|
||||
namespace Modules\Microweber\Filament\Clusters\Microweber\Pages;
|
||||
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\Section;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Pages\Page;
|
||||
use Modules\Microweber\Filament\Clusters\MicroweberCluster;
|
||||
use Outerweb\FilamentSettings\Filament\Pages\Settings as BaseSettings;
|
||||
|
||||
class Whitelabel extends Page
|
||||
class Whitelabel extends BaseSettings
|
||||
{
|
||||
protected static ?string $navigationGroup = 'Microweber';
|
||||
|
||||
protected static ?string $cluster = MicroweberCluster::class;
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-document-text';
|
||||
|
||||
protected static string $view = 'modules.microweber.filament.admin.pages.whitelabel';
|
||||
protected static ?string $navigationIcon = 'heroicon-o-puzzle-piece';
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
protected static ?string $navigationLabel = 'Whitelabel';
|
||||
|
||||
|
||||
public static function getNavigationLabel() : string
|
||||
{
|
||||
return self::$navigationLabel;
|
||||
}
|
||||
|
||||
public function getTitle() : string
|
||||
{
|
||||
return self::$navigationLabel;
|
||||
}
|
||||
|
||||
public function schema(): array
|
||||
{
|
||||
return [
|
||||
Section::make('Whitelabel')
|
||||
->schema([
|
||||
|
||||
TextInput::make('microweber.whitelabel.brand_name')
|
||||
->label('Brand Name'),
|
||||
|
||||
TextInput::make('microweber.whitelabel.brand_favicon')
|
||||
->label('Brand Favicon'),
|
||||
|
||||
TextInput::make('microweber.whitelabel.admin_login_white_label_url')
|
||||
->label('Admin login - White Label URL?'),
|
||||
|
||||
Checkbox::make('microweber.whitelabel.enable_support_links')
|
||||
->label('Enable support links?'),
|
||||
|
||||
TextInput::make('microweber.whitelabel.enable_support_links')
|
||||
->label('Enable support links'),
|
||||
|
||||
Textarea::make('microweber.whitelabel.powered_by_text')
|
||||
->label('Enter "Powered by" text'),
|
||||
|
||||
Checkbox::make('microweber.whitelabel.hide_powered_by_link')
|
||||
->label('Hide "Powered by" link'),
|
||||
|
||||
TextInput::make('microweber.whitelabel.logo_admin_panel')
|
||||
->label('Logo for Admin panel (size: 180x35px)'),
|
||||
|
||||
TextInput::make('microweber.whitelabel.logo_live_edit_toolbar')
|
||||
->label('Logo for Live-Edit toolbar (size: 50x50px)'),
|
||||
|
||||
TextInput::make('microweber.whitelabel.logo_login_screen')
|
||||
->label('Logo for Login screen (max width: 290px)'),
|
||||
|
||||
Checkbox::make('microweber.whitelabel.disable_microweber_marketplace')
|
||||
->label('Disable Microweber Marketplace'),
|
||||
|
||||
TextInput::make('microweber.whitelabel.external_login_server_button_text')
|
||||
->label('External Login Server Button Text'),
|
||||
|
||||
Checkbox::make('microweber.whitelabel.enable_external_login_server')
|
||||
->label('Enable External Login Server'),
|
||||
|
||||
Checkbox::make('microweber.whitelabel.enable_microweber_service_links')
|
||||
->label('Enable Microweber Service Links'),
|
||||
|
||||
|
||||
Textarea::make('microweber.whitelabel.admin_colors_sass')
|
||||
->label('Enter "Admin colors" sass'),
|
||||
|
||||
|
||||
])
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue