Skip to content

Commit

Permalink
feat: salutations on contacts. close #579
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenHofft committed Aug 19, 2024
1 parent 66dac2e commit b6c7f0c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"select.dataset": "Select a dataset",
"select.network": "Select a network",
"primary": "Primary",
"salutation": "Salutation",
"firstName": "First name",
"lastName": "Last name",
"position": "Position",
Expand Down
1 change: 1 addition & 0 deletions public/_translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"select.dataset": "Select a dataset",
"select.network": "Select a network",
"primary": "Primary",
"salutation": "Salutation",
"firstName": "First name",
"lastName": "Last name",
"position": "Position",
Expand Down
9 changes: 9 additions & 0 deletions src/components/common/subtypes/ContactList/Details/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const ContactForm = (props) => {
<Checkbox />
</FormItem>

<FormItem
name="salutation"
label={
<FormattedMessage id="salutation" defaultMessage="Salutation" />
}
>
<Input />
</FormItem>

<FormItem
name="firstName"
label={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const ContactPresentation = ({ contact }) => {
>
<BooleanValue value={contact.primary}/>
</PresentationItem>
<PresentationItem label={<FormattedMessage id="salutation" defaultMessage="Salutation"/>}>
{contact.salutation}
</PresentationItem>
<PresentationItem label={<FormattedMessage id="firstName" defaultMessage="First name"/>}>
{contact.firstName}
</PresentationItem>
Expand Down

0 comments on commit b6c7f0c

Please sign in to comment.