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

{% block block_content %}
    <div class="btn-container {% if value.align %}align-text-{{ value.align }}{% endif %}">
        {% for button in value.buttons %}
            {% if value.align == 'center' %}
                {% include_block button with space='c' %}
            {% elif 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='r' %}
            {% endif %}
        {% endfor %}
    </div>
{% endblock %}
