Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,25 @@ const AdminDataImportPage = () => {
/>
{TYPE_OF_IMPORTS.map(type => {
if (type.value === typeOfImport) {
return <p style={{ maxWidth: '544px' }} key={type.value}>{formatMessage(type.info)}</p>
return (
<div key={type.value}>
<p style={{ maxWidth: '544px' }} key={type.value}>{formatMessage(type.info)}</p>

{typeOfImport === 'User' && (
<p
style={{
color: '#cc0000',
fontWeight: 'bold',
marginTop: '12px',
maxWidth: '544px',
lineHeight: 1.4,
}}
>
{formatMessage(type.additionalInfo)}
</p>
)}
</div>
)
}
})}
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/admin-data-import/consts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const TYPE_OF_IMPORTS = [
{
value: "User",
name: "admin.dataImport.types.users",
info: "admin.dataImport.types.users.info"
info: "admin.dataImport.types.users.info",
additionalInfo: "admin.dataImport.types.users.additionalInfo"
}
];

Expand Down
1 change: 1 addition & 0 deletions src/admin-data-import/messages_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"admin.dataImport.types.population.info": "To import Population you need a ZIP with a geographicZone.csv file",
"admin.dataImport.types.facilities.info": "To import Facilities you need: facility.csv, supportedProgram.csv",
"admin.dataImport.types.users.info": "To import Users you need: user.csv, roleAssignment.csv",
"admin.dataImport.types.users.additionalInfo": "Please be careful when importing user roles. All current roles will be removed and replaced with the ones in the file. See the documentation for more information.",
"admin.dataImport.modal.summary": "Import Summary",
"admin.dataImport.modal.totalEntries": "Total Entries",
"admin.dataImport.modal.successfulEntries": "Successful Entries",
Expand Down
Loading