forked from pkp/ui-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#9992 Migrate ContributorsListPanel to side panel, rename …
…some other modals for more consistent naming
- Loading branch information
1 parent
48af3d4
commit e80e4c9
Showing
7 changed files
with
121 additions
and
137 deletions.
There are no files selected for viewing
File renamed without changes.
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
File renamed without changes.
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
48 changes: 48 additions & 0 deletions
48
src/components/ListPanel/contributors/ContributorsPreviewModal.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,48 @@ | ||
<template> | ||
<SideModalBody> | ||
<template #title> | ||
{{ t('submission.contributors') }} | ||
</template> | ||
<SideModalLayoutBasic> | ||
<p> | ||
{{ t('contributor.listPanel.preview.description') }} | ||
</p> | ||
<table class="pkpTable"> | ||
<thead> | ||
<tr> | ||
<th>{{ t('contributor.listPanel.preview.format') }}</th> | ||
<th>{{ t('contributor.listPanel.preview.display') }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{ t('contributor.listPanel.preview.abbreviated') }}</td> | ||
<td>{{ publication.authorsStringShort }}</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
{{ t('contributor.listPanel.preview.publicationLists') }} | ||
</td> | ||
<td>{{ publication.authorsStringIncludeInBrowse }}</td> | ||
</tr> | ||
<tr> | ||
<td>{{ t('contributor.listPanel.preview.full') }}</td> | ||
<td>{{ publication.authorsString }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</SideModalLayoutBasic> | ||
</SideModalBody> | ||
</template> | ||
|
||
<script setup> | ||
import SideModalBody from '@/components/Modal/SideModalBody.vue'; | ||
import SideModalLayoutBasic from '@/components/Modal/SideModalLayoutBasic.vue'; | ||
import {useLocalize} from '@/composables/useLocalize'; | ||
defineProps({ | ||
publication: {type: Object, required: true}, | ||
}); | ||
const {t} = useLocalize(); | ||
</script> |
26 changes: 26 additions & 0 deletions
26
src/components/ListPanel/highlights/HighlightsEditModal.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,26 @@ | ||
<template> | ||
<SideModalBody> | ||
<template #title> | ||
{{ title }} | ||
</template> | ||
<SideModalLayoutBasic> | ||
<PkpForm | ||
v-bind="activeForm" | ||
@set="(...args) => emit('updateForm', ...args)" | ||
@success="(...args) => emit('formSuccess', ...args)" | ||
/> | ||
</SideModalLayoutBasic> | ||
</SideModalBody> | ||
</template> | ||
|
||
<script setup> | ||
import SideModalBody from '@/components/Modal/SideModalBody.vue'; | ||
import SideModalLayoutBasic from '@/components/Modal/SideModalLayoutBasic.vue'; | ||
import PkpForm from '@/components/Form/Form.vue'; | ||
defineProps({ | ||
title: {type: String, required: true}, | ||
activeForm: {type: Object, required: true}, | ||
}); | ||
const emit = defineEmits(['updateForm', 'formSuccess']); | ||
</script> |
Oops, something went wrong.