diff --git a/components/ILIAS/UI/src/Component/Modal/RoundTrip.php b/components/ILIAS/UI/src/Component/Modal/RoundTrip.php index 2a1edefdd55d..dd74118ea094 100755 --- a/components/ILIAS/UI/src/Component/Modal/RoundTrip.php +++ b/components/ILIAS/UI/src/Component/Modal/RoundTrip.php @@ -21,12 +21,13 @@ use ILIAS\UI\Component\Button; use ILIAS\UI\Component\Component; use ILIAS\UI\Component\ReplaceSignal; +use ILIAS\UI\Component\Input\Container\Container; use ILIAS\UI\Component\Input\Container\Form\Standard; /** * @deprecated use {@see \ILIAS\UI\Component\Prompt\Prompt} instead */ -interface RoundTrip extends Modal, Standard +interface RoundTrip extends Modal, Container { /** * Get the title of the modal @@ -66,6 +67,21 @@ public function withActionButtons(array $buttons): RoundTrip; */ public function withCancelButtonLabel(string $label): RoundTrip; + /** + * Get a modal like this with the provided submit button string. + */ + public function withSubmitLabel(string $label): self; + + /** + * Gets the submit label of the form. + */ + public function getSubmitLabel(): ?string; + + /** + * Get the URL this form posts its result to. + */ + public function getPostURL(): string; + /** * Get the signal to replace the content of this modal. */ diff --git a/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php b/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php index c0fbf229129d..fd651e88ca4b 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php +++ b/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php @@ -191,13 +191,6 @@ public function getReplaceSignal(): ReplaceSignal return $this->modal->getReplaceSignal(); } - public function withAdditionalFormAction(string $action, string $label): static - { - $clone = clone $this; - $clone->modal = $clone->modal->withAdditionalFormAction($action, $label); - return $clone; - } - public function getPostURL(): string { return $this->modal->getPostURL(); @@ -230,7 +223,7 @@ public function withRequest(ServerRequestInterface $request): self public function withInput(InputData $input_data): self { $clone = clone $this; - $clone->modal = $clone->modal->withInput($request); + $clone->modal = $clone->modal->withInput($input_data); return $clone; } diff --git a/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php b/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php index 235a0e27d266..004f5c1b9b9a 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php +++ b/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php @@ -216,13 +216,6 @@ public function getError(): ?string return $this->form->getError(); } - public function withAdditionalFormAction(string $action, string $label): static - { - $clone = clone $this; - $clone->form = $clone->form->withAdditionalFormAction($action, $label); - return $clone; - } - /** * @inheritDoc */