Skip to content

Commit

Permalink
fix: updating form, with disclaimer to use original form
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Sep 24, 2024
1 parent ed97ef5 commit e81c3b6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,6 @@ async def update_project_form(
project.odkid,
xlsform,
category,
len(project.tasks),
odk_creds,
)

Expand Down
40 changes: 22 additions & 18 deletions src/frontend/src/components/ManageProject/EditTab/FormUpdateTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,28 @@ const FormUpdateTab = ({ projectId }) => {
{`if uploading the final submissions to OSM.`}
</p>
</div>
<p className="fmtm-text-base fmtm-mt-2">
Please{' '}
<a
className="fmtm-text-blue-600 hover:fmtm-text-blue-700 fmtm-cursor-pointer fmtm-underline"
onClick={() =>
dispatch(
DownloadProjectForm(
`${import.meta.env.VITE_API_URL}/projects/download-form/${projectId}/`,
'form',
projectId,
),
)
}
>
download
</a>{' '}
{`your form, modify it, before re-uploading below:`}
</p>
<div>
<p className="fmtm-text-base">⚠️ IMPORTANT ⚠️</p>
<p className="fmtm-text-base fmtm-mt-2">
Please{' '}
<a
className="fmtm-text-blue-600 hover:fmtm-text-blue-700 fmtm-cursor-pointer fmtm-underline"
onClick={() =>
dispatch(
DownloadProjectForm(
`${import.meta.env.VITE_API_URL}/projects/download-form/${projectId}/`,
'form',
projectId,
),
)
}
>
download
</a>{' '}
{`your form and modify it, before re-uploading below.`}
</p>
<p className="fmtm-text-base fmtm-mt-2">Do not upload the original form, as it has since been updated.</p>
</div>
<div>
<UploadArea
title="Upload Form"
Expand Down

0 comments on commit e81c3b6

Please sign in to comment.