From 1940d1b7565b4dd3c962eb2e7af051aa7a69f207 Mon Sep 17 00:00:00 2001 From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com> Date: Wed, 3 Jan 2024 10:54:13 +0545 Subject: [PATCH] fix: create & edit project UI fixes (#1078) * fix (projectDetails): projectOptions - hide edit project button * feat (createNewProject): projectDetailsStep - link added * fix (createNewProject): selectFormStep - added css on the a tag * fix (createNewProject): selectFormStep - UI enhancements --- .../ProjectDetails/ProjectOptions.tsx | 4 +-- .../createnewproject/ProjectDetailsForm.tsx | 16 +++++++++--- .../createnewproject/SelectForm.tsx | 26 +++++++++++++++---- 3 files changed, 36 insertions(+), 10 deletions(-) diff --git a/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx b/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx index ca9be1c368..440c2d2b1c 100644 --- a/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx +++ b/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx @@ -140,7 +140,7 @@ const ProjectOptions = ({ setToggleGenerateModal }) => { > Generate MbTiles - { Edit Project - + */} diff --git a/src/frontend/src/components/createnewproject/ProjectDetailsForm.tsx b/src/frontend/src/components/createnewproject/ProjectDetailsForm.tsx index 7028ac91b7..3a5bb25f01 100644 --- a/src/frontend/src/components/createnewproject/ProjectDetailsForm.tsx +++ b/src/frontend/src/components/createnewproject/ProjectDetailsForm.tsx @@ -76,6 +76,7 @@ const ProjectDetailsForm = ({ flag }) => { handleChange(e); dispatch(CreateProjectActions.SetIsUnsavedChanges(true)); }; + return (
@@ -86,9 +87,18 @@ const ProjectDetailsForm = ({ flag }) => { information about your project. To complete the first step, you will need the login credentials of ODK Central Server.{' '} - - Here are the instructions for setting up a Central ODK Server on Digital Ocean, if you haven’t already. - +
+ + Here are the instructions for setting up a Central ODK Server on Digital Ocean, if you haven’t already. + + + https://docs.getodk.org/central-install-digital-ocean/ + +

{' '} You may learn more about XLSforms{' '} - + here . @@ -89,10 +93,10 @@ const SelectForm = ({ flag, geojsonFile, customFormFile, setCustomFormFile }) =>
-
+
handleCustomChange('formCategorySelection', value); }} errorMsg={errors.formCategorySelection} + className="fmtm-max-w-[13.5rem]" /> +

+ You will view the OSM data extracts of{' '} + + tags + {' '} + that match the selected category in OSM database, if you don't choose to upload custom data extract. +