1 {% extends '@RapsysAir/body.html.twig' %}
 
   3         <article id="dashboard">
 
   5                         <h2><a href="{{ path('rapsys_air_location') }}">{% trans %}Locations{% endtrans %}</a></h2>
 
   6                         <p>{% trans %}Libre Air location list{% endtrans %}</p>
 
   9                         <div class="grid four location">
 
  10                                 {% for id, title in locations %}
 
  11                                         <article class="cell">
 
  12                                                 <h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
 
  13                                                 {% if forms.locations is defined and forms.locations[id] is defined and forms.locations[id] %}
 
  14                                                         {{ form_start(forms.locations[id]) }}
 
  16                                                                         {{ form_row(forms.locations[id].title) }}
 
  18                                                                         {{ form_row(forms.locations[id].short) }}
 
  20                                                                         {{ form_row(forms.locations[id].address) }}
 
  22                                                                         {{ form_row(forms.locations[id].zipcode) }}
 
  24                                                                         {{ form_row(forms.locations[id].city) }}
 
  26                                                                         {{ form_row(forms.locations[id].latitude) }}
 
  28                                                                         {{ form_row(forms.locations[id].longitude) }}
 
  30                                                                         {{ form_row(forms.locations[id].hotspot) }}
 
  32                                                                         {{ form_row(forms.locations[id].submit) }}
 
  35                                                                 {# render csrf token etc .#}
 
  36                                                                 <footer style="display:none">{{ form_rest(forms.locations[id]) }}</footer>
 
  37                                                         {{ form_end(forms.locations[id]) }}
 
  42                         {{ include('@RapsysAir/form/_toolbox.html.twig') }}