aodn / nrmn-application

A web application for collation, validation, and storage of all data obtained during surveys conducted by the NRMN
GNU General Public License v3.0
4 stars 3 forks source link

Feature/edit data with warning#5599 #1364

Closed HavierD closed 5 months ago

HavierD commented 5 months ago

In the system, now:

utas-raymondng commented 5 months ago

So the solution is to change the save action, right now we will round the lat/lng automatically before save and then do the validation, therefore there is not way to generate a warning on the UI.

This change split the save to two one, the first save do not round it automatically, then give user a chance to see the warning where lat/lng will be round

When submit, those lat/lng will be round automatically and then save it to db and then call submit.