Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltip for required fields in bulk carry forward config #6202

Open
wants to merge 3 commits into
base: production
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ function CarryForwardCategory({
title={
isUnique
? formsText.carryForwardUniqueField()
: isRequired
? formsText.carryForwardRequiredField()
: field.getLocalizedDesc()
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import type { CollectionFetchFilters } from '../DataModel/collection';
import type { AnySchema } from '../DataModel/helperTypes';
import type { SpecifyResource } from '../DataModel/legacyTypes';
import { resourceOn } from '../DataModel/resource';
import { schema } from '../DataModel/schema';
import type { Relationship } from '../DataModel/specifyField';
import type { SpecifyTable } from '../DataModel/specifyTable';
import { tables } from '../DataModel/tables';
Expand All @@ -24,7 +25,6 @@ import { IntegratedRecordSelector } from '../FormSliders/IntegratedRecordSelecto
import { isTreeTable } from '../InitialContext/treeRanks';
import { TableIcon } from '../Molecules/TableIcon';
import { relationshipIsToMany } from '../WbPlanView/mappingHelpers';
import { schema } from '../DataModel/schema';

type SubViewContextType =
| {
Expand Down
8 changes: 8 additions & 0 deletions specifyweb/frontend/js_src/lib/localization/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,14 @@ export const formsText = createDictionary({
'uk-ua': 'Це поле має бути унікальним. Його не можна переносити',
'de-ch': 'Dieses Feld muss eindeutig sein. Es kann nicht übertragen werden',
},
carryForwardRequiredField: {
'en-us': 'This field is required. It must be carried forward',
'ru-ru': 'Это поле обязательно. Его необходимо перенести',
'es-es': 'Este campo es obligatorio. Debe ser transferido',
'fr-fr': 'Ce champ est obligatoire. Il doit être reporté',
'uk-ua': "Це поле обов'язкове. Його потрібно перенести",
'de-ch': 'Dieses Feld ist erforderlich. Es muss übertragen werden',
},
cloneButtonEnabled: {
'en-us': 'Show Clone button',
'ru-ru': 'Показать кнопку клонировать',
Expand Down
Loading