11 Commits

Author SHA1 Message Date
leigh-mil
c94570f83e Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-14 16:46:35 -05:00
leigh-mil
a5d34f9bb2 Check against the contract dates instead of the current maxStart and minEnd values to calculate the new maxStart and minEnds 2019-10-01 12:51:51 -04:00
leigh-mil
a8635e8c8b Add explanation about maxStartDate and minEndDate,
Refactor calc max and min functions
2019-09-26 16:27:10 -04:00
leigh-mil
92243965ec parse contract dates into datetime objects 2019-09-26 16:22:16 -04:00
leigh-mil
df5f4b9d3e Get rid of unnecessary data in pop date range 2019-09-26 16:22:15 -04:00
leigh-mil
c03820e53a Emit event on input from date selector so parent element can respond 2019-09-26 16:22:15 -04:00
leigh-mil
5e1ce65662 Move html out of clin fields macro and fix initial values in pop date range when there is no form data 2019-09-26 16:22:15 -04:00
leigh-mil
843501c00a Fix bug where name attribute of start date fields was not properly assigned
Fix bug in pop_date_range were startValid and endValid were not being properly updated
2019-09-26 16:22:02 -04:00
leigh-mil
d52abeb0a9 Only update the min and max values for other field when the field that was updated is valid -- This prevents both fields from becoming invalid when the dates are not in chronological order. 2019-09-26 16:22:02 -04:00
leigh-mil
d42cd1ff4f Dynamically update the max and min values for start and end date based on the date in the other field and contract dates 2019-09-26 16:22:02 -04:00
leigh-mil
0e641a9064 Create vue component to manage date range logic 2019-09-26 16:21:27 -04:00