From 8c1e38efda272f443376ed412d8fcba44f047d30 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Tue, 25 Feb 2025 17:15:23 +0100 Subject: [PATCH] NORY-46: move form description above input --- .../src/components/forms/client-form.tsx | 54 +++++++++---------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/dashboard/src/components/forms/client-form.tsx b/dashboard/src/components/forms/client-form.tsx index 76ff0c8..4ef7693 100644 --- a/dashboard/src/components/forms/client-form.tsx +++ b/dashboard/src/components/forms/client-form.tsx @@ -106,14 +106,13 @@ export function CreateClientForm({ action }: CreateClientFormProps) { render={({ field }) => ( Client Name + + The human-readable name of the client to be presented to the end-user during + authorization. + - - The human-readable name of the client to be presented to the end-user - during - authorization. - )} @@ -124,17 +123,14 @@ export function CreateClientForm({ action }: CreateClientFormProps) { render={({ field }) => ( Scopes + + Scope is a string containing a space-separated list of scope values (as + described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use + when requesting access tokens. + - - Scope is a string containing a space-separated list of scope values (as - described in - Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when - requesting - access - tokens. - )} @@ -218,13 +214,13 @@ export function CreateClientForm({ action }: CreateClientFormProps) { render={({ field }) => ( Logo URI + + A URL string referencing the client's logo. + - - A URL string referencing the client's logo. - )} @@ -236,18 +232,18 @@ export function CreateClientForm({ action }: CreateClientFormProps) { render={({ field }) => ( Policy URI + + A URL string pointing to a human-readable privacy policy + document + for the client that describes how the deployment organization + collects, uses, retains, and discloses personal data. + - - A URL string pointing to a human-readable - privacy policy document for the client that describes how the - deployment organization collects, uses, retains, and discloses - personal data. - )} @@ -259,16 +255,16 @@ export function CreateClientForm({ action }: CreateClientFormProps) { render={({ field }) => ( Terms URI - - - A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. + + + )} @@ -280,12 +276,12 @@ export function CreateClientForm({ action }: CreateClientFormProps) { render={({ field }) => ( Owner - - - Owner is a string identifying the owner of the OAuth 2.0 Client. + + + )}