diff --git a/conf/I18N/api/en.po b/conf/I18N/api/en.po index c26d66049653..e84527cf82ec 100644 --- a/conf/I18N/api/en.po +++ b/conf/I18N/api/en.po @@ -5702,7 +5702,7 @@ msgid "Enable profile" msgstr "" #: html/pfappserver/root/src/views/Configuration/securityEvents/_components/TheForm.vue:9 -msgid "Enable security event" +msgid "Enable this event" msgstr "" #: html/pfappserver/root/src/views/Configuration/advanced/_components/TheForm.vue:25 diff --git a/conf/I18N/api/fr.po b/conf/I18N/api/fr.po index 986e9c34a22c..705e26843c2d 100644 --- a/conf/I18N/api/fr.po +++ b/conf/I18N/api/fr.po @@ -6296,8 +6296,8 @@ msgid "Enable profile" msgstr "Activer le profil" #: html/pfappserver/root/src/views/Configuration/securityEvents/_components/TheForm.vue:9 -msgid "Enable security event" -msgstr "Activer l'événement de sécurité" +msgid "Enable this event" +msgstr "Activer cet événement" #: html/pfappserver/root/src/views/Configuration/advanced/_components/TheForm.vue:25 msgid "Enable the Configurator and the Configurator API." diff --git a/html/pfappserver/root/src/components/new/BaseFormGroupSwitch.vue b/html/pfappserver/root/src/components/new/BaseFormGroupSwitch.vue new file mode 100644 index 000000000000..01fc937410aa --- /dev/null +++ b/html/pfappserver/root/src/components/new/BaseFormGroupSwitch.vue @@ -0,0 +1,145 @@ + + + diff --git a/html/pfappserver/root/src/components/new/BaseInputSwitch.vue b/html/pfappserver/root/src/components/new/BaseInputSwitch.vue new file mode 100644 index 000000000000..f1d464b49e0a --- /dev/null +++ b/html/pfappserver/root/src/components/new/BaseInputSwitch.vue @@ -0,0 +1,246 @@ + + + + diff --git a/html/pfappserver/root/src/components/new/BaseLabel.vue b/html/pfappserver/root/src/components/new/BaseLabel.vue new file mode 100644 index 000000000000..0c17cf6054b3 --- /dev/null +++ b/html/pfappserver/root/src/components/new/BaseLabel.vue @@ -0,0 +1,46 @@ + + + + + + diff --git a/html/pfappserver/root/src/components/new/OnChangeFormGroupSwitch.vue b/html/pfappserver/root/src/components/new/OnChangeFormGroupSwitch.vue new file mode 100644 index 000000000000..c6f520020336 --- /dev/null +++ b/html/pfappserver/root/src/components/new/OnChangeFormGroupSwitch.vue @@ -0,0 +1,95 @@ + + + diff --git a/html/pfappserver/root/src/components/new/index.js b/html/pfappserver/root/src/components/new/index.js index a74f5c855a86..876005cfdf24 100644 --- a/html/pfappserver/root/src/components/new/index.js +++ b/html/pfappserver/root/src/components/new/index.js @@ -78,6 +78,10 @@ import BaseTableEmpty from './BaseTableEmpty' import BaseTableSortable from './BaseTableSortable' import BaseUpload from './BaseUpload' import BaseView from './BaseView' +import BaseFormGroupSwitch from './BaseFormGroupSwitch.vue' +import BaseLabel from './BaseLabel.vue' +import BaseInputSwitch from './BaseInputSwitch.vue' +import OnChangeFormGroupSwitch from '@/components/new/OnChangeFormGroupSwitch.vue' import { mergeProps, renderHOCWithScopedSlots } from './utils' @@ -120,6 +124,8 @@ export { BaseFormGroupToggleNoYes, BaseFormGroupToggleNY, BaseFormGroupToggleOffOn, + BaseFormGroupSwitch, + OnChangeFormGroupSwitch, // icons BaseIconPreference, @@ -135,8 +141,10 @@ export { BaseInputPassword, BaseInputRange, BaseInputToggle, BaseInputToggleProps, + BaseInputSwitch, BaseInputToggleAdvancedMode, BaseInputToggleFalseTrue, + BaseLabel, // bootstrap wrappers BaseInputGroupDate, diff --git a/html/pfappserver/root/src/views/Auditing/liveLogs/_components/TheForm.vue b/html/pfappserver/root/src/views/Auditing/liveLogs/_components/TheForm.vue index d5034f748d61..2a23127e459a 100644 --- a/html/pfappserver/root/src/views/Auditing/liveLogs/_components/TheForm.vue +++ b/html/pfappserver/root/src/views/Auditing/liveLogs/_components/TheForm.vue @@ -1,9 +1,9 @@ + + diff --git a/html/pfappserver/root/src/views/Configuration/domains/_components/TheForm.vue b/html/pfappserver/root/src/views/Configuration/domains/_components/TheForm.vue index 8af998604fa7..2d864cf8319c 100644 --- a/html/pfappserver/root/src/views/Configuration/domains/_components/TheForm.vue +++ b/html/pfappserver/root/src/views/Configuration/domains/_components/TheForm.vue @@ -6,64 +6,70 @@ :isLoading="isLoading" >
{{ $i18n.t('Note:') }} - {{ $i18n.t('"Allow on registration" option requires passthroughs to be enabled as well as configured to allow both the domain DNS name and each domain controllers DNS name (or *.dns name)') }}. + {{ + $i18n.t('"Allow on registration" option requires passthroughs to be enabled as well as configured to allow both the domain DNS name and each domain controllers DNS name (or *.dns name)') + }}. {{ $i18n.t('Example: inverse.local, *.inverse.local') }}
@@ -72,18 +78,18 @@ @@ -91,7 +97,7 @@ + diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleAutoreg.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleAutoreg.js deleted file mode 100644 index d512b2d43c1f..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleAutoreg.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Register') }, - { value: true, label: i18n.t('Register'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-autoreg', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleClose.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleClose.js deleted file mode 100644 index e2fe8bc0e09d..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleClose.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Close another security event') }, - { value: true, label: i18n.t('Close another security event'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-close', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailAdmin.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailAdmin.js deleted file mode 100644 index 867d57c0a602..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailAdmin.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Email administrator') }, - { value: true, label: i18n.t('Email administrator'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-email-admin', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailRecipient.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailRecipient.js deleted file mode 100644 index 28dd218a32e7..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailRecipient.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Email Recipient') }, - { value: true, label: i18n.t('Email Recipient'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-email-recipient', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailUser.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailUser.js deleted file mode 100644 index 62abf1c759fb..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleEmailUser.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Email endpoint owner') }, - { value: true, label: i18n.t('Email endpoint owner'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-email-user', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleExternal.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleExternal.js deleted file mode 100644 index b6e17bf58dd8..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleExternal.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Execute script') }, - { value: true, label: i18n.t('Execute script'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-external', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleIsolate.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleIsolate.js deleted file mode 100644 index 7c8fbb34ce63..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleIsolate.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Isolate') }, - { value: true, label: i18n.t('Isolate'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-isolate', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleUnreg.js b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleUnreg.js deleted file mode 100644 index 041f95372fcc..000000000000 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/BaseInputToggleUnreg.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseInputToggle, BaseInputToggleProps } from '@/components/new/' -import i18n from '@/utils/locale' - -export const props = { - ...BaseInputToggleProps, - - // overload :options default - options: { - type: Array, - default: () => ([ - { value: false, label: i18n.t('Unregister') }, - { value: true, label: i18n.t('Unregister'), color: 'var(--primary)' } - ]) - }, - labelRight: { - type: Boolean, - default: true - } -} - -export default { - name: 'base-input-toggle-unreg', - extends: BaseInputToggle, - props -} diff --git a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/TheForm.vue b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/TheForm.vue index 310852a1b916..74347546149d 100644 --- a/html/pfappserver/root/src/views/Configuration/securityEvents/_components/TheForm.vue +++ b/html/pfappserver/root/src/views/Configuration/securityEvents/_components/TheForm.vue @@ -6,32 +6,34 @@ :isLoading="isLoading" > @@ -40,28 +42,30 @@ /> \ No newline at end of file + + diff --git a/html/pfappserver/root/src/views/Users/_components/TheFormCreateMultiple.vue b/html/pfappserver/root/src/views/Users/_components/TheFormCreateMultiple.vue index a47a5f939dae..abf7aaf20401 100644 --- a/html/pfappserver/root/src/views/Users/_components/TheFormCreateMultiple.vue +++ b/html/pfappserver/root/src/views/Users/_components/TheFormCreateMultiple.vue @@ -6,60 +6,65 @@ :isLoading="isLoading" class="pt-0" > - + - + class="flex-grow-1"/> + + + + class="flex-grow-1"/>
@@ -77,31 +82,32 @@
- +