-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add user extended meta data in edit user and edit invitation (#537)
* add user extended meta data in edit user and edit invitation * use show more component in user meta data show * add new prop for html tag in form item display * use updated form item display component for user meta data * add existing user homepage URL locale
- Loading branch information
Showing
7 changed files
with
111 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
src/pages/userInvitation/UserInvitationExtendedMetaData.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<template> | ||
<div class="mt-8 flex flex-col gap-y-2"> | ||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.url')" | ||
:value=" | ||
store.invitationPayload.homePageUrl | ||
? store.invitationPayload.homePageUrl | ||
: '--' | ||
" | ||
></FormDisplayItemBasic> | ||
|
||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.phone')" | ||
:value=" | ||
store.invitationPayload.phone ? store.invitationPayload.phone : '--' | ||
" | ||
></FormDisplayItemBasic> | ||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.workingLanguages')" | ||
:value=" | ||
store.invitationPayload.locales ? store.invitationPayload.locales : '--' | ||
" | ||
></FormDisplayItemBasic> | ||
|
||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.interests')" | ||
:value=" | ||
localize(store.invitationPayload.reviewerInterests) | ||
? localize(store.invitationPayload.reviewerInterests) | ||
: '--' | ||
" | ||
></FormDisplayItemBasic> | ||
|
||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.affiliation')" | ||
:value=" | ||
localize(store.invitationPayload.affiliation) | ||
? localize(store.invitationPayload.affiliation) | ||
: '--' | ||
" | ||
></FormDisplayItemBasic> | ||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.bioStatement')" | ||
:html-value=" | ||
localize(store.invitationPayload.biography) | ||
? localize(store.invitationPayload.biography) | ||
: '--' | ||
" | ||
></FormDisplayItemBasic> | ||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.mailingAddress')" | ||
:html-value=" | ||
store.invitationPayload.mailingAddress | ||
? store.invitationPayload.mailingAddress | ||
: '--' | ||
" | ||
></FormDisplayItemBasic> | ||
<FormDisplayItemBasic | ||
heading-element="h4" | ||
:heading="t('user.signature')" | ||
:html-value=" | ||
localize(store.invitationPayload.signature) | ||
? localize(store.invitationPayload.signature) | ||
: '--' | ||
" | ||
></FormDisplayItemBasic> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import FormDisplayItemBasic from '@/components/FormDisplay/FormDisplayItemBasic.vue'; | ||
import {useLocalize} from '@/composables/useLocalize'; | ||
import {useUserInvitationPageStore} from './UserInvitationPageStore'; | ||
const {t} = useLocalize(); | ||
const store = useUserInvitationPageStore(); | ||
</script> |