{% extends theme_base %}
{% load static %}

{% block extra-top-head %}
{{script|safe}}
<script src="{% static 'dataview.js' %}"></script>
{% endblock %}

{% block extra-body-class %}
{{ block.super }}
{% if global_context.form %}
  {% if global_context.category_slug %}formdef-category-{{global_context.category_slug}}{% endif %}
  formdef-{{global_context.form.slug}}
{% endif %}
{% endblock %}

{% block placeholder-content %}
  {% block content %}
    {% if title %}
    <div id="title-section">
      <p class="category-name">{{global_context.category_name}}</p>
      <h1>{{ title }}</h1>
      {% if global_context.form_option_temps_de_reponse and steps %}
      <div id="temps-de-reponse">
        <span>{{ global_context.form_option_temps_de_reponse }}</span>
      </div>
      {% endif %}
    </div>
    {% endif %}

    {% if gauche %}
      <div id="gauche">
        {{ gauche|safe }}
      </div>
    {% endif %}

    <div id="{{bigdiv|default:'rub_service'}}">
    {% block body %}
    {{ body|safe }}
    {% endblock %}
    </div>
  {% endblock %}
{% endblock %}
