rssidlowski / Pollution_Source_Tracking

City of Baltimore Pollution Source Tracking
0 stars 0 forks source link

Delete Sample: confirm before delete if associated with more than one investigation #32

Closed rssidlowski closed 9 years ago

rssidlowski commented 9 years ago

After linking a sample to an investigation, should prompt if user attempts to delete the sample. Current message is displayed: sampledeletemsg

When user clicks on the 'delete sample', prompt with message: If sample is only associated with one investigation only present this message: "Are you sure you want to delete this sample?" If sample is associated with more than one investigation present the following: "This sample is associated with the following investigations: --List investigation name and complainant dates here investigationlist Are you sure you want to delete this sample?"

kanglu666 commented 9 years ago

delete sample warning message has been updated

rssidlowski commented 9 years ago

Message is: deletesample Update to: Warning: This sample may be linked to other investigations. Are you sure you want to delete this sample?

So, we cannot display the other investigation in this message?

kanglu666 commented 9 years ago

updated, and if the sample is associated with other investigations, the message will show investigation id

rssidlowski commented 9 years ago

This is not working as described. See below that the sample is associated with two investigations: samplestoinv

When I attempt to unlink I see the following message: unlink

And then it is confirmed. unlinkconf

kanglu666 commented 9 years ago

you are doing wrong workflow. "Unlink" sample to investigation no means "delete" this sample. Delete sample function is in the sample detail page, there is a Delete Sample button for this.

rssidlowski commented 9 years ago

You are correct. This is working fine.