Kalenderabgleich ueber iCal von weiteren Portalfunktionen abgrenzen
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m37s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m37s
This commit is contained in:
1 parent
25b5a61461
commit
8927f2eeb1
10 files changed
+25
-22
No files matched your search
@@ -27,11 +27,11 @@ class ChannelResource extends Resource
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Vermietung';
|
||||
|
||||
protected static ?string $navigationLabel = 'Portale & Kalender';
|
||||
protected static ?string $navigationLabel = 'Kalenderabgleich (iCal)';
|
||||
|
||||
protected static ?string $modelLabel = 'Portalkanal';
|
||||
protected static ?string $modelLabel = 'iCal-Verbindung';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Portale & Kalender';
|
||||
protected static ?string $pluralModelLabel = 'Kalenderabgleich (iCal)';
|
||||
|
||||
protected static ?int $navigationSort = 4;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ protected function handleRecordCreation(array $data): Model
|
||||
|
||||
protected function getCreatedNotificationTitle(): ?string
|
||||
{
|
||||
return 'Portalkanal angelegt – eigener Exportlink automatisch erzeugt';
|
||||
return 'iCal-Verbindung angelegt – Exportlink automatisch erzeugt';
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
|
||||
@@ -13,7 +13,7 @@ class ListChannels extends ListRecords
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
CreateAction::make(),
|
||||
CreateAction::make()->label('iCal-Verbindung anlegen'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ public static function configure(Schema $schema, bool $selectProperty = false):
|
||||
->extraAttributes(['style' => 'overflow-wrap:anywhere'])
|
||||
->columnSpanFull(),
|
||||
TextInput::make('name')
|
||||
->label('Name')
|
||||
->label('Name der Kalenderverbindung')
|
||||
->placeholder('z. B. FeWo-direkt')
|
||||
->required()
|
||||
->maxLength(100),
|
||||
@@ -50,7 +50,8 @@ public static function configure(Schema $schema, bool $selectProperty = false):
|
||||
Select::make('booking_model')->label('Buchungsmodell')->options(ChannelBookingModel::class)->default(ChannelBookingModel::Mixed)->required()
|
||||
->helperText('Fachliche Einordnung; löst keine automatischen Buchungsentscheidungen aus.'),
|
||||
Select::make('connector')
|
||||
->label('Anbindung')
|
||||
->label('Kalenderanbindung')
|
||||
->helperText('Diese Verbindung gleicht Belegungszeiträume über iCal ab. Weitere Portalfunktionen benötigen eine eigene Anbindung.')
|
||||
->options($registry->options())
|
||||
->default('ical')
|
||||
->live()
|
||||
|
||||
@@ -33,13 +33,13 @@ public static function configure(Table $table, ?Property $owner = null): Table
|
||||
->recordTitleAttribute('name')
|
||||
->defaultSort('id')
|
||||
->contentGrid(['md' => 2, '2xl' => 3])
|
||||
->emptyStateHeading('Noch keine Portalkanäle')
|
||||
->emptyStateDescription('Legen Sie einen frei benannten Kanal für eine Ihrer Wohnungen an. Sein eigener Exportlink wird beim Speichern automatisch erzeugt.')
|
||||
->description('Jeder Kanal hat einen eigenen Exportlink. Einstellungen ändern Sie über „Bearbeiten“, Abgleiche und Protokolle finden Sie im Zusatzmenü.')
|
||||
->emptyStateHeading('Noch keine iCal-Verbindungen')
|
||||
->emptyStateDescription('Legen Sie eine Kalenderverbindung für eine Ihrer Wohnungen an. Ihr eigener iCal-Exportlink wird beim Speichern automatisch erzeugt.')
|
||||
->description('Hier verwalten Sie ausschließlich den Belegungsabgleich über iCal. Weitere Portalfunktionen werden separat angebunden.')
|
||||
->modifyQueryUsing(fn (Builder $query) => $query->withCount(['blockedPeriods as review_count' => fn ($blocks) => $blocks->where('needs_review', true)]))
|
||||
->columns([
|
||||
Stack::make([
|
||||
TextColumn::make('name')->label('Portal')->weight('bold')->searchable()->sortable()->wrap()->extraAttributes(['style' => 'overflow-wrap:anywhere']),
|
||||
TextColumn::make('name')->label('Kalenderverbindung')->weight('bold')->searchable()->sortable()->wrap()->extraAttributes(['style' => 'overflow-wrap:anywhere']),
|
||||
TextColumn::make('property.name')->label('Wohnung')->visible($owner === null)->searchable()->color('gray')->wrap(),
|
||||
TextColumn::make('channel_state')->label('Status')->badge()->wrap()
|
||||
->state(fn (Channel $record): string => match (true) {
|
||||
@@ -70,9 +70,9 @@ public static function configure(Table $table, ?Property $owner = null): Table
|
||||
])->space(2),
|
||||
])
|
||||
->headerActions($owner ? [
|
||||
CreateAction::make()->using(fn (array $data): Channel => app(ConfigureChannel::class)->handle($owner, $data))
|
||||
->modalDescription('Name und Anbindung wählen. Der eigene Exportlink entsteht automatisch beim Speichern. Die externe Importadresse kann auch später ergänzt werden. Für den normalen kanalübergreifenden Betrieb den regulären Exportmodus bewusst wählen.')
|
||||
->successNotificationTitle('Portal angelegt – eigener Exportlink automatisch erzeugt'),
|
||||
CreateAction::make()->label('iCal-Verbindung anlegen')->using(fn (array $data): Channel => app(ConfigureChannel::class)->handle($owner, $data))
|
||||
->modalDescription('Kalenderverbindung benennen und iCal-Anbindung wählen. Der eigene Exportlink entsteht automatisch beim Speichern. Weitere Portalfunktionen sind gesonderte Anbindungen.')
|
||||
->successNotificationTitle('iCal-Verbindung angelegt – Exportlink automatisch erzeugt'),
|
||||
] : [])
|
||||
->recordActions([
|
||||
Action::make('exportLink')->label('Exportlink')->icon(Heroicon::OutlinedLink)->button()
|
||||
|
||||
@@ -12,11 +12,11 @@ class ChannelsRelationManager extends RelationManager
|
||||
{
|
||||
protected static string $relationship = 'channels';
|
||||
|
||||
protected static ?string $title = 'Portale & Kanäle';
|
||||
protected static ?string $title = 'Kalenderabgleich (iCal)';
|
||||
|
||||
protected static ?string $modelLabel = 'Portal';
|
||||
protected static ?string $modelLabel = 'iCal-Verbindung';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Portale';
|
||||
protected static ?string $pluralModelLabel = 'iCal-Verbindungen';
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user