Rework form inputs validation
This commit is contained in:
parent
55005549e3
commit
5969c43208
2 changed files with 7 additions and 4 deletions
|
|
@ -500,26 +500,28 @@
|
||||||
<label
|
<label
|
||||||
for="nogoWeight"
|
for="nogoWeight"
|
||||||
data-i18n="loadNogos.nogoWeight"
|
data-i18n="loadNogos.nogoWeight"
|
||||||
>No-go weight:
|
>No-go weight (-1 means impassable):
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
name="nogoWeight"
|
name="nogoWeight"
|
||||||
id="nogoWeight"
|
id="nogoWeight"
|
||||||
value="-1"
|
value="-1"
|
||||||
|
min="-1"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label
|
<label
|
||||||
for="nogoRadius"
|
for="nogoRadius"
|
||||||
data-i18n="loadNogos.nogoRadius"
|
data-i18n="loadNogos.nogoRadius"
|
||||||
>No-go radius (for points):
|
>No-go radius for points (in meters):
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
name="nogoRadius"
|
name="nogoRadius"
|
||||||
id="nogoRadius"
|
id="nogoRadius"
|
||||||
value="20"
|
value="20"
|
||||||
|
min="0"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -533,6 +535,7 @@
|
||||||
name="nogoBuffer"
|
name="nogoBuffer"
|
||||||
id="nogoBuffer"
|
id="nogoBuffer"
|
||||||
value="0"
|
value="0"
|
||||||
|
min="0"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
||||||
|
|
@ -64,8 +64,8 @@
|
||||||
"file": "File (.geojson): ",
|
"file": "File (.geojson): ",
|
||||||
"load": "Load",
|
"load": "Load",
|
||||||
"nogoBuffer": "Buffer no-go areas (in meters): ",
|
"nogoBuffer": "Buffer no-go areas (in meters): ",
|
||||||
"nogoRadius": "No-go radius (for points): ",
|
"nogoRadius": "No-go radius for points (in meters): ",
|
||||||
"nogoWeight": "No-go weight: ",
|
"nogoWeight": "No-go weight (-1 means impassable): ",
|
||||||
"source": "Source",
|
"source": "Source",
|
||||||
"title": "Load no-go areas",
|
"title": "Load no-go areas",
|
||||||
"url": "URL: "
|
"url": "URL: "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue