Skip to content

Commit

Permalink
fix(patient): mark required fields in New Appointment/Edit Appointment
Browse files Browse the repository at this point in the history
Mark required fields with the *.

fix HospitalRun#1916
  • Loading branch information
rubencgt committed Mar 21, 2020
1 parent 8afecaa commit 47d14a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/input/DateTimePickerWithLabelFormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DateTimePickerWithLabelFormGroup = (props: Props) => {
const id = `${name}DateTimePicker`
return (
<div className="form-group">
<Label text={label} htmlFor={id} />
<Label text={label} isRequired htmlFor={id} />
<DateTimePicker
dateFormat="MM/dd/yyyy h:mm aa"
dateFormatCalendar="LLLL yyyy"
Expand Down
6 changes: 5 additions & 1 deletion src/scheduling/appointments/AppointmentDetailForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ const AppointmentDetailForm = (props: Props) => {
<div className="row">
<div className="col">
<div className="form-group">
<Label htmlFor="patientTypeahead" text={t('scheduling.appointment.patient')} />
<Label
htmlFor="patientTypeahead"
isRequired
text={t('scheduling.appointment.patient')}
/>
<Typeahead
id="patientTypeahead"
disabled={!isEditable || patient !== undefined}
Expand Down

0 comments on commit 47d14a0

Please sign in to comment.