Wrap widget by extra wizard div (Fix #1).

This commit is contained in:
David Molineus
2017-10-04 10:55:51 +02:00
parent 4bf1e715b0
commit 1964dab9e8
2 changed files with 14 additions and 12 deletions

View File

@@ -25,7 +25,7 @@
},
"require": {
"php": ">=5.5.0",
"contao/core-bundle": "~4.3",
"contao/core-bundle": "^4.4.2",
"contao-community-alliance/composer-plugin": "~2.4 || ~3.0",
"netzmacht/contao-leaflet-libraries": "~1.0"
},

View File

@@ -1,7 +1,7 @@
<?php
<?php
$GLOBALS['TL_CSS'][] = 'assets/leaflet/libs/leaflet/leaflet.css';
$GLOBALS['TL_CSS'][] = 'assets/leaflet/libs/control-geocoder/Control.Geocoder.css';
$GLOBALS['TL_CSS'][] = 'assets/leaflet/libs/leaflet/leaflet.css';
$GLOBALS['TL_CSS'][] = 'assets/leaflet/libs/control-geocoder/Control.Geocoder.css';
$GLOBALS['TL_JAVASCRIPT'][] = 'assets/leaflet/libs/leaflet/leaflet.js';
$GLOBALS['TL_JAVASCRIPT'][] = 'assets/leaflet/libs/control-geocoder/Control.Geocoder.js';
@@ -9,15 +9,17 @@ $GLOBALS['TL_JAVASCRIPT'][] = 'bundles/leafletgeocodewidget/js/geocode.widget.js
?>
<input type="text"
name="<?= $this->name ?>"
id="ctrl_<?= $this->id ?>"
class="tl_text tl_leaflet_geocode<?= $this->class ?>"
value="<?= $this->value ?>"<?= $this->attributes ?>
onfocus="Backend.getScrollOffset()"
>
<div class="wizard">
<input type="text"
name="<?= $this->name ?>"
id="ctrl_<?= $this->id ?>"
class="tl_text tl_leaflet_geocode<?= $this->class ?>"
value="<?= $this->value ?>"<?= $this->attributes ?>
onfocus="Backend.getScrollOffset()"
>
<img src="bundles/leafletgeocodewidget/img/map.png" id="ctrl_<?= $this->id ?>_toggle">
<img src="bundles/leafletgeocodewidget/img/map.png" id="ctrl_<?= $this->id ?>_toggle">
</div>
<?= $this->wizard ?>
<script>