stages/prompt: add basic file field (#3156)
add basic file field Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -8,21 +8,22 @@ This stage is used to show the user arbitrary prompts. | ||||
|  | ||||
| The prompt can be any of the following types: | ||||
|  | ||||
| | Type              | Description                                                                              | | ||||
| | ----------------- | ---------------------------------------------------------------------------------------- | | ||||
| | Text              | Arbitrary text. No client-side validation is done.                                       | | ||||
| | Text (Read only)  | Same as above, but cannot be edited.                                                     | | ||||
| | Username          | Same as text, except the username is validated to be unique.                             | | ||||
| | Email             | Text input, ensures the value is an email address (validation is only done client-side). | | ||||
| | Password          | Same as text, shown as a password field client-side, and custom validation (see below).  | | ||||
| | Number            | Numerical textbox.                                                                       | | ||||
| | Checkbox          | Simple checkbox.                                                                         | | ||||
| | Date              | Same as text, except the client renders a date-picker                                    | | ||||
| | Date-time         | Same as text, except the client renders a date-time-picker                               | | ||||
| | Separator         | Passive element to group surrounding elements                                            | | ||||
| | Hidden            | Hidden input field. Allows for the pre-setting of default values.                        | | ||||
| | Static            | Display arbitrary value as is                                                            | | ||||
| | authentik: Locale | Display a list of all locales authentik supports.                                        | | ||||
| | Type              | Description                                                                                | | ||||
| | ----------------- | ------------------------------------------------------------------------------------------ | | ||||
| | Text              | Arbitrary text. No client-side validation is done.                                         | | ||||
| | Text (Read only)  | Same as above, but cannot be edited.                                                       | | ||||
| | Username          | Same as text, except the username is validated to be unique.                               | | ||||
| | Email             | Text input, ensures the value is an email address (validation is only done client-side).   | | ||||
| | Password          | Same as text, shown as a password field client-side, and custom validation (see below).    | | ||||
| | Number            | Numerical textbox.                                                                         | | ||||
| | Checkbox          | Simple checkbox.                                                                           | | ||||
| | Date              | Same as text, except the client renders a date-picker                                      | | ||||
| | Date-time         | Same as text, except the client renders a date-time-picker                                 | | ||||
| | File              | Allow users to upload a file, which will be available as base64-encoded data in the flow . | | ||||
| | Separator         | Passive element to group surrounding elements                                              | | ||||
| | Hidden            | Hidden input field. Allows for the pre-setting of default values.                          | | ||||
| | Static            | Display arbitrary value as is                                                              | | ||||
| | authentik: Locale | Display a list of all locales authentik supports.                                          | | ||||
|  | ||||
| Some types have special behaviors: | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L