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>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<input
|
<div class="form-group">
|
||||||
class="form-control"
|
<label for="layer_name" data-i18n="layers.custom-layer-name-label">Custom layer name</label>
|
||||||
type="text"
|
<input class="form-control" type="text" id="layer_name" spellcheck="true" wrap="off" />
|
||||||
id="layer_name"
|
<p class="help-block" data-i18n="layers.custom-layer-name-helptext">ex: OpenStreetMap</p>
|
||||||
spellcheck="true"
|
</div>
|
||||||
wrap="off"
|
|
||||||
data-i18n="[placeholder]layers.placeholder-layer-name"
|
<div class="form-group">
|
||||||
placeholder="Custom layer name. (ex: OpenStreetMap)"
|
<label for="layer_name" data-i18n="layers.custom-layer-url-label"
|
||||||
/>
|
>Custom layer URL/Query</label
|
||||||
<input
|
>
|
||||||
class="form-control"
|
<input class="form-control" type="text" id="layer_url" spellcheck="false" wrap="off" />
|
||||||
type="text"
|
<p class="help-block">
|
||||||
id="layer_url"
|
<span data-i18n="layers.custom-layer-url-helptext-normal"
|
||||||
spellcheck="false"
|
>URL for normal layers, ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png</span
|
||||||
wrap="off"
|
><br />
|
||||||
data-i18n="[placeholder]layers.placeholder-layer-url"
|
<span data-i18n="layers.custom-layer-url-helptext-overpass"
|
||||||
placeholder="Custom layer URL. (ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png)"
|
>Overpass Query, ex: nwr[shop]['diet:vegan']['diet:vegan'!=no];</span
|
||||||
/>
|
>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
||||||
|
|
@ -71,10 +71,13 @@
|
||||||
"add-base": "Add base layer",
|
"add-base": "Add base layer",
|
||||||
"add-overlay": "Add overlay",
|
"add-overlay": "Add overlay",
|
||||||
"add-overpass": "Add overpass query",
|
"add-overpass": "Add overpass query",
|
||||||
|
"custom-layer-name-helptext": "ex: OpenStreetMap",
|
||||||
|
"custom-layer-name-label": "Custom layer name",
|
||||||
|
"custom-layer-url-helptext-normal": "URL for normal layers, ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||||
|
"custom-layer-url-helptext-overpass": "Overpass Query, ex: nwr[shop]['diet:vegan']['diet:vegan'!=no];",
|
||||||
|
"custom-layer-url-label": "Custom layer URL/Query",
|
||||||
"customize": "Customize layers",
|
"customize": "Customize layers",
|
||||||
"opacity-slider": "Opacity slider",
|
"opacity-slider": "Opacity slider",
|
||||||
"placeholder-layer-name": "Custom layer name. (ex: OpenStreetMap)",
|
|
||||||
"placeholder-layer-url": "Custom layer URL. (ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png)",
|
|
||||||
"remove-selection": "Remove selection"
|
"remove-selection": "Remove selection"
|
||||||
},
|
},
|
||||||
"loadNogos": {
|
"loadNogos": {
|
||||||
|
|
@ -244,7 +247,7 @@
|
||||||
"overlay-opacity": "Overlay transparency",
|
"overlay-opacity": "Overlay transparency",
|
||||||
"overlay-opacity_plural": "Overlays transparency",
|
"overlay-opacity_plural": "Overlays transparency",
|
||||||
"table": {
|
"table": {
|
||||||
"URL": "URL",
|
"URL": "URL/Query",
|
||||||
"empty": "No custom layer configured yet.",
|
"empty": "No custom layer configured yet.",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
|
|
@ -294,4 +297,4 @@
|
||||||
"new-version": "A new version was released since your last visit. Click <a href='.' data-toggle='modal' data-target='#whatsnew'>here</a> to see what's new!",
|
"new-version": "A new version was released since your last visit. Click <a href='.' data-toggle='modal' data-target='#whatsnew'>here</a> to see what's new!",
|
||||||
"title": "What's new?"
|
"title": "What's new?"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue