Custom medication inventory interface

Description

Errors occur frequently when submitting a new custom medication on the inventory page. To reproduce make sure your account has the "Admin" role and has been added to a trip. Click the admin module then click Inventory.

1) Clicking submit without filling any fields results in an error
2) Filling out only Brand/Quantity and clicking results in an error

Expected behavior:

1) Let the page POST, but don't perform any actions
2) The Generic & Strength boxes should turn red and the POST should be stopped. See FEMR278 for an example

Environment

None

Assignee

Unassigned

Reporter

Kevin Zurek

Priority

Medium
Configure