PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.20
Booking for Appointments and Events Calendar – Amelia v1.2.20
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / v3 / src / views / admin / customize / fields / PhoneFormField.vue
ameliabooking / v3 / src / views / admin / customize / fields Last commit date
EmailFormField.vue 4 years ago EmployeeFormField.vue 3 years ago FirstNameFormField.vue 4 years ago LastNameFormField.vue 4 years ago LocationFormField.vue 3 years ago PhoneFormField.vue 4 years ago ServiceFormField.vue 2 years ago
PhoneFormField.vue
60 lines
1 <template>
2 <!-- Phone Number -->
3 <el-form-item
4 v-if="amCustomize[pageRenderKey].infoStep.options.phone.visibility"
5 class="am-fs__info-form__item"
6 prop="phone"
7 label-position="top"
8 >
9 <template #label>
10 <span class="am-fs__info-form__label">
11 {{labelsDisplay('phone_colon')}}
12 </span>
13 </template>
14 <AmInputPhone
15 v-model="infoFormData.phone"
16 :placeholder="labelsDisplay('enter_phone')"
17 name="phone"
18 />
19 </el-form-item>
20 <!-- /Phone Number -->
21 </template>
22
23 <script setup>
24 import AmInputPhone from '../../../_components/input-phone/AmInputPhone.vue'
25
26 import { computed, inject } from "vue";
27
28 let langKey = inject('langKey')
29 let amLabels = inject('labels')
30
31 let pageRenderKey = inject('pageRenderKey')
32 let amCustomize = inject('customize')
33
34 // * Label computed function
35 function labelsDisplay (label) {
36 let computedLabel = computed(() => {
37 return amCustomize.value[pageRenderKey.value].infoStep.translations
38 && amCustomize.value[pageRenderKey.value].infoStep.translations[label]
39 && amCustomize.value[pageRenderKey.value].infoStep.translations[label][langKey.value]
40 ? amCustomize.value[pageRenderKey.value].infoStep.translations[label][langKey.value]
41 : amLabels[label]
42 })
43
44 return computedLabel.value
45 }
46
47 // * Form field data
48 let infoFormData = inject('infoFormData')
49
50 </script>
51
52 <script>
53 export default {
54 name: "PhoneFormField"
55 }
56 </script>
57
58 <style scoped>
59
60 </style>