web/admin: use attribute naming scheme for attributes (#14644)
web/standards: use attribute naming scheme for attributes ## What Renamed the 'inputHint' attribute to 'input-hint', because it is an attribute, not a property. Properties are camelCased, but attributes are kebab-cased. Updated all instances where this appears with the usual magic: ``` $ perl -pi.bak -e 's/inputHint="code"/input-hint="code"/' $(rg -l 'inputHint="code"') ``` This fix is in preparation for both the Patternfly 5 project and the Schema-Driven Forms project. * Revision: You almost certainly do NOT want every field to be reflected. Booleans are okay, especially for fields that may be changed internally but need to be read by screen-readers, sunch as 'hidden' or 'invalid'. But if a field is a string or a number and has a default value, you do not want it to be reflected.
This commit is contained in:
		@ -128,7 +128,7 @@ export class ApplicationWizardApplicationStep extends ApplicationWizardStep {
 | 
			
		||||
                    ?invalid=${errors.slug ?? this.errors.has("slug")}
 | 
			
		||||
                    .errorMessages=${this.errorMessages("slug")}
 | 
			
		||||
                    help=${msg("Internal application name used in URLs.")}
 | 
			
		||||
                    inputHint="code"
 | 
			
		||||
                    input-hint="code"
 | 
			
		||||
                ></ak-slug-input>
 | 
			
		||||
                <ak-text-input
 | 
			
		||||
                    name="group"
 | 
			
		||||
@ -138,7 +138,7 @@ export class ApplicationWizardApplicationStep extends ApplicationWizardStep {
 | 
			
		||||
                    help=${msg(
 | 
			
		||||
                        "Optionally enter a group name. Applications with identical groups are shown grouped together.",
 | 
			
		||||
                    )}
 | 
			
		||||
                    inputHint="code"
 | 
			
		||||
                    input-hint="code"
 | 
			
		||||
                ></ak-text-input>
 | 
			
		||||
                <ak-radio-input
 | 
			
		||||
                    label=${msg("Policy engine mode")}
 | 
			
		||||
@ -161,7 +161,7 @@ export class ApplicationWizardApplicationStep extends ApplicationWizardStep {
 | 
			
		||||
                            help=${msg(
 | 
			
		||||
                                "If left empty, authentik will try to extract the launch URL based on the selected provider.",
 | 
			
		||||
                            )}
 | 
			
		||||
                            inputHint="code"
 | 
			
		||||
                            input-hint="code"
 | 
			
		||||
                        ></ak-text-input>
 | 
			
		||||
                        <ak-switch-input
 | 
			
		||||
                            name="openInNewTab"
 | 
			
		||||
 | 
			
		||||
@ -57,7 +57,7 @@ export class ApplicationWizardRACProviderForm extends ApplicationWizardProviderF
 | 
			
		||||
                    help=${msg(
 | 
			
		||||
                        "Determines how long a session lasts before being disconnected and requiring re-authorization.",
 | 
			
		||||
                    )}
 | 
			
		||||
                    inputHint="code"
 | 
			
		||||
                    input-hint="code"
 | 
			
		||||
                ></ak-text-input>
 | 
			
		||||
 | 
			
		||||
                <ak-form-group .expanded=${true}>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user