Skip to content

Commit

Permalink
Improved: label for ion-inputs according to ionic 7 (hotwax#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Mar 28, 2024
1 parent 4914c39 commit f34ef71
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/views/AddFacilityAddress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@
</ion-item>
<ion-item>
<ion-input label-placement="floating" v-model="formData.address1">
<ion-label>
{{ translate('Address line 1') }} <ion-text color="danger">*</ion-text>
</ion-label>
<div slot="label">{{ translate('Address line 1') }} <ion-text color="danger">*</ion-text></div>
</ion-input>
</ion-item>
<ion-item>
<ion-input :label="translate('Address line 2')" label-placement="floating" v-model="formData.address2" />
</ion-item>
<ion-item>
<ion-input label-placement="floating" v-model="formData.city">
<ion-label slot="label">
{{ translate('City') }} <ion-text color="danger">*</ion-text>
</ion-label>
<div slot="label">{{ translate('City') }} <ion-text color="danger">*</ion-text></div>
</ion-input>
</ion-item>
<ion-item>
Expand Down Expand Up @@ -64,11 +60,12 @@
</ion-card-header>
<ion-list>
<ion-item>
<ion-input aria-label="zipcode" v-model="formData.postalCode" :placeholder="translate('Zipcode')" />
<ion-button :disabled="!formData.postalCode || !formData.address1 || !formData.city" @click="generateLatLong()" slot="end" fill="outline">
<ion-icon slot="end" :icon='colorWandOutline' />
{{ translate('Generate') }}
</ion-button>
<ion-input v-model="formData.postalCode" :placeholder="translate('Zipcode')">
<ion-button :disabled="!formData.postalCode || !formData.address1 || !formData.city" @click="generateLatLong()" slot="end" fill="outline">
<ion-icon slot="end" :icon='colorWandOutline' />
{{ translate('Generate') }}
</ion-button>
</ion-input>
</ion-item>
<ion-item>
<ion-input :label="translate('Latitude')" label-placement="floating" :disabled="!formData.address1 || !formData.city" v-model="formData.latitude" />
Expand Down Expand Up @@ -104,7 +101,6 @@ import {
IonIcon,
IonInput,
IonItem,
IonLabel,
IonList,
IonPage,
IonSelect,
Expand Down Expand Up @@ -137,7 +133,6 @@ export default defineComponent({
IonIcon,
IonInput,
IonItem,
IonLabel,
IonList,
IonPage,
IonSelect,
Expand Down

0 comments on commit f34ef71

Please sign in to comment.