17 changed files with 371 additions and 271 deletions
@ -1,70 +1,53 @@
@@ -1,70 +1,53 @@
|
||||
<template> |
||||
<v-card> |
||||
<v-card-title> |
||||
<span class="text-h5">{{ $t('contributors.editForm.title') }}</span> |
||||
</v-card-title> |
||||
<v-card> |
||||
<v-card-title> |
||||
<span class="text-h5">{{ $t('contributors.editForm.title') }}</span> |
||||
</v-card-title> |
||||
|
||||
<contributor-list-item :contributor="contributor" /> |
||||
<contributor-list-item :contributor="contributor" /> |
||||
|
||||
<v-card-text> |
||||
<v-container> |
||||
<v-row> |
||||
<v-col |
||||
cols="12" |
||||
sm="6" |
||||
md="4" |
||||
> |
||||
<v-select |
||||
v-model="formData.roles" |
||||
:items="roles" |
||||
item-text="name" |
||||
item-value="id" |
||||
multiple |
||||
chips |
||||
:label="$t('form.studyField')" |
||||
></v-select> |
||||
</v-col> |
||||
</v-row> |
||||
</v-container> |
||||
</v-card-text> |
||||
<v-card-text> |
||||
<v-container> |
||||
<v-row> |
||||
<v-col cols="12" sm="6" md="4"> |
||||
<v-select |
||||
v-model="formData.roles" |
||||
:items="roles" |
||||
item-text="name" |
||||
item-value="id" |
||||
multiple |
||||
chips |
||||
:label="$t('form.contributorRole')" |
||||
></v-select> |
||||
</v-col> |
||||
</v-row> |
||||
</v-container> |
||||
</v-card-text> |
||||
|
||||
<v-card-actions> |
||||
<v-spacer></v-spacer> |
||||
<v-btn |
||||
color="blue darken-1" |
||||
text |
||||
@click="close" |
||||
> |
||||
{{ $t('contributors.editForm.cancel') }} |
||||
</v-btn> |
||||
<v-btn |
||||
color="blue darken-1" |
||||
text |
||||
@click="save" |
||||
> |
||||
{{ $t('contributors.editForm.save') }} |
||||
</v-btn> |
||||
</v-card-actions> |
||||
</v-card> |
||||
<v-card-actions> |
||||
<v-spacer></v-spacer> |
||||
<v-btn color="blue darken-1" text @click="close"> |
||||
{{ $t('contributors.editForm.cancel') }} |
||||
</v-btn> |
||||
<v-btn color="blue darken-1" text @click="save"> |
||||
{{ $t('contributors.editForm.save') }} |
||||
</v-btn> |
||||
</v-card-actions> |
||||
</v-card> |
||||
</template> |
||||
|
||||
<script> |
||||
import Form from '@/lib/form'; |
||||
import Form from '@/lib/form' |
||||
|
||||
export default { |
||||
props: { |
||||
|
||||
}, |
||||
props: {}, |
||||
data() { |
||||
return { |
||||
formData: {}, |
||||
contributor: {}, |
||||
roles: [], |
||||
form: Form({ |
||||
|
||||
}) |
||||
form: Form({}), |
||||
} |
||||
}, |
||||
|
||||
} |
||||
</script> |
||||
|
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
import Vue from 'vue' |
||||
import ImageUploader from 'vue-image-upload-resize' |
||||
|
||||
Vue.use(ImageUploader) |
Loading…
Reference in new issue