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"
|
||||
|
|
|
|||
|
|
@ -71,10 +71,13 @@
|
|||
"add-base": "Add base layer",
|
||||
"add-overlay": "Add overlay",
|
||||
"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",
|
||||
"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"
|
||||
},
|
||||
"loadNogos": {
|
||||
|
|
@ -244,7 +247,7 @@
|
|||
"overlay-opacity": "Overlay transparency",
|
||||
"overlay-opacity_plural": "Overlays transparency",
|
||||
"table": {
|
||||
"URL": "URL",
|
||||
"URL": "URL/Query",
|
||||
"empty": "No custom layer configured yet.",
|
||||
"name": "Name",
|
||||
"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!",
|
||||
"title": "What's new?"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue