This commit is contained in:
2020-11-11 21:41:14 +00:00
parent 26beccb45c
commit 5618d4381f
2 changed files with 43 additions and 2 deletions

View File

@@ -12,6 +12,9 @@ todo: Uifielddatatype Phone and TimeSpan support at client, translation keys etc
todo: input type email url phone number etc supported on device to activate? todo: input type email url phone number etc supported on device to activate?
if not, it must be supported somehow so figure it out if not, it must be supported somehow so figure it out
todo: latitude longitude needs replacement decimal control or something else, can't use precision more than two decimal places
NOTE: check docs, maybe it's a setting on the existing control?
NEXT UP: Customer NEXT UP: Customer

View File

@@ -255,7 +255,45 @@
></v-text-field> ></v-text-field>
</v-col> </v-col>
<!-- //-------------------- --> <v-col
v-if="form().showMe(this, 'Latitude')"
cols="12"
sm="6"
lg="4"
xl="3"
>
<gz-decimal
v-model="obj.latitude"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('AddressLatitude')"
ref="latitude"
data-cy="latitude"
:rules="[form().decimalValid(this, 'latitude')]"
:error-messages="form().serverErrors(this, 'latitude')"
@input="fieldValueChanged('latitude')"
></gz-decimal>
</v-col>
<v-col
v-if="form().showMe(this, 'Longitude')"
cols="12"
sm="6"
lg="4"
xl="3"
>
<gz-decimal
v-model="obj.longitude"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('AddressLongitude')"
ref="longitude"
data-cy="longitude"
:rules="[form().decimalValid(this, 'longitude')]"
:error-messages="form().serverErrors(this, 'longitude')"
@input="fieldValueChanged('longitude')"
></gz-decimal>
</v-col>
<v-col <v-col
v-if="form().showMe(this, 'PostAddress')" v-if="form().showMe(this, 'PostAddress')"