Skip to content

Commit e7e2bd6

Browse files
moved latitude and longitude
1 parent 3c90deb commit e7e2bd6

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/app/gateway/gateway-edit/gateway-edit.component.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,46 +77,46 @@
7777
<p class="label">{{ "HEIGHTCURVESINFO" | translate }}</p>
7878
</div>
7979

80-
<div class="row mb-5">
81-
<div class="form-group mt-3 col-6">
82-
<label class="form-label" for="longitude">{{ "GATEWAY.LONGITUDE" | translate }}</label>
80+
<div class="row mb-5">
81+
<div class="form-group mt-3 col-6">
82+
<label class="form-label" for="location.latitude">{{ "GATEWAY.LATITUDE" | translate }}</label>
8383
<input
8484
type="number"
8585
class="form-control"
86-
id="longitude"
87-
name="longitude"
86+
id="location.latitude"
87+
name="location.latitude"
8888
[placeholder]="'00'"
8989
required
90-
[(ngModel)]="gateway.location.longitude"
90+
[(ngModel)]="gateway.location.latitude"
9191
step=".000001"
9292
min="-180"
9393
max="180"
9494
maxlength="12"
9595
(keyup)="onCoordinateKey($event)"
9696
[ngClass]="{
97-
'is-invalid': formFailedSubmit && errorFields.includes('longitude'),
98-
'is-valid': formFailedSubmit && !errorFields.includes('longitude')
97+
'is-invalid': formFailedSubmit && errorFields.includes('latitude'),
98+
'is-valid': formFailedSubmit && !errorFields.includes('latitude')
9999
}"
100100
/>
101101
</div>
102102
<div class="form-group mt-3 col-6">
103-
<label class="form-label" for="location.latitude">{{ "GATEWAY.LATITUDE" | translate }}</label>
103+
<label class="form-label" for="longitude">{{ "GATEWAY.LONGITUDE" | translate }}</label>
104104
<input
105105
type="number"
106106
class="form-control"
107-
id="location.latitude"
108-
name="location.latitude"
107+
id="longitude"
108+
name="longitude"
109109
[placeholder]="'00'"
110110
required
111-
[(ngModel)]="gateway.location.latitude"
111+
[(ngModel)]="gateway.location.longitude"
112112
step=".000001"
113113
min="-180"
114114
max="180"
115115
maxlength="12"
116116
(keyup)="onCoordinateKey($event)"
117117
[ngClass]="{
118-
'is-invalid': formFailedSubmit && errorFields.includes('latitude'),
119-
'is-valid': formFailedSubmit && !errorFields.includes('latitude')
118+
'is-invalid': formFailedSubmit && errorFields.includes('longitude'),
119+
'is-valid': formFailedSubmit && !errorFields.includes('longitude')
120120
}"
121121
/>
122122
</div>

0 commit comments

Comments
 (0)