adrema/resources/js/views/member/Index.vue

60 lines
2.2 KiB
Vue
Raw Normal View History

2020-06-02 23:45:25 +02:00
<template>
<div>
2021-04-11 02:55:26 +02:00
<div class="member-table">
<header>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Nachname</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Vorname</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Straße</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">PLZ</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Ort</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Z</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Geburtstag</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Eintritt</div>
</header>
<inertia-link :href="`/member/${member.id}`" :key="index" v-for="member, index in data.data" class="text-gray-200 transition-all duration-500 rounded flex hover:bg-gray-600">
<div class="py-1 px-6" v-text="member.firstname"></div>
<div class="py-1 px-6" v-text="member.lastname"></div>
<div class="py-1 px-6" v-text="`${member.address}`"></div>
<div class="py-1 px-6" v-text="`${member.zip}`"></div>
<div class="py-1 px-6" v-text="`${member.location}`"></div>
<div class="py-1 px-6">
<v-bool v-model="member.send_newspaper"></v-bool>
</div>
<div class="py-1 px-6" v-text="`${member.birthday}`"></div>
<div class="py-1 px-6" v-text="`${member.joined_at}`"></div>
</inertia-link>
</div>
<div class="px-6">
<pages class="mt-4" :value="data.meta" :only="['data']"></pages>
</div>
2020-06-02 23:45:25 +02:00
</div>
</template>
<script>
2021-04-11 02:55:26 +02:00
import App from '../../layouts/App';
2020-06-02 23:45:25 +02:00
2021-04-11 02:55:26 +02:00
export default {
layout: App,
2020-06-02 23:45:25 +02:00
2021-04-11 02:55:26 +02:00
props:{
data: {}
2020-06-02 23:45:25 +02:00
}
2021-04-11 02:55:26 +02:00
}
2020-06-02 23:45:25 +02:00
</script>
2021-04-11 02:55:26 +02:00
<style scoped>
.member-table {
display: table;
width: 100%;
}
.member-table > * {
display: table-row;
}
.member-table > * > * {
display: table-cell;
}
</style>