Skip to content

Commit

Permalink
Merge branch 'bose/2660' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle committed Nov 21, 2024
2 parents 3d8afcb + 8947b51 commit 77527be
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions web/pageComponents/topicPages/Form/CareerFairForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ const CareerFairForm = () => {
email: '',
contactPerson: '',
phone: '',
event: intl.formatMessage({
id: 'career_fair_form_invite_career_fair',
defaultMessage: 'Invite Equinor to a career fair or student event',
}),
event: '',
eventDescription: '',
website: '',
supportingDocuments: '',
Expand Down Expand Up @@ -112,10 +109,10 @@ const CareerFairForm = () => {
<FormTextField
{...props}
id={props.name}
label={intl.formatMessage({
label={`${intl.formatMessage({
id: 'career_fair_form_organisation',
defaultMessage: 'School / Organisation',
})}
})}*`}
inputRef={ref}
aria-required="true"
inputIcon={invalid ? <Icon data={error_filled} title="error" /> : undefined}
Expand All @@ -137,10 +134,10 @@ const CareerFairForm = () => {
<FormTextField
{...props}
id={props.name}
label={intl.formatMessage({
label={`${intl.formatMessage({
id: 'career_fair_form_contact_person',
defaultMessage: 'Contact Person',
})}
})}*`}
inputRef={ref}
aria-required="true"
inputIcon={invalid ? <Icon data={error_filled} title="error" /> : undefined}
Expand Down Expand Up @@ -169,10 +166,10 @@ const CareerFairForm = () => {
<TextField
{...props}
id={props.name}
label={intl.formatMessage({
label={`${intl.formatMessage({
id: 'career_fair_form_phone',
defaultMessage: 'Phone Number',
})}
})}*`}
description={intl.formatMessage({
id: 'country_code_format',
defaultMessage: 'Enter phone number with country code',
Expand Down Expand Up @@ -231,6 +228,12 @@ const CareerFairForm = () => {
aria-describedby="select-helper-text-${id}"
label={intl.formatMessage({ id: 'career_fair_form_event', defaultMessage: 'Event' })}
>
<option value="">
{intl.formatMessage({
id: 'form_please_select_an_option',
defaultMessage: 'Please select an option',
})}
</option>
<option>
{intl.formatMessage({
id: 'career_fair_form_invite_career_fair',
Expand Down Expand Up @@ -284,10 +287,10 @@ const CareerFairForm = () => {
rowsMax={10}
maxLength={3400}
aria-required="true"
label={intl.formatMessage({
label={`${intl.formatMessage({
id: 'career_fair_form_event_description',
defaultMessage: 'Event Description',
})}
})}*`}
description={intl.formatMessage(
{
id: 'form_validation_maxChars',
Expand Down
1 change: 1 addition & 0 deletions web/pageComponents/topicPages/Form/SubscribeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const SubscribeForm = () => {
id="subscribe_form_choose"
defaultMessage="Please choose one or more of the following"
/>
*
</legend>
)}
{errors.categories && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ const CareersContactForm = () => {
rules={{
validate: {
require: (value) => {
console.log('value', value)
if (!value && setPositionIdMandatory) {
console.log('not validated required field')
return intl.formatMessage({
Expand Down

0 comments on commit 77527be

Please sign in to comment.