Add buttons for member index
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
be3336a18d
commit
bfd69d6f04
|
@ -154,10 +154,12 @@ export default {
|
||||||
window.addEventListener('resize', this.menuListener);
|
window.addEventListener('resize', this.menuListener);
|
||||||
this.menuListener();
|
this.menuListener();
|
||||||
|
|
||||||
window.addEventListener('inertiaStart', (e) => {
|
window.addEventListener('inertiaStart', () => {
|
||||||
_self.menuVisible = false;
|
if (!window.matchMedia('(min-width: 1024px)').matches) {
|
||||||
_self.searchVisible = false;
|
_self.menuVisible = false;
|
||||||
_self.menuOverflowVisible = false;
|
_self.searchVisible = false;
|
||||||
|
_self.menuOverflowVisible = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,57 +34,7 @@
|
||||||
<v-label :value="member.pending_payment" fallback="---"></v-label>
|
<v-label :value="member.pending_payment" fallback="---"></v-label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="flex space-x-1">
|
<actions :member="member" @sidebar="openSidebar(index, $event)" @remove="remove(member)"></actions>
|
||||||
<i-link
|
|
||||||
:href="member.links.show"
|
|
||||||
class="inline-flex btn btn-primary btn-sm"
|
|
||||||
v-tooltip="`Details`"
|
|
||||||
><svg-sprite src="eye"></svg-sprite
|
|
||||||
></i-link>
|
|
||||||
<i-link
|
|
||||||
:href="`/member/${member.id}/edit`"
|
|
||||||
class="inline-flex btn btn-warning btn-sm"
|
|
||||||
v-tooltip="`bearbeiten`"
|
|
||||||
><svg-sprite src="pencil"></svg-sprite
|
|
||||||
></i-link>
|
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
v-tooltip="`Zahlungen`"
|
|
||||||
v-show="hasModule('bill')"
|
|
||||||
@click.prevent="openSidebar(index, 'payment.index')"
|
|
||||||
class="inline-flex btn btn-info btn-sm"
|
|
||||||
><svg-sprite src="money"></svg-sprite
|
|
||||||
></a>
|
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
v-tooltip="`Ausbildungen`"
|
|
||||||
v-show="hasModule('courses')"
|
|
||||||
@click.prevent="openSidebar(index, 'courses.index')"
|
|
||||||
class="inline-flex btn btn-info btn-sm"
|
|
||||||
><svg-sprite src="course"></svg-sprite
|
|
||||||
></a>
|
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
v-tooltip="`Mitgliedschaften`"
|
|
||||||
@click.prevent="openSidebar(index, 'membership.index')"
|
|
||||||
class="inline-flex btn btn-info btn-sm"
|
|
||||||
><svg-sprite src="user"></svg-sprite
|
|
||||||
></a>
|
|
||||||
<a
|
|
||||||
:href="member.efz_link"
|
|
||||||
v-show="member.efz_link"
|
|
||||||
class="inline-flex btn btn-info btn-sm"
|
|
||||||
v-tooltip="`EFZ Formular`"
|
|
||||||
><svg-sprite src="report"></svg-sprite
|
|
||||||
></a>
|
|
||||||
<i-link
|
|
||||||
href="#"
|
|
||||||
@click.prevent="remove(member)"
|
|
||||||
class="inline-flex btn btn-danger btn-sm"
|
|
||||||
v-tooltip="`Entfernen`"
|
|
||||||
><svg-sprite src="trash"></svg-sprite
|
|
||||||
></i-link>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -95,14 +45,15 @@
|
||||||
<age-groups class="ml-2" :member="member" icon-class="w-4 h-4"></age-groups>
|
<age-groups class="ml-2" :member="member" icon-class="w-4 h-4"></age-groups>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-xs text-gray-200" v-text="member.full_address"></div>
|
<div class="text-xs text-gray-200" v-text="member.full_address"></div>
|
||||||
<div class="flex items-center mt-1 space-x-2">
|
<div class="flex items-center mt-1 space-x-4">
|
||||||
<tags :member="member"></tags>
|
<tags :member="member"></tags>
|
||||||
<v-label
|
<v-label
|
||||||
class="text-gray-100"
|
class="text-gray-100 block"
|
||||||
v-show="hasModule('bill')"
|
v-show="hasModule('bill')"
|
||||||
:value="member.pending_payment"
|
:value="member.pending_payment"
|
||||||
fallback=""
|
fallback=""
|
||||||
></v-label>
|
></v-label>
|
||||||
|
<actions :member="member" @sidebar="openSidebar(index, $event)" @remove="remove(member)"></actions>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute right-0 top-0 h-full flex items-center mr-2">
|
<div class="absolute right-0 top-0 h-full flex items-center mr-2">
|
||||||
<i-link :href="member.links.show" v-tooltip="`Details`"
|
<i-link :href="member.links.show" v-tooltip="`Details`"
|
||||||
|
@ -165,6 +116,7 @@ export default {
|
||||||
MemberCourses,
|
MemberCourses,
|
||||||
'age-groups': () => import(/* webpackChunkName: "member" */ './AgeGroups'),
|
'age-groups': () => import(/* webpackChunkName: "member" */ './AgeGroups'),
|
||||||
'tags': () => import(/* webpackChunkName: "member" */ './Tags'),
|
'tags': () => import(/* webpackChunkName: "member" */ './Tags'),
|
||||||
|
'actions': () => import(/* webpackChunkName: "member" */ './index/Actions'),
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
<template>
|
||||||
|
<div class="flex space-x-1">
|
||||||
|
<i-link :href="member.links.show" class="inline-flex btn btn-primary btn-sm" v-tooltip="`Details`"
|
||||||
|
><svg-sprite src="eye"></svg-sprite
|
||||||
|
></i-link>
|
||||||
|
<i-link :href="`/member/${member.id}/edit`" class="inline-flex btn btn-warning btn-sm" v-tooltip="`bearbeiten`"
|
||||||
|
><svg-sprite src="pencil"></svg-sprite
|
||||||
|
></i-link>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
v-tooltip="`Zahlungen`"
|
||||||
|
v-show="hasModule('bill')"
|
||||||
|
@click.prevent="$emit('sidebar', 'payment.index')"
|
||||||
|
class="inline-flex btn btn-info btn-sm"
|
||||||
|
><svg-sprite src="money"></svg-sprite
|
||||||
|
></a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
v-tooltip="`Ausbildungen`"
|
||||||
|
v-show="hasModule('courses')"
|
||||||
|
@click.prevent="$emit('sidebar', 'courses.index')"
|
||||||
|
class="inline-flex btn btn-info btn-sm"
|
||||||
|
><svg-sprite src="course"></svg-sprite
|
||||||
|
></a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
v-tooltip="`Mitgliedschaften`"
|
||||||
|
@click.prevent="$emit('sidebar', 'courses.index')"
|
||||||
|
class="inline-flex btn btn-info btn-sm"
|
||||||
|
><svg-sprite src="user"></svg-sprite
|
||||||
|
></a>
|
||||||
|
<a
|
||||||
|
:href="member.efz_link"
|
||||||
|
v-show="member.efz_link"
|
||||||
|
class="inline-flex btn btn-info btn-sm"
|
||||||
|
v-tooltip="`EFZ Formular`"
|
||||||
|
><svg-sprite src="report"></svg-sprite
|
||||||
|
></a>
|
||||||
|
<i-link
|
||||||
|
href="#"
|
||||||
|
@click.prevent="$emit('remove')"
|
||||||
|
class="inline-flex btn btn-danger btn-sm"
|
||||||
|
v-tooltip="`Entfernen`"
|
||||||
|
><svg-sprite src="trash"></svg-sprite
|
||||||
|
></i-link>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
member: {},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in New Issue