File tree Expand file tree Collapse file tree
components/ILIAS/UI/src/examples/Prompt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 * expected output: >
3737 * A button opens a prompt listing selected entities with a confirmation question.
3838 * Submitting posts the entity ids; the result is shown in the prompt.
39+ * The prompt can be closed.
3940 * ---
4041 */
4142function confirmation (): string
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ function base(): string
9898 ->buildURI ();
9999
100100 $ prompt = $ factory ->prompt ()->standard ($ open_uri );
101- $ trigger = $ factory ->button ()->primary ('Open confirm (show result ) ' , $ prompt ->getShowSignal ($ open_uri ));
101+ $ trigger = $ factory ->button ()->primary ('Open Confirmation (And Show Result ) ' , $ prompt ->getShowSignal ($ open_uri ));
102102
103103 if (!$ query ->has ($ endpoint_token ->getName ())) {
104104 return $ renderer ->render ([$ trigger , $ prompt ]);
Original file line number Diff line number Diff line change 3030 * After confirming, the consumer returns a close state and the prompt is dismissed.
3131 *
3232 * expected output: >
33- * A button opens a confirmation prompt. Confirming closes the prompt without
34- * showing further content inside it.
33+ * A button opens a confirmation prompt. Confirming closes the prompt.
34+ * No further information is displayed.
35+ * The prompt can also be closed.
3536 * ---
3637 */
3738function close (): string
@@ -89,7 +90,7 @@ function close(): string
8990 ->buildURI ();
9091
9192 $ prompt = $ factory ->prompt ()->standard ($ open_uri );
92- $ trigger = $ factory ->button ()->primary ('Open confirm (close prompt ) ' , $ prompt ->getShowSignal ($ open_uri ));
93+ $ trigger = $ factory ->button ()->primary ('Open Confirmation (And Close Prompt ) ' , $ prompt ->getShowSignal ($ open_uri ));
9394 $ hint = $ factory ->messageBox ()->info ('After confirming, the prompt closes. ' );
9495
9596 if (!$ query ->has ($ endpoint_token ->getName ())) {
Original file line number Diff line number Diff line change 3232 *
3333 * expected output: >
3434 * A button opens a confirmation prompt. Confirming redirects the page and
35- * shows a success message below the trigger button.
35+ * shows a success message above the trigger button.
36+ * The prompt can also be closed.
3637 * ---
3738 */
3839function redirect (): string
@@ -100,7 +101,7 @@ function redirect(): string
100101 ->buildURI ();
101102
102103 $ prompt = $ factory ->prompt ()->standard ($ open_uri );
103- $ trigger = $ factory ->button ()->primary ('Open confirm (redirect ) ' , $ prompt ->getShowSignal ($ open_uri ));
104+ $ trigger = $ factory ->button ()->primary ('Open Confirmation (And Redirect ) ' , $ prompt ->getShowSignal ($ open_uri ));
104105
105106 $ has_success_feedback = $ query ->has ($ success_token ->getName ())
106107 && $ query ->retrieve ($ success_token ->getName (), $ refinery ->kindlyTo ()->string ()) !== '' ;
You can’t perform that action at this time.
0 commit comments