PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / trunk
Booking for Appointments and Events Calendar – Amelia vtrunk
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 / FirstNameFormField.vue
ameliabooking / v3 / src / views / admin / customize / fields Last commit date
EmailFormField.vue 5 days ago EmployeeFormField.vue 5 days ago FirstNameFormField.vue 5 days ago LastNameFormField.vue 5 days ago LocationFormField.vue 5 days ago PhoneFormField.vue 5 days ago ServiceFormField.vue 5 days ago
FirstNameFormField.vue
54 lines
1 <template>
2 <!-- First Name -->
3 <el-form-item class="am-fs__info-form__item" prop="firstName" label-position="top">
4 <template #label>
5 <span class="am-fs__info-form__label">
6 {{ labelsDisplay('first_name_colon') }}
7 </span>
8 </template>
9 <AmInput
10 v-model="infoFormData.firstName"
11 name="firstName"
12 :placeholder="labelsDisplay('enter_first_name')"
13 />
14 </el-form-item>
15 <!-- /First Name -->
16 </template>
17
18 <script setup>
19 import AmInput from '../../../_components/input/AmInput.vue'
20 import { useReactiveCustomize } from '../../../../assets/js/admin/useReactiveCustomize.js'
21
22 import { computed, inject } from 'vue'
23
24 let langKey = inject('langKey')
25 let amLabels = inject('labels')
26
27 let pageRenderKey = inject('pageRenderKey')
28 const { amCustomize } = useReactiveCustomize()
29
30 // * Label computed function
31 function labelsDisplay(label) {
32 let computedLabel = computed(() => {
33 return amCustomize.value[pageRenderKey.value].infoStep.translations &&
34 amCustomize.value[pageRenderKey.value].infoStep.translations[label] &&
35 amCustomize.value[pageRenderKey.value].infoStep.translations[label][langKey.value]
36 ? amCustomize.value[pageRenderKey.value].infoStep.translations[label][langKey.value]
37 : amLabels[label]
38 })
39
40 return computedLabel.value
41 }
42
43 // * Form field data
44 let infoFormData = inject('infoFormData')
45 </script>
46
47 <script>
48 export default {
49 name: 'FirstNameFormField',
50 }
51 </script>
52
53 <style scoped></style>
54