Use separate label/helptext instead of plain placeholders
This commit is contained in:
parent
f345fe54a8
commit
1b60d9af73
2 changed files with 27 additions and 22 deletions
38
index.html
38
index.html
|
|
@ -203,24 +203,26 @@
|
|||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input
|
||||
class="form-control"
|
||||
type="text"
|
||||
id="layer_name"
|
||||
spellcheck="true"
|
||||
wrap="off"
|
||||
data-i18n="[placeholder]layers.placeholder-layer-name"
|
||||
placeholder="Custom layer name. (ex: OpenStreetMap)"
|
||||
/>
|
||||
<input
|
||||
class="form-control"
|
||||
type="text"
|
||||
id="layer_url"
|
||||
spellcheck="false"
|
||||
wrap="off"
|
||||
data-i18n="[placeholder]layers.placeholder-layer-url"
|
||||
placeholder="Custom layer URL. (ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png)"
|
||||
/>
|
||||
<div class="form-group">
|
||||
<label for="layer_name" data-i18n="layers.custom-layer-name-label">Custom layer name</label>
|
||||
<input class="form-control" type="text" id="layer_name" spellcheck="true" wrap="off" />
|
||||
<p class="help-block" data-i18n="layers.custom-layer-name-helptext">ex: OpenStreetMap</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="layer_name" data-i18n="layers.custom-layer-url-label"
|
||||
>Custom layer URL/Query</label
|
||||
>
|
||||
<input class="form-control" type="text" id="layer_url" spellcheck="false" wrap="off" />
|
||||
<p class="help-block">
|
||||
<span data-i18n="layers.custom-layer-url-helptext-normal"
|
||||
>URL for normal layers, ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png</span
|
||||
><br />
|
||||
<span data-i18n="layers.custom-layer-url-helptext-overpass"
|
||||
>Overpass Query, ex: nwr[shop]['diet:vegan']['diet:vegan'!=no];</span
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue