ui changes and role switch added

This commit is contained in:
2026-03-12 09:41:18 +01:00
parent 2dc140b55a
commit e9f73bc96a
6 changed files with 16 additions and 14 deletions

View File

@@ -244,7 +244,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<fieldset data-custom-field-filterable-target data-custom-field-group="tenant-custom-field-create">
<legend><small><?php e(t('Filterable')); ?></small></legend>
<label class="app-field">
<input form="tenant-custom-field-create-form" type="checkbox" name="is_filterable" value="1"
<input form="tenant-custom-field-create-form" role="switch" type="checkbox" name="is_filterable" value="1"
data-custom-field-filterable-input
<?php e($disabledAttr); ?>>
<span><?php e(t('Filterable')); ?></span>
@@ -254,7 +254,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<fieldset>
<legend><small><?php e(t('Active')); ?></small></legend>
<label class="app-field">
<input form="tenant-custom-field-create-form" type="checkbox" name="active" value="1" checked
<input form="tenant-custom-field-create-form" role="switch" type="checkbox" name="active" value="1" checked
<?php e($disabledAttr); ?>>
<span><?php e(t('Active')); ?></span>
</label>
@@ -356,7 +356,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<fieldset data-custom-field-filterable-target data-custom-field-group="<?php e($typeGroupId); ?>">
<legend><small><?php e(t('Filterable')); ?></small></legend>
<label class="app-field">
<input type="checkbox" form="<?php e($updateFormId); ?>" name="is_filterable" value="1"
<input type="checkbox" role="switch" form="<?php e($updateFormId); ?>" name="is_filterable" value="1"
data-custom-field-filterable-input
<?php e(!empty($definition['is_filterable']) ? 'checked' : ''); ?>
<?php e($disabledAttr); ?>>
@@ -368,7 +368,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<legend><small><?php e(t('Active')); ?></small></legend>
<label class="app-field">
<input type="hidden" form="<?php e($updateFormId); ?>" name="active" value="0">
<input type="checkbox" form="<?php e($updateFormId); ?>" name="active" value="1"
<input type="checkbox" role="switch" form="<?php e($updateFormId); ?>" name="active" value="1"
<?php e(!empty($definition['active']) ? 'checked' : ''); ?>
<?php e($disabledAttr); ?>>
<span><?php e(t('Active')); ?></span>
@@ -446,6 +446,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<label class="app-field">
<input
type="checkbox"
role="switch"
name="microsoft_enabled"
value="1"
data-tenant-sso-enabled
@@ -469,6 +470,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<label class="app-field">
<input
type="checkbox"
role="switch"
name="enforce_microsoft_login"
value="1"
<?php e($microsoftEnforce ? 'checked' : ''); ?>
@@ -506,6 +508,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<label class="app-field">
<input
type="checkbox"
role="switch"
name="sync_profile_on_login"
value="1"
data-tenant-sso-sync-toggle
@@ -546,6 +549,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
<input type="hidden" name="use_shared_app" value="0">
<input
type="checkbox"
role="switch"
name="use_shared_app"
value="1"
data-tenant-sso-shared-toggle
@@ -599,7 +603,7 @@ $ssoSyncNeedsGraph = !empty($ssoUiState['sync_needs_graph']);
</legend>
<label class="app-field">
<input type="hidden" name="primary_color_use_default" value="0">
<input type="checkbox" name="primary_color_use_default" value="1"
<input type="checkbox" role="switch" name="primary_color_use_default" value="1"
data-color-default-toggle
data-color-target="#primary_color"
data-color-default="<?php e($defaultPrimaryColor); ?>"