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

{% block title %}{{ page_title }}{% endblock %}

{% block extra-top-head %}
  {{script|safe}}
{% 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 %}
    <div id="form-page" class="{% if form_side %}with-sidebar{% endif %}">
      {% if title %}
        <div id="title-section">
          <h1>{{ title }}</h1>
        </div>
      {% endif %}

      {% if form_side %}
        <div class="form-content--sidebox" id="gauche">
          {{ form_side|safe }}
        </div>
      {% endif %}

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