Skip to content

Commit

Permalink
feat: CE-1231 add * for required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarlett-Truong committed Nov 18, 2024
1 parent 6c9707a commit e5cdf59
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ export const AuthoizationOutcome: FC = () => {
id="ceeb-authorization"
>
<div className="comp-details-section-header">
<h3>Authorization</h3>
<div id="ceeb-authorization-header">
<h3>
Authorization<span className="required-ind">*</span>
</h3>
<div className="legend">One of these is required</div>
</div>
{!editable && (
<div className="comp-details-section-header-actions">
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ export const DecisionForm: FC<props> = ({
className="comp-details-form-row"
id="decision-schedule-sector-type"
>
<label htmlFor="outcome-decision-schedule-secto">WDR schedule/IPM sector type</label>
<label htmlFor="outcome-decision-schedule-secto">
WDR schedule/IPM sector type<span className="required-ind">*</span>
</label>
<div className="comp-details-input full-width">
<CompSelect
id="outcome-decision-schedule-sector"
Expand All @@ -342,7 +344,9 @@ export const DecisionForm: FC<props> = ({
className="comp-details-form-row"
id="decision-sector-category"
>
<label htmlFor="outcome-decision-sector-category">Sector/Category</label>
<label htmlFor="outcome-decision-sector-category">
Sector/Category<span className="required-ind">*</span>
</label>
<div className="comp-details-input full-width">
<CompSelect
id="outcome-decision-sector-category"
Expand All @@ -363,7 +367,9 @@ export const DecisionForm: FC<props> = ({
className="comp-details-form-row"
id="decision-discharge-type"
>
<label htmlFor="outcome-decision-discharge">Discharge type</label>
<label htmlFor="outcome-decision-discharge">
Discharge type<span className="required-ind">*</span>
</label>
<div className="comp-details-input full-width">
<CompSelect
id="outcome-decision-discharge"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ export const CreateAnimalOutcome: FC<props> = ({ index, assignedOfficer: officer
</legend>

<div className="comp-details-form-row">
<label htmlFor="select-species">Species</label>
<label htmlFor="select-species">
Species<span className="required-ind">*</span>
</label>
<div className="comp-details-input full-width">
<CompSelect
id="select-species"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ export const EditOutcome: FC<props> = ({ id, index, outcome, assignedOfficer: of
Animal Information
</legend>
<div className="comp-details-form-row">
<label htmlFor="select-species">Species</label>
<label htmlFor="select-species">
Species<span className="required-ind">*</span>
</label>

<CompSelect
id="select-species"
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/assets/sass/complaint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,17 @@
.btn {
font-size: 0.875rem;
}

#ceeb-authorization-header {
h3 {
margin-bottom: 3px;
}
.legend {
color: $gray-500;
margin-bottom: 16px;
font-size: 14px;
}
}
}

.comp-details-section-header-actions {
Expand Down

0 comments on commit e5cdf59

Please sign in to comment.