web/admin: fix missing div in wizard forms (#11794)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-10-24 17:56:20 +02:00
committed by GitHub
parent f482937474
commit 3fc0904425
3 changed files with 137 additions and 145 deletions

View File

@ -113,9 +113,8 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel {
<ak-text-input <ak-text-input
name="clientSecret" name="clientSecret"
label=${msg("Client Secret")} label=${msg("Client Secret")}
value=${ value=${provider?.clientSecret ??
provider?.clientSecret ?? randomString(128, ascii_letters + digits) randomString(128, ascii_letters + digits)}
}
.errorMessages=${errors?.clientSecret ?? []} .errorMessages=${errors?.clientSecret ?? []}
?hidden=${!this.showClientSecret} ?hidden=${!this.showClientSecret}
> >
@ -150,6 +149,7 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel {
<ak-form-group> <ak-form-group>
<span slot="header"> ${msg("Advanced flow settings")} </span> <span slot="header"> ${msg("Advanced flow settings")} </span>
<div slot="body" class="pf-c-form">
<ak-form-element-horizontal <ak-form-element-horizontal
name="authenticationFlow" name="authenticationFlow"
label=${msg("Authentication flow")} label=${msg("Authentication flow")}

View File

@ -161,11 +161,9 @@ export class AkTypeProxyApplicationWizardPage extends BaseProviderPanel {
<ak-textarea-input <ak-textarea-input
name="skipPathRegex" name="skipPathRegex"
label=${ label=${this.mode === ProxyMode.ForwardDomain
this.mode === ProxyMode.ForwardDomain
? msg("Unauthenticated URLs") ? msg("Unauthenticated URLs")
: msg("Unauthenticated Paths") : msg("Unauthenticated Paths")}
}
value=${ifDefined(this.instance?.skipPathRegex)} value=${ifDefined(this.instance?.skipPathRegex)}
.errorMessages=${errors?.skipPathRegex ?? []} .errorMessages=${errors?.skipPathRegex ?? []}
.bighelp=${html` <p class="pf-c-form__helper-text"> .bighelp=${html` <p class="pf-c-form__helper-text">
@ -184,6 +182,7 @@ export class AkTypeProxyApplicationWizardPage extends BaseProviderPanel {
</ak-form-group> </ak-form-group>
<ak-form-group> <ak-form-group>
<span slot="header"> ${msg("Advanced flow settings")} </span> <span slot="header"> ${msg("Advanced flow settings")} </span>
<div slot="body" class="pf-c-form">
<ak-form-element-horizontal <ak-form-element-horizontal
name="authenticationFlow" name="authenticationFlow"
label=${msg("Authentication flow")} label=${msg("Authentication flow")}

View File

@ -147,6 +147,7 @@ export class ApplicationWizardProviderSamlConfiguration extends BaseProviderPane
<ak-form-group> <ak-form-group>
<span slot="header"> ${msg("Advanced flow settings")}</span> <span slot="header"> ${msg("Advanced flow settings")}</span>
<div slot="body" class="pf-c-form">
<ak-form-element-horizontal <ak-form-element-horizontal
name="authenticationFlow" name="authenticationFlow"
label=${msg("Authentication flow")} label=${msg("Authentication flow")}
@ -199,8 +200,7 @@ export class ApplicationWizardProviderSamlConfiguration extends BaseProviderPane
)} )}
</p> </p>
</ak-form-element-horizontal> </ak-form-element-horizontal>
${ ${this.hasSigningKp
this.hasSigningKp
? html` <ak-form-element-horizontal name="signAssertion"> ? html` <ak-form-element-horizontal name="signAssertion">
<label class="pf-c-switch"> <label class="pf-c-switch">
<input <input
@ -210,10 +210,7 @@ export class ApplicationWizardProviderSamlConfiguration extends BaseProviderPane
/> />
<span class="pf-c-switch__toggle"> <span class="pf-c-switch__toggle">
<span class="pf-c-switch__toggle-icon"> <span class="pf-c-switch__toggle-icon">
<i <i class="fas fa-check" aria-hidden="true"></i>
class="fas fa-check"
aria-hidden="true"
></i>
</span> </span>
</span> </span>
<span class="pf-c-switch__label" <span class="pf-c-switch__label"
@ -235,10 +232,7 @@ export class ApplicationWizardProviderSamlConfiguration extends BaseProviderPane
/> />
<span class="pf-c-switch__toggle"> <span class="pf-c-switch__toggle">
<span class="pf-c-switch__toggle-icon"> <span class="pf-c-switch__toggle-icon">
<i <i class="fas fa-check" aria-hidden="true"></i>
class="fas fa-check"
aria-hidden="true"
></i>
</span> </span>
</span> </span>
<span class="pf-c-switch__label" <span class="pf-c-switch__label"
@ -251,8 +245,7 @@ export class ApplicationWizardProviderSamlConfiguration extends BaseProviderPane
)} )}
</p> </p>
</ak-form-element-horizontal>` </ak-form-element-horizontal>`
: nothing : nothing}
}
<ak-form-element-horizontal <ak-form-element-horizontal
label=${msg("Verification Certificate")} label=${msg("Verification Certificate")}