Lint
This commit is contained in:
parent
8543faf213
commit
a27ffea59c
|
@ -48,7 +48,7 @@ class MemberController extends Controller
|
|||
$payload['query'] = $query;
|
||||
$payload['billKinds'] = BillKind::pluck('name', 'id');
|
||||
|
||||
return \Inertia::render('member/Index', $payload);
|
||||
return \Inertia::render('member/VIndex', $payload);
|
||||
}
|
||||
|
||||
public function create(): Response {
|
||||
|
|
|
@ -17,7 +17,7 @@ class PaymentController extends Controller
|
|||
$payload = app(MemberView::class)->index($request, []);
|
||||
$payload['single'] = app(MemberView::class)->paymentIndex($member);
|
||||
|
||||
return \Inertia::render('member/Index', $payload);
|
||||
return \Inertia::render('member/VIndex', $payload);
|
||||
}
|
||||
|
||||
public function store(Request $request, Member $member) {
|
||||
|
@ -37,7 +37,7 @@ class PaymentController extends Controller
|
|||
$payload = app(MemberView::class)->index($request, []);
|
||||
$payload['single'] = app(MemberView::class)->paymentEdit($member, $payment);
|
||||
|
||||
return \Inertia::render('member/Index', $payload);
|
||||
return \Inertia::render('member/VIndex', $payload);
|
||||
}
|
||||
|
||||
public function update(Request $request, Member $member, Payment $payment) {
|
||||
|
|
|
@ -17,7 +17,7 @@ class SendpaymentController extends Controller
|
|||
session()->put('menu', 'member');
|
||||
session()->put('title', 'Rechnungen versenden');
|
||||
|
||||
return Inertia::render('sendpayment/Form', [
|
||||
return Inertia::render('sendpayment/VForm', [
|
||||
'types' => app(ActionFactory::class)->allLinks(),
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<th></th>
|
||||
</thead>
|
||||
|
||||
<tr v-for="course, index in value.courses">
|
||||
<tr v-for="course, index in value.courses" :key="index">
|
||||
<td v-text="course.course_name"></td>
|
||||
<td v-text="course.event_name"></td>
|
||||
<td v-text="course.organizer"></td>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<th></th>
|
||||
</thead>
|
||||
|
||||
<tr v-for="payment, index in value.payments">
|
||||
<tr v-for="payment, index in value.payments" :key="index">
|
||||
<td v-text="payment.nr"></td>
|
||||
<td v-text="payment.status_name"></td>
|
||||
<td v-text="payment.subscription_name"></td>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</table>
|
||||
</div>
|
||||
<div class="flex flex-col pb-6 px-6">
|
||||
<a href="#" @click.prevent="openLink(link)" :class="{'disabled': link.disabled}" target="_BLANK" v-for="link in value.payment_links" class="mt-1 text-center btn btn-primary" v-text="link.label"></a>
|
||||
<a href="#" @click.prevent="openLink(link)" :class="{'disabled': link.disabled}" target="_BLANK" v-for="link, index in value.payment_links" :key="index" class="mt-1 text-center btn btn-primary" v-text="link.label"></a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
|
@ -66,8 +66,8 @@
|
|||
</div>
|
||||
|
||||
<transition name="sidebar">
|
||||
<payments v-if="single !== null && sidebar === 'payment.index'" @close="closeSidebar" :subscriptions="subscriptions" :statuses="statuses" v-model="data.data[single]"></payments>
|
||||
<memberships v-if="single !== null && sidebar === 'membership.index'" @close="closeSidebar" :activities="activities" :subactivities="subactivities" v-model="data.data[single]"></memberships>
|
||||
<member-payments v-if="single !== null && sidebar === 'payment.index'" @close="closeSidebar" :subscriptions="subscriptions" :statuses="statuses" v-model="data.data[single]"></member-payments>
|
||||
<member-memberships v-if="single !== null && sidebar === 'membership.index'" @close="closeSidebar" :activities="activities" :subactivities="subactivities" v-model="data.data[single]"></member-memberships>
|
||||
<member-courses v-if="single !== null && sidebar === 'courses.index'" @close="closeSidebar" :courses="courses" v-model="data.data[single]"></member-courses>
|
||||
</transition>
|
||||
</div>
|
||||
|
@ -75,8 +75,8 @@
|
|||
|
||||
<script>
|
||||
import App from '../../layouts/App';
|
||||
import Payments from './Payments.vue';
|
||||
import Memberships from './Memberships.vue';
|
||||
import MemberPayments from './MemberPayments.vue';
|
||||
import MemberMemberships from './MemberMemberships.vue';
|
||||
import MemberCourses from './MemberCourses.vue';
|
||||
import Filt from './Filt.vue';
|
||||
import mergesQueryString from '../../mixins/mergesQueryString.js';
|
||||
|
@ -94,7 +94,7 @@ export default {
|
|||
|
||||
mixins: [mergesQueryString],
|
||||
|
||||
components: { Memberships, Payments, Filt, MemberCourses },
|
||||
components: { MemberMemberships, MemberPayments, Filt, MemberCourses },
|
||||
|
||||
methods: {
|
||||
remove(member) {
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="grid grid-cols-2">
|
||||
<div class="p-6" v-for="type in types">
|
||||
<p class="text-white" v-for="paragraph in type.text" v-text="paragraph"></p>
|
||||
<div class="p-6" v-for="type, index in types" :key="index">
|
||||
<p class="text-white" v-for="paragraph, index in type.text" :key="index" v-text="paragraph"></p>
|
||||
<a :href="type.link.href" target="_BLANK" class="btn btn-primary mt-3 inline-block" v-text="type.link.label"></a>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue