Skip to content

Commit

Permalink
Correct overridable tag containing multiple children
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahW91 committed Dec 11, 2023
1 parent dd898a2 commit 3dd61ea
Showing 1 changed file with 25 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,35 +90,34 @@ function CustomAwardForm({ deserializeFunder, selectedFunding }) {
}}
/>
</Overridable>

<Overridable id="InvenioVocabularies.CustomAwardForm.AwardInformation.container">
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardInformation.Header">
<Header as="h3" size="small">
{i18next.t("Award information (optional)")}
{i18next.t("Award information")} ({i18next.t("optional")})
</Header>
<Form.Group widths="equal">
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardNumber.TextField">
<TextField
label={i18next.t("Number")}
placeholder={i18next.t("Award number")}
fieldPath="selectedFunding.award.number"
/>
</Overridable>
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardTitle.TextField">
<TextField
label={i18next.t("Title")}
placeholder={i18next.t("Award Title")}
fieldPath="selectedFunding.award.title"
/>
</Overridable>
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardUrl.TextField">
<TextField
label={i18next.t("URL")}
placeholder={i18next.t("Award URL")}
fieldPath="selectedFunding.award.url"
/>
</Overridable>
</Form.Group>
</Overridable>
<Form.Group widths="equal">
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardNumber.TextField">
<TextField
label={i18next.t("Number")}
placeholder={i18next.t("Award number")}
fieldPath="selectedFunding.award.number"
/>
</Overridable>
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardTitle.TextField">
<TextField
label={i18next.t("Title")}
placeholder={i18next.t("Award Title")}
fieldPath="selectedFunding.award.title"
/>
</Overridable>
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardUrl.TextField">
<TextField
label={i18next.t("URL")}
placeholder={i18next.t("Award URL")}
fieldPath="selectedFunding.award.url"
/>
</Overridable>
</Form.Group>
</Form>
);
}
Expand Down

0 comments on commit 3dd61ea

Please sign in to comment.