Liefere das Anfrageformular je Anfragegrund aus und gib dem Widget Gründe, Formularführung und Präsentation
Das Widget Anfrage wählt statt eines Anfrage-Einstiegs mehrere Anfragegründe, jeder zeigt auf ein veröffentlichtes Formular
(optional mit vorgewähltem Anliegen). Der Besucher erhält genau das Formular seines Grundes: /anfrage/formular/{vorlage}
mit Grund in der Adresse, dasselbe Token, dieselbe Auswertung und Annahme. Ein Dialog (dialog-Element) und die Grundauswahl
als Karten oder Auswahlfeld kommen aus resources/js/inquiry-widget.js. Seiten mit einem Einstieg bleiben darstellbar.
Bereiche lassen sich wie Gruppen anzeigen oder ausblenden.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f255bf5200
commit
fb479c1b01
18 files changed
+1394
-57
No files matched your search
@@ -44,6 +44,20 @@ public function issueTitle(): string
|
||||
return trim(implode(' › ', array_filter([$this->issue_label, $this->subissue_label])));
|
||||
}
|
||||
|
||||
/**
|
||||
* Woher die Anfrage kam: der Anfrage-Einstieg (älterer Weg) oder das Formular, das das Widget „Anfrage“ eingebunden hat.
|
||||
*/
|
||||
public function channelTitle(): string
|
||||
{
|
||||
if ($this->entry !== null) {
|
||||
return $this->entry->name;
|
||||
}
|
||||
|
||||
$template = $this->templateVersion?->template;
|
||||
|
||||
return $template !== null ? 'Formular „'.$template->name.'“' : 'Formular gelöscht';
|
||||
}
|
||||
|
||||
public function contactTitle(): string
|
||||
{
|
||||
return $this->contact_name ?: ($this->contact_email ?: 'Unbekannt');
|
||||
|
||||
Reference in new issue
Block a user