{% extends 'companyEntity/edit.html.twig' %} {% block title %}{{ 'Edit market'|trans }}{% endblock %} {% set path = (rowid)?path( "edit_market", {rowid:rowid}):path( "new_market") %} {% block target_entity %}
{{ form_label(form.code, "", {'attr': {'class': 'bmd-label-floating'}}) }} {{ form_widget(form.code, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.code) }}
{{ form_label(form.latitude, "", {'attr': {'class': 'bmd-label-floating'}}) }} {{ form_widget(form.latitude, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.latitude) }}
{{ form_label(form.longitude, "", {'attr': {'class': 'bmd-label-floating'}}) }} {{ form_widget(form.longitude, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.longitude) }}
{% set array_territories = [] %} {% for territory in market.getTerritories() %} {% set array_territories = array_territories|merge([territory.getName()]) %} {% endfor %}
{% endblock %}