Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions app/frontend/src/components/forms/manage/ManageFormActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ const canManageGroups = computed(() => {
return roles.includes(TenantRoles.FORM_ADMIN);
});

// Show Transfer to Tenant for personal forms when tenant feature is enabled and user is OWNER
const canMigrateForm = computed(
() =>
tenantStore.isTenantFeatureEnabled &&
permissions.value.includes(FormPermissions.FORM_UPDATE) &&
selectedTenant.value === null
);

const canViewSubmissions = computed(() => {
const perms = [
FormPermissions.SUBMISSION_READ,
Expand All @@ -70,6 +78,7 @@ defineExpose({
canManageEmail,
canManageGroups,
canManageTeam,
canMigrateForm,
canViewSubmissions,
isPublished,
deleteForm,
Expand Down Expand Up @@ -146,6 +155,27 @@ defineExpose({
</v-tooltip>
</span>

<span v-if="canMigrateForm">
<v-tooltip location="bottom">
<template #activator="{ props }">
<v-btn
class="mx-1"
color="primary"
v-bind="props"
size="x-small"
density="default"
icon="mdi:mdi-transfer"
data-test="canMigrateForm"
:to="{ name: 'FormMigrate', query: { f: form.id } }"
:title="$t('trans.manageFormActions.migrateForm')"
/>
</template>
<span :lang="locale">{{
$t('trans.manageFormActions.migrateForm')
}}</span>
</v-tooltip>
</span>

<span v-if="canManageEmail">
<v-tooltip location="bottom">
<template #activator="{ props }">
Expand Down
20 changes: 20 additions & 0 deletions app/frontend/src/internationalization/trans/chefs/ar/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,32 @@
"viewSubmissions": "مشاهدة عمليات الإرسال",
"teamManagement": "ادارة فريق",
"groupManagement": "إدارة المجموعات",
"migrateForm": "Transfer to Tenant",
"deleteForm": "حذف النموذج",
"confirmDeletion": "تأكيد الحذف",
"deleteMessageA": "هل أنت متأكد أنك ترغب في حذف",
"deleteMessageB": "لن يمكن الوصول إلى هذا النموذج بعد الآن.",
"delete": "يمسح"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "إعدادات النموذج",
"apiKey": "مفتاح API",
Expand Down
20 changes: 20 additions & 0 deletions app/frontend/src/internationalization/trans/chefs/de/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,32 @@
"viewSubmissions": "Einsendungen anzeigen",
"teamManagement": "Team Management",
"groupManagement": "Gruppenverwaltung",
"migrateForm": "Transfer to Tenant",
"deleteForm": "Formular löschen",
"confirmDeletion": "Löschung bestätigen",
"deleteMessageA": "Sind Sie sicher, dass Sie löschen möchten?",
"deleteMessageB": "Dieses Formular wird nicht mehr zugänglich sein.",
"delete": "Löschen"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "Formulareinstellungen",
"apiKey": "API-Schlüssel",
Expand Down
21 changes: 20 additions & 1 deletion app/frontend/src/internationalization/trans/chefs/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,32 @@
"viewSubmissions": "View Submissions",
"teamManagement": "Team Management",
"groupManagement": "Group Management",
"migrateForm": "Transfer to Tenant",
"deleteForm": "Delete Form",
"confirmDeletion": "Confirm Deletion",
"deleteMessageA": "Are you sure you wish to delete",
"deleteMessageB": "This form will no longer be accessible.",
"delete": "Delete"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "Form Settings",
"apiKey": "Api Key",
Expand Down Expand Up @@ -754,7 +774,6 @@
"formSubmission": "form submission",
"delete": "Delete"
},

"manageSubmissionUsers": {
"manageTeamMembers": "Manage Team Members",
"add": "Add",
Expand Down
20 changes: 20 additions & 0 deletions app/frontend/src/internationalization/trans/chefs/es/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,32 @@
"viewSubmissions": "Ver envíos",
"teamManagement": "Gestión de equipos",
"groupManagement": "Gestión de grupos",
"migrateForm": "Transfer to Tenant",
"deleteForm": "Eliminar formulario",
"confirmDeletion": "Confirmar la eliminación",
"deleteMessageA": "¿Está seguro de que desea eliminar",
"deleteMessageB": "Este formulario ya no será accesible.",
"delete": "Borrar"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "Configuración de formulario",
"apiKey": "Clave API",
Expand Down
20 changes: 20 additions & 0 deletions app/frontend/src/internationalization/trans/chefs/fa/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,32 @@
"viewSubmissions": "مشاهده موارد ارسالی",
"teamManagement": "مدیریت تیم",
"groupManagement": "مدیریت گروه",
"migrateForm": "Transfer to Tenant",
"deleteForm": "حذف فرم",
"confirmDeletion": "حذف را تایید کنید",
"deleteMessageA": "آیا مطمئن هستید که می خواهید حذف کنید؟",
"deleteMessageB": "این فرم دیگر در دسترس نخواهد بود.",
"delete": "حذف"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "تنظیمات فرم",
"apiKey": "کلید ای پی ای",
Expand Down
20 changes: 20 additions & 0 deletions app/frontend/src/internationalization/trans/chefs/fr/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,32 @@
"viewSubmissions": "Voir les soumissions",
"teamManagement": "Gestion d'équipe",
"groupManagement": "Gestion des groupes",
"migrateForm": "Transfer to Tenant",
"deleteForm": "Supprimer le formulaire",
"confirmDeletion": "Confirmer la suppression",
"deleteMessageA": "Êtes-vous sûr de vouloir supprimer",
"deleteMessageB": "Ce formulaire ne sera plus accessible.",
"delete": "Supprimer"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "Paramètres du formulaire",
"apiKey": "Clé API",
Expand Down
20 changes: 20 additions & 0 deletions app/frontend/src/internationalization/trans/chefs/hi/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,32 @@
"viewSubmissions": "सबमिशन देखें",
"teamManagement": "टीम प्रबंधन",
"groupManagement": "समूह प्रबंधन",
"migrateForm": "Transfer to Tenant",
"deleteForm": "फ़ॉर्म हटाएँ",
"confirmDeletion": "मिटाने की पुष्टि",
"deleteMessageA": "क्या आप वाकई हटाना चाहते हैं?",
"deleteMessageB": "यह फॉर्म अब पहुंच योग्य नहीं होगा.",
"delete": "मिटाना"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "फॉर्म सेटिंग्स",
"apiKey": "एपीआई कुंजी",
Expand Down
20 changes: 20 additions & 0 deletions app/frontend/src/internationalization/trans/chefs/it/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,32 @@
"viewSubmissions": "Visualizza invii",
"teamManagement": "Gestione della squadra",
"groupManagement": "Gestione dei gruppi",
"migrateForm": "Transfer to Tenant",
"deleteForm": "Elimina modulo",
"confirmDeletion": "Confermare la cancellazione",
"deleteMessageA": "Sei sicuro di voler eliminare",
"deleteMessageB": "Questo modulo non sarà più accessibile.",
"delete": "Eliminare"
},
"formMigration": {
"pageTitle": "Transfer Form to Tenant",
"description": "Transfer this personal form to a tenant and assign it to tenant groups. This action cannot be undone.",
"selectTenant": "Select Tenant",
"tenantPlaceholder": "Choose a tenant",
"impactTitle": "Migration Impact",
"teamMembersLabel": "Team Members",
"teamMembersHint": "These personal team members will lose direct access after migration. Users must be in an assigned tenant group to retain access.",
"draftSharesLabel": "Draft Share Links Affected",
"draftSharesHint": "Draft share links for this form will be restricted to users in the assigned tenant groups.",
"confirmTitle": "Confirm Transfer",
"confirmMessage": "Are you sure you want to transfer this form to the selected tenant? This action cannot be undone.",
"transferButton": "Transfer to Tenant",
"cancelButton": "Cancel",
"confirmButton": "Confirm Transfer",
"noEligibleTenants": "No eligible tenants available. You must have the Form Admin role in at least one tenant.",
"groupAccessInfo": "After migration, form access is controlled by your tenant's groups. Users must be members of an assigned group to access this form. Review and update group assignments on the Groups page after migration.",
"bceidNotSupported": "BCeID users are not supported in tenant mode. Any BCeID team members currently on this form will lose access after migration. Ensure all required users have IDIR accounts before proceeding."
},
"manageForm": {
"formSettings": "Impostazioni modulo",
"apiKey": "Chiave API",
Expand Down
Loading