{% if non_grouped_actions or grouped_actions %}
    {{ actions.iommi_open_tag }}
        {% for category, category_id, actions_in_group in grouped_actions %}
            <div class="btn-group">
                <button id="id_dropdown_{{ category_id }}" role="button" data-toggle="dropdown" data-target="#" href="/page.html" class="btn btn-primary dropdown-toggle" type="button">
                    {{ category }}
                </button>

                <div class="dropdown-menu" role="menu" aria-labelledby="id_dropdown_{{ category }}">
                    {% for action in actions_in_group %}
                        {{ action }}
                    {% endfor %}
                </div>
            </div>
        {% endfor %}

        {% for action in non_grouped_actions %}
            {{ action }}
        {% endfor %}
    {{ actions.iommi_close_tag }}
{% endif %}
