diff --git a/plugins/recruit-assets/lang/cs.json b/plugins/recruit-assets/lang/cs.json index 9451575d66..0bd3217c48 100644 --- a/plugins/recruit-assets/lang/cs.json +++ b/plugins/recruit-assets/lang/cs.json @@ -121,7 +121,8 @@ "HideDoneState": "Skrýt dokončené přihlášky", "HideArchivedVacancies": "Skrýt archivované pozice", "HideApplicantsFromArchivedVacancies": "Skrýt z archivovaných pozic", - "CreateNewSkills": "Vytvořit nové dovednosti, pokud neexistují" + "CreateNewSkills": "Vytvořit nové dovednosti, pokud neexistují", + "SwapFirstAndLastNames": "Vyměňte jméno a příjmení" }, "status": { "ApplicationExists": "Přihláška již existuje", diff --git a/plugins/recruit-assets/lang/de.json b/plugins/recruit-assets/lang/de.json index aa849e3b98..c730be5d36 100644 --- a/plugins/recruit-assets/lang/de.json +++ b/plugins/recruit-assets/lang/de.json @@ -121,7 +121,8 @@ "HideDoneState": "Abgeschlossene Bewerbungen ausblenden", "HideArchivedVacancies": "Archivierte Stellen ausblenden", "HideApplicantsFromArchivedVacancies": "Aus archivierten Stellen ausblenden", - "CreateNewSkills": "Neue Fähigkeiten erstellen, wenn keine bestehenden gefunden werden" + "CreateNewSkills": "Neue Fähigkeiten erstellen, wenn keine bestehenden gefunden werden", + "SwapFirstAndLastNames": "Vor- und Nachnamen tauschen" }, "status": { "ApplicationExists": "Bewerbung existiert bereits", diff --git a/plugins/recruit-assets/lang/en.json b/plugins/recruit-assets/lang/en.json index cf29e2adf6..c8a45adecc 100644 --- a/plugins/recruit-assets/lang/en.json +++ b/plugins/recruit-assets/lang/en.json @@ -121,7 +121,8 @@ "HideDoneState": "Hide complete applications", "HideArchivedVacancies": "Hide archived Vacancies", "HideApplicantsFromArchivedVacancies": "Hide from archived Vacancies", - "CreateNewSkills": "Create new skills if existing not found" + "CreateNewSkills": "Create new skills if existing not found", + "SwapFirstAndLastNames": "Swap first and last names" }, "status": { "ApplicationExists": "Application already exists", diff --git a/plugins/recruit-assets/lang/es.json b/plugins/recruit-assets/lang/es.json index e7aa4d4bbe..4d4a299ad5 100644 --- a/plugins/recruit-assets/lang/es.json +++ b/plugins/recruit-assets/lang/es.json @@ -118,7 +118,8 @@ "HideDoneState": "Ocultar solicitudes completadas", "HideArchivedVacancies": "Ocultar vacantes archivadas", "HideApplicantsFromArchivedVacancies": "Ocultar de vacantes archivadas", - "CreateNewSkills": "Crear nuevas habilidades si no se encuentran las existentes" + "CreateNewSkills": "Crear nuevas habilidades si no se encuentran las existentes", + "SwapFirstAndLastNames": "Intercambie nombres y apellidos" }, "status": { "ApplicationExists": "La solicitud ya existe", diff --git a/plugins/recruit-assets/lang/fr.json b/plugins/recruit-assets/lang/fr.json index ea9d74d52e..5d15dfd695 100644 --- a/plugins/recruit-assets/lang/fr.json +++ b/plugins/recruit-assets/lang/fr.json @@ -118,7 +118,8 @@ "HideDoneState": "Masquer les candidatures terminées", "HideArchivedVacancies": "Masquer les postes vacants archivés", "HideApplicantsFromArchivedVacancies": "Masquer les candidats des postes vacants archivés", - "CreateNewSkills": "Créer de nouvelles compétences si les existantes ne sont pas trouvées" + "CreateNewSkills": "Créer de nouvelles compétences si les existantes ne sont pas trouvées", + "SwapFirstAndLastNames": "Permuter le prénom et le nom" }, "status": { "ApplicationExists": "La candidature existe déjà", diff --git a/plugins/recruit-assets/lang/it.json b/plugins/recruit-assets/lang/it.json index 1aaf8e6780..75da996945 100644 --- a/plugins/recruit-assets/lang/it.json +++ b/plugins/recruit-assets/lang/it.json @@ -119,7 +119,8 @@ "HideDoneState": "Nascondi candidature completate", "HideArchivedVacancies": "Nascondi posizioni archiviate", "HideApplicantsFromArchivedVacancies": "Nascondi da posizioni archiviate", - "CreateNewSkills": "Crea nuove competenze se quelle esistenti non vengono trovate" + "CreateNewSkills": "Crea nuove competenze se quelle esistenti non vengono trovate", + "SwapFirstAndLastNames": "Scambia nome e cognome" }, "status": { "ApplicationExists": "La candidatura esiste già", diff --git a/plugins/recruit-assets/lang/pt.json b/plugins/recruit-assets/lang/pt.json index 8f0f5efab7..3337675aef 100644 --- a/plugins/recruit-assets/lang/pt.json +++ b/plugins/recruit-assets/lang/pt.json @@ -118,7 +118,8 @@ "HideDoneState": "Ocultar candidaturas concluídas", "HideArchivedVacancies": "Ocultar vagas arquivadas", "HideApplicantsFromArchivedVacancies": "Ocultar de vagas arquivadas", - "CreateNewSkills": "Criar novas competências se as existentes não forem encontradas" + "CreateNewSkills": "Criar novas competências se as existentes não forem encontradas", + "SwapFirstAndLastNames": "Trocar primeiro e último nome" }, "status": { "ApplicationExists": "A candidatura já existe", diff --git a/plugins/recruit-assets/lang/ru.json b/plugins/recruit-assets/lang/ru.json index 1c5838c79c..b75c55fa3e 100644 --- a/plugins/recruit-assets/lang/ru.json +++ b/plugins/recruit-assets/lang/ru.json @@ -121,7 +121,8 @@ "HideDoneState": "Скрыть завершенных кандидатов", "HideArchivedVacancies": "Скрыть архивные вакансии", "HideApplicantsFromArchivedVacancies": "Скрыть из архивных вакансии", - "CreateNewSkills": "Создать навыки, если не найдены существующие" + "CreateNewSkills": "Создать навыки, если не найдены существующие", + "SwapFirstAndLastNames": "Поменять местами имя и фамилию" }, "status": { "ApplicationExists": "Кандидат уже существует", diff --git a/plugins/recruit-assets/lang/zh.json b/plugins/recruit-assets/lang/zh.json index 77fdfcd6c4..b59643db7a 100644 --- a/plugins/recruit-assets/lang/zh.json +++ b/plugins/recruit-assets/lang/zh.json @@ -121,7 +121,8 @@ "HideDoneState": "隐藏已完成的申请", "HideArchivedVacancies": "隐藏已归档的职位", "HideApplicantsFromArchivedVacancies": "从已归档职位中隐藏", - "CreateNewSkills": "如果未找到现有技能,则创建新技能" + "CreateNewSkills": "如果未找到现有技能,则创建新技能", + "SwapFirstAndLastNames": "交换名字和姓氏" }, "status": { "ApplicationExists": "申请已存在", diff --git a/plugins/recruit-resources/src/components/CreateCandidate.svelte b/plugins/recruit-resources/src/components/CreateCandidate.svelte index df2b2808ba..9767c92bf5 100644 --- a/plugins/recruit-resources/src/components/CreateCandidate.svelte +++ b/plugins/recruit-resources/src/components/CreateCandidate.svelte @@ -67,12 +67,15 @@ Label, MiniToggle, showPopup, - Spinner + Spinner, + ActionIcon } from '@hcengineering/ui' import { createEventDispatcher, onDestroy } from 'svelte' import recruit from '../plugin' import { getCandidateIdentifier } from '../utils' import YesNo from './YesNo.svelte' + import IconSwitch from './icons/Switch.svelte' + import IconShuffle from './icons/Shuffle.svelte' export let shouldSaveDraft: boolean = true @@ -631,7 +634,7 @@ maxWidth={'30rem'} /> -
+
+ { + const first = object.firstName + object.firstName = object.lastName + object.lastName = first + }} + />
diff --git a/plugins/recruit-resources/src/components/icons/Shuffle.svelte b/plugins/recruit-resources/src/components/icons/Shuffle.svelte new file mode 100644 index 0000000000..a48e340a82 --- /dev/null +++ b/plugins/recruit-resources/src/components/icons/Shuffle.svelte @@ -0,0 +1,26 @@ + + + + + + diff --git a/plugins/recruit-resources/src/plugin.ts b/plugins/recruit-resources/src/plugin.ts index c6e4c67081..a22e2b7c0d 100644 --- a/plugins/recruit-resources/src/plugin.ts +++ b/plugins/recruit-resources/src/plugin.ts @@ -127,7 +127,8 @@ export default mergeIds(recruitId, recruit, { OpenVacancyList: '' as IntlString, Export: '' as IntlString, GetTalentIds: '' as IntlString, - CreateNewSkills: '' as IntlString + CreateNewSkills: '' as IntlString, + SwapFirstAndLastNames: '' as IntlString }, category: { Other: '' as Ref,