1 {% extends '@RapsysAir/body.html.twig' %}
 
   3         <article id="dashboard" class="location">
 
   5                         <h2><a href="{{ canonical }}">{{ title }}</a></h2>
 
   6                         <p>{{ description }}</p>
 
   9                         {% if locations is defined and locations %}
 
  10                                 <div class="grid{% if locations|length > 2%} three{% elseif locations|length > 1%} two{% endif %}">
 
  11                                         {% if multimap is defined and multimap %}
 
  12                                                 <div class="multimap">
 
  13                                                         <a href="{{ multimap.link }}" title="{{ multimap.caption }}">
 
  15                                                                         <img src="{{ multimap.src }}" alt="{{ multimap.caption }}"{# width="{{ multimap.width }}" height="{{ multimap.height }}" #} />
 
  16                                                                         <figcaption>{{ multimap.caption }}</figcaption>
 
  21                                         {% for id, location in locations %}
 
  22                                                 <article class="cell">
 
  23                                                         <h3>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}" title="{{ location.title }}">{{ location.title }}</a></h3>
 
  24                                                         {% if forms.locations is defined and forms.locations[id] is defined and forms.locations[id] %}
 
  25                                                                 {{ form_start(forms.locations[id]) }}
 
  27                                                                                 {{ form_row(forms.locations[id].title) }}
 
  29                                                                                 {{ form_row(forms.locations[id].description) }}
 
  31                                                                                 {{ form_row(forms.locations[id].address) }}
 
  33                                                                                 {{ form_row(forms.locations[id].zipcode) }}
 
  35                                                                                 {{ form_row(forms.locations[id].city) }}
 
  37                                                                                 {{ form_row(forms.locations[id].latitude) }}
 
  39                                                                                 {{ form_row(forms.locations[id].longitude) }}
 
  41                                                                                 {{ form_row(forms.locations[id].indoor) }}
 
  43                                                                                 {{ form_row(forms.locations[id].hotspot) }}
 
  45                                                                                 {{ form_row(forms.locations[id].submit) }}
 
  48                                                                         {# render csrf token etc .#}
 
  49                                                                         <footer style="display:none">{{ form_rest(forms.locations[id]) }}</footer>
 
  50                                                                 {{ form_end(forms.locations[id]) }}
 
  56                         {{ include('@RapsysAir/form/_toolbox.html.twig') }}