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 / EmailFormField.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
EmailFormField.vue
60 lines
1 <template>
2 <!-- Email -->
3 <el-form-item
4 v-if="amCustomize[pageRenderKey].infoStep.options.email.visibility"
5 class="am-fs__info-form__item"
6 prop="email"
7 label-position="top"
8 >
9 <template #label>
10 <span class="am-fs__info-form__label">
11 {{labelsDisplay('email_colon')}}
12 </span>
13 </template>
14 <AmInput
15 v-model="infoFormData.email"
16 name="email"
17 type="text"
18 :placeholder="labelsDisplay('enter_email')"
19 ></AmInput>
20 </el-form-item>
21 <!-- /Email -->
22 </template>
23
24 <script setup>
25 import AmInput from'../../../_components/input/AmInput.vue'
26
27 import { computed, inject } from "vue";
28
29 let langKey = inject('langKey')
30 let amLabels = inject('labels')
31
32 let pageRenderKey = inject('pageRenderKey')
33 let amCustomize = inject('customize')
34
35 // * Label computed function
36 function labelsDisplay (label) {
37 let computedLabel = computed(() => {
38 return amCustomize.value[pageRenderKey.value].infoStep.translations
39 && amCustomize.value[pageRenderKey.value].infoStep.translations[label]
40 && amCustomize.value[pageRenderKey.value].infoStep.translations[label][langKey.value]
41 ? amCustomize.value[pageRenderKey.value].infoStep.translations[label][langKey.value]
42 : amLabels[label]
43 })
44
45 return computedLabel.value
46 }
47
48 // * Form field data
49 let infoFormData = inject('infoFormData')
50 </script>
51
52 <script>
53 export default {
54 name: "EmailFormField"
55 }
56 </script>
57
58 <style scoped>
59
60 </style>