Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine how to add an appended string to a field in recadm forms #72

Open
dgets opened this issue Jan 15, 2019 · 2 comments
Open

Determine how to add an appended string to a field in recadm forms #72

dgets opened this issue Jan 15, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dgets
Copy link
Owner

dgets commented Jan 15, 2019

While it isn't a huge inconvenience, the dosage units should be appended not as a form field, but as a string at the end of the form field for the dosage amount. Not quite sure how to add a pseudo-static string like that, but I'm sure it won't be too tough.

@dgets dgets added the enhancement New feature or request label Jan 15, 2019
@dgets dgets added this to the aesthetics milestone Jan 15, 2019
@dgets dgets self-assigned this Jan 15, 2019
dgets added a commit that referenced this issue Jan 15, 2019
dgets added a commit that referenced this issue Jan 15, 2019
…aview app. This closes #71; note that #72 still needs to be fixed.
@dgets
Copy link
Owner Author

dgets commented Jan 15, 2019

This needs to be handled/handed off to the add_entry template, btw.

@dgets
Copy link
Owner Author

dgets commented Jan 21, 2019

It's been advised on IRC #django that JavaScript be used for this particular portion, after the label is given some specific generic value in the ModelForm definition. It shouldn't take too much of a glance at the JS graphing script within the dataview app to figure out a good way to pass all of the sub.id and sub.units information to the JS. Then it's just a matter of detecting when anything new is selected from the substance list drop-down and changing the corresponding units label accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant