{% load i18n %}

<div class="modal-header primary">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">{% trans 'Documents' %}</h4>
</div>
<div class="modal-body">

    <div class="panel panel-default">
        <div class="panel-body">
            <ul class="list-group">
                {% for obj in object_list %}
                    <li class="list-group-item">
                        <b>{{ obj.title }}</b>
                        <a href="{% url 'docsapp:doc_render' obj.pk account_name %}" class="btn btn-default">
                            <span class="glyphicon glyphicon-print"></span> {% trans 'Render document' %}
                        </a>
                    </li>
                {% empty %}
                    {% trans 'Documents not found' %}
                {% endfor %}
            </ul>
        </div>
    </div>

</div>
