Skip to content

Commit

Permalink
Merge pull request #89 from mig-frankfurt/feature/88_Set_maxWidth_to_…
Browse files Browse the repository at this point in the history
…the_table_of_dataElementGroup_members

#88 - Set maxWidth to the table of dataElementGroup members
  • Loading branch information
vabishaa authored Sep 7, 2022
2 parents 67c7f3f + 9a7af36 commit 70b0607
Showing 1 changed file with 68 additions and 66 deletions.
134 changes: 68 additions & 66 deletions components/common/members.vue
Original file line number Diff line number Diff line change
@@ -1,70 +1,72 @@
<template>
<v-row
class="pa-4"
>
<v-col cols="5" class="elevation-1 pa-3 ma-2">
<v-row>
<v-col>
<v-text-field
v-model="search.query"
:counter="255"
:label="$t('global.searchText')"
@input="executeSearch()"
/>
</v-col>
</v-row>
<v-list
max-height="300px"
class="overflow-y-auto"
>
<draggable v-model="membersToChooseFrom" :options="{group:'people'}" min-height="100px">
<template v-for="item in membersToChooseFrom">
<v-list :key="item.id">
<v-list-item two-line>
<v-list-item-content>
<v-list-item-title>{{ item.designation }}</v-list-item-title>
<v-list-item-subtitle>{{ item.definition }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</v-list>
</template>
</draggable>
</v-list>
</v-col>
<v-col cols="5" class="elevation-1 pa-3 ma-2">
<v-subheader>
Selected Members:
</v-subheader>
<v-list
max-height="300px"
class="overflow-y-auto"
>
<draggable v-model="selectedMembers" :options="{group:'people'}">
<template v-for="item in selectedMembers">
<v-list :key="item.id" min-height="50px">
<v-list-item two-line>
<v-list-item-content>
<v-list-item-title>{{ item.designation }}</v-list-item-title>
<v-list-item-subtitle>{{ item.definition }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</v-list>
</template>
<div v-if="selectedMembers.length === 0" align="middle">
<v-icon size="70">
mdi-hand-pointing-up
</v-icon>
<h3 class="text-h2 mb-2">
{{ $t('global.addItem') }}
</h3>
<h3 class="text-h6 mb-2">
{{ $t('global.dragAndDrop') }}
</h3>
</div>
</draggable>
</v-list>
</v-col>
</v-row>
<v-container fluid>
<v-row
class="pa-1"
>
<v-col cols="5" class="elevation-1 pa-3 ma-2">
<v-row>
<v-col>
<v-text-field
v-model="search.query"
:counter="255"
:label="$t('global.searchText')"
@input="executeSearch()"
/>
</v-col>
</v-row>
<v-list
max-height="300px"
class="overflow-y-auto"
>
<draggable v-model="membersToChooseFrom" :options="{group:'people'}" min-height="100px">
<template v-for="item in membersToChooseFrom">
<v-list :key="item.id">
<v-list-item two-line>
<v-list-item-content>
<v-list-item-title>{{ item.designation }}</v-list-item-title>
<v-list-item-subtitle>{{ item.definition }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</v-list>
</template>
</draggable>
</v-list>
</v-col>
<v-col cols="5" class="elevation-1 pa-3 ma-2">
<v-subheader>
Selected Members:
</v-subheader>
<v-list
max-height="300px"
class="overflow-y-auto"
>
<draggable v-model="selectedMembers" :options="{group:'people'}">
<template v-for="item in selectedMembers">
<v-list :key="item.id" min-height="50px">
<v-list-item two-line>
<v-list-item-content>
<v-list-item-title>{{ item.designation }}</v-list-item-title>
<v-list-item-subtitle>{{ item.definition }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</v-list>
</template>
<div v-if="selectedMembers.length === 0" align="middle">
<v-icon size="70">
mdi-hand-pointing-up
</v-icon>
<h3 class="text-h2 mb-2">
{{ $t('global.addItem') }}
</h3>
<h3 class="text-h6 mb-2">
{{ $t('global.dragAndDrop') }}
</h3>
</div>
</draggable>
</v-list>
</v-col>
</v-row>
</v-container>
</template>
<script>
import draggable from 'vuedraggable'
Expand Down

0 comments on commit 70b0607

Please sign in to comment.