View difference between Paste ID: DT45jjVc and CW6mbiar
SHOW: | | - or go back to the newest paste.
1-
	public function getControl()
1+
<div class="google-map">
2-
	{
2+
	{input city} {input street} {input zip}
3-
		$select = parent::getControl();
3+
</div>
4-
		$select->name .= '[currency]';
4+
5-
		// $select->id .= '-currency'; // tenhle měnit nechceš, aby na něj šlo prokliknout z labelu
5+
.... 
6-
		$select->value = $this->value['currency'];
6+
7
<script>
8-
		$price = parent::getControl();
8+
$('.google-map').each(function () {
9-
		$price->name .= '[amount]';
9+
	$(this)... // najdes si ty prvky adresy
10-
		$price->id .= '-amount';
10+
	$(this).append($('<div class="map" />')); // připojíš prvek, kam vykreslíš mapu
11-
		$price->value = $this->value['amount'];
11+
	// provážeš
12
});
13-
		return Html::el()->add($price)->add($select);
13+
</script>