primevue-mirror/pages/steps/Confirmation.vue

70 lines
2.9 KiB
Vue
Raw Normal View History

2022-09-09 20:41:18 +00:00
<template>
<div class="stepsdemo-content">
2022-09-13 11:29:45 +00:00
<ClientOnly>
2022-09-14 14:26:41 +00:00
<Card>
<template v-slot:title> Confirmation </template>
<template v-slot:content>
<div class="field col-12">
<label for="class">Name</label>
<b>{{ formData.firstname ? formData.firstname : '-' }} {{ formData.lastname ? formData.lastname : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">Age</label>
<b>{{ formData.age ? formData.age : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">Seat Class</label>
<b>{{ formData.class ? formData.class : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">Wagon Number</label>
<b>{{ formData.vagon ? formData.vagon : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">Seat</label>
<b>{{ formData.seat ? formData.seat : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">Cardholder Name</label>
<b>{{ formData.cardholderName ? formData.cardholderName : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">Card Number</label>
<b>{{ formData.cardholderNumber ? formData.cardholderNumber : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">Date</label>
<b>{{ formData.date ? formData.date : '-' }}</b>
</div>
<div class="field col-12">
<label for="Age">CVV</label>
<b>{{ formData.cvv && formData.cvv.length === 3 ? '**' + formData.cvv[2] : '-' }}</b>
</div>
</template>
<template v-slot:footer>
<div class="grid grid-nogutter justify-content-between">
<Button label="Back" @click="prevPage()" icon="pi pi-angle-left" />
<Button label="Complete" @click="complete()" icon="pi pi-check" iconPos="right" class="p-button-success" />
</div>
</template>
</Card>
2022-09-13 11:29:45 +00:00
</ClientOnly>
2022-09-09 20:41:18 +00:00
</div>
</template>
<script>
export default {
props: {
formData: Object
},
methods: {
prevPage() {
this.$emit('prev-page', { pageIndex: 3 });
},
complete() {
this.$emit('complete');
}
}
};
</script>