Rework form inputs validation

This commit is contained in:
Gautier Pelloux-Prayer 2019-08-07 11:12:54 +02:00
parent 55005549e3
commit 5969c43208
2 changed files with 7 additions and 4 deletions

View file

@ -500,26 +500,28 @@
<label
for="nogoWeight"
data-i18n="loadNogos.nogoWeight"
>No-go weight:
>No-go weight (-1 means impassable):
</label>
<input
type="number"
name="nogoWeight"
id="nogoWeight"
value="-1"
min="-1"
/>
</p>
<p>
<label
for="nogoRadius"
data-i18n="loadNogos.nogoRadius"
>No-go radius (for points):
>No-go radius for points (in meters):
</label>
<input
type="number"
name="nogoRadius"
id="nogoRadius"
value="20"
min="0"
/>
</p>
<p>
@ -533,6 +535,7 @@
name="nogoBuffer"
id="nogoBuffer"
value="0"
min="0"
/>
</p>
</fieldset>

View file

@ -64,8 +64,8 @@
"file": "File (.geojson): ",
"load": "Load",
"nogoBuffer": "Buffer no-go areas (in meters): ",
"nogoRadius": "No-go radius (for points): ",
"nogoWeight": "No-go weight: ",
"nogoRadius": "No-go radius for points (in meters): ",
"nogoWeight": "No-go weight (-1 means impassable): ",
"source": "Source",
"title": "Load no-go areas",
"url": "URL: "