charlottebrf / DoctorsWhoCode

My Time Manager: Your helpful time manager app created for CF: G Ruby course AW 2016 course competition project.
https://evening-lowlands-39707.herokuapp.com/
0 stars 0 forks source link

Allow user to delete targets from the target list #39

Closed melikecode closed 7 years ago

melikecode commented 7 years ago

A user can add targets (e.g. X minutes of ACTIVITY per PERIOD). A user should be able to delete a target.

melikecode commented 7 years ago

There’s no unique ID for an activity to identify it in a form (e.g. in the "value" field). There might be a way to achieve this by sticking the key data together in the value field, separated by characters we can use to parse stuff out later, like a comma or a backslash - kind of like how you can deal with a CSV file and parse out the cells that way.

(e.g. value="row["target_minutes"],row["target_activity"],row["period"]")

Any thoughts on this?

We could prevent special characters in the text fields where the user logs activities to make sure those characters aren’t in there http://www.w3schools.com/tags/att_input_pattern.asp

melikecode commented 7 years ago

Complete