{% load tagging %}
{% get_content_type_for object as ct %}
<div class="generic-tagging-container" data-content-type="{{ ct.pk }}" data-object-id="{{ object.id }}">
    <ul class="tag-list" data-tag-list-api="{% url 'taggeditem-list' %}">
        <li class="tag">
            <a href="" class="tag-link">Tag name</a>
            <nav class="tool">
                <a href="#" class="util delete-button"></a>
                <a href="#" class="util lock-button"></a>
                <a href="#" class="util unlock-button"></a>
            </nav>
        </li>
    </ul>
    <div class="generic-tagging-form">
        <a class="add-tag-button" href="#"></a>
        <form class="add-tag-form" action="{% url 'taggeditem-list' %}">
            <input type="text" name="tag" class="label-input">
            <input type="hidden" name="content_type" value="{{ ct.pk }}">
            <input type="hidden" name="object_id" value="{{ object.pk }}">
        </form>
    </div>
</div>
