Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

autogen-create-individual-page #544

Merged
merged 2 commits into from
Aug 25, 2023
Merged
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
4 changes: 3 additions & 1 deletion locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1254,5 +1254,7 @@
"PREFIX_INVALID" : "Please provide a unique prefix of 3 to 5 characters for this species.",
"SPECIES_ERROR" : "Please select a species.",
"CODEX_ID" : "Codex ID",
"SPECIES_CONSISTENT_ERROR" : "Selected Codex ID does not match the species."
"SPECIES_CONSISTENT_ERROR" : "Selected Codex ID does not match the species.",
"CODEX_ID_CREATION" : "Codex ID Creation",
"CODEX_ID_CREATION_DESCRIPTION" : "Codex ID will be assigned based on the species."
}
8 changes: 8 additions & 0 deletions src/pages/createIndividual/CreateIndividual.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Alert from '../../components/Alert';
import EncounterCard from '../../components/cards/EncounterCard';
import useIndividualFieldSchemas from '../../models/individual/useIndividualFieldSchemas';
import usePostIndividual from '../../models/individual/usePostIndividual';
import CustomAlert from '../../components/Alert';

function calculateInitialState(schemas) {
if (!schemas) return {};
Expand Down Expand Up @@ -138,6 +139,13 @@ export default function CreateIndividual() {
/>
))}
</Grid>
<Grid item style={{ marginTop: 16 }}>
<CustomAlert
severity="info"
titleId="CODEX_ID_CREATION"
descriptionId="CODEX_ID_CREATION_DESCRIPTION"
/>
</Grid>
<Grid
item
style={{ display: 'flex', flexDirection: 'column' }}
Expand Down
1 change: 1 addition & 0 deletions src/pages/match/MatchSighting.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export default function MatchSighting() {
bottom: 16,
right: 40,
zIndex: 1,
borderRadius: 4,
}}
color="primary"
variant="extended"
Expand Down