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

Commit

Permalink
Merge pull request #1934 from rubencgt/feature/requiredFields
Browse files Browse the repository at this point in the history
fix(scheduling): mark required fields in New Appointment/Edit Appointment
  • Loading branch information
jackcmeyer committed Mar 21, 2020
2 parents 75c82d9 + 9305690 commit 338bc23
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

1 comment on commit 338bc23

@vercel
Copy link

@vercel vercel bot commented on 338bc23 Mar 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.