Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

fix(scheduling): mark required fields in New Appointment/Edit Appointment #1934

Merged
merged 2 commits into from
Mar 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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