{% extends 'cms/blocks/_block.html' %}
{% load wagtailcore_tags %}

{% block block_content %}
    <div class="{% if value.align %}align-text-{{ value.align }}{% endif %}">
        <h1>{{ value.h1 }}</h1>
        {% include_block value.text with theme=value.theme %}
        <div class="btn-container">
            {% for button in value.buttons %}
                {% if value.align == 'right' %}
                    {% include_block button with space='l' %}
                {% elif value.align == 'left' %}
                    {% include_block button with space='r' %}
                {% else %}
                    {% include_block button with space='c' %}
                {% endif %}
            {% endfor %}
        </div>
    </div>
{% endblock %}
