<div class="form-group form-group-flex delivery-select">
   <label>Zásilkovna</label>
   <div class="widget-wrapper" data-zasilkovna-wrapper-{$object.id}>
      <p id="zasilkovna-name">{$info['name']}</p>
      <button type="button" class="btn btn-sm" data-btn="open-packeta-widget">{t}Změnit Zásilkovnu{/t}</button>
      <input type="hidden" name="data[delivery_data][zasilkovna_point_data]" value="{$info|json_encode}" id="dzl_{$object.id}">
   </div>
</div>

{$zasilkovnaApiKey = $dbcfg.deliveries.Zasilkovna.apiKey|default:$cfg.Modules.deliveries.ZasilkovnaApiKey}
<script src="https://widget.packeta.com/v6/www/js/library.js"></script>
<script src="/common/static/wpj/delivery/wpj.zasilkovna.widget.v6.js"></script>
<script type="text/javascript">
   zasilkovnaWidget({$object.id}, "{$zasilkovnaApiKey}", {$object.custom_data.widget_options|default:((object) [])|json_encode nofilter});
</script>
