web/admin: sort inputs on authenticator validation stage form
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -67,6 +67,27 @@ export class AuthenticatorValidateStageForm extends ModelForm<AuthenticatorValid | ||||
|                     ${t`Stage-specific settings`} | ||||
|                 </span> | ||||
|                 <div slot="body" class="pf-c-form"> | ||||
|                     <ak-form-element-horizontal | ||||
|                         label=${t`Device classes`} | ||||
|                         ?required=${true} | ||||
|                         name="deviceClasses"> | ||||
|                         <select name="users" class="pf-c-form-control" multiple> | ||||
|                             <option value=${DeviceClassesEnum.Static} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Static)}> | ||||
|                                 ${t`Static Tokens`} | ||||
|                             </option> | ||||
|                             <option value=${DeviceClassesEnum.Totp} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Totp)}> | ||||
|                                 ${t`TOTP Authenticators`} | ||||
|                             </option> | ||||
|                             <option value=${DeviceClassesEnum.Webauthn} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Webauthn)}> | ||||
|                                 ${t`WebAuthn Authenticators`} | ||||
|                             </option> | ||||
|                             <option value=${DeviceClassesEnum.Duo} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Duo)}> | ||||
|                                 ${t`Duo Authenticators`} | ||||
|                             </option> | ||||
|                         </select> | ||||
|                         <p class="pf-c-form__helper-text">${t`Device classes which can be used to authenticate.`}</p> | ||||
|                         <p class="pf-c-form__helper-text">${t`Hold control/command to select multiple items.`}</p> | ||||
|                     </ak-form-element-horizontal> | ||||
|                     <ak-form-element-horizontal | ||||
|                         label=${t`Not configured action`} | ||||
|                         ?required=${true} | ||||
| @ -90,27 +111,6 @@ export class AuthenticatorValidateStageForm extends ModelForm<AuthenticatorValid | ||||
|                             </option> | ||||
|                         </select> | ||||
|                     </ak-form-element-horizontal> | ||||
|                     <ak-form-element-horizontal | ||||
|                         label=${t`Device classes`} | ||||
|                         ?required=${true} | ||||
|                         name="deviceClasses"> | ||||
|                         <select name="users" class="pf-c-form-control" multiple> | ||||
|                             <option value=${DeviceClassesEnum.Static} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Static)}> | ||||
|                                 ${t`Static Tokens`} | ||||
|                             </option> | ||||
|                             <option value=${DeviceClassesEnum.Totp} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Totp)}> | ||||
|                                 ${t`TOTP Authenticators`} | ||||
|                             </option> | ||||
|                             <option value=${DeviceClassesEnum.Webauthn} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Webauthn)}> | ||||
|                                 ${t`WebAuthn Authenticators`} | ||||
|                             </option> | ||||
|                             <option value=${DeviceClassesEnum.Duo} ?selected=${this.isDeviceClassSelected(DeviceClassesEnum.Duo)}> | ||||
|                                 ${t`Duo Authenticators`} | ||||
|                             </option> | ||||
|                         </select> | ||||
|                         <p class="pf-c-form__helper-text">${t`Device classes which can be used to authenticate.`}</p> | ||||
|                         <p class="pf-c-form__helper-text">${t`Hold control/command to select multiple items.`}</p> | ||||
|                     </ak-form-element-horizontal> | ||||
|                     ${this.showConfigurationStage ? html` | ||||
|                         <ak-form-element-horizontal | ||||
|                             label=${t`Configuration stage`} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer