{% load i18n %}
<div class="btn-group">
    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        {% trans 'Actions' %} <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
        <li>
            <a href="{{ training.get_edit_url }}">
                <i class="fa fa-pencil"></i>
                {% trans 'Edit' %}
            </a>
        </li>
        {% if training.is_duplicable and training.is_draftable %}
            <li>
                <a href="{{ training.get_duplicate_url }}" class="dialog-box">
                    <i class="fa fa-files-o"></i>
                    {% trans 'Duplicate to trainers' %}
                </a>
            </li>
        {% endif %}
    </ul>
</div>
