{% extends 'admin/change_list.html' %}
{% load i18n admin_urls %}

{% block object-tools %}
  <ul class="object-tools">
    {% if has_add_permission %}
      <li>
        {% url cl.opts|admin_urlname:'add' as add_url %}
        {% url cl.opts|admin_urlname:'generate' as generate_url %}

        <a href="{% add_preserved_filters generate_url is_popup to_field %}" class="" style="margin-right: 10px">
          {% blocktrans with cl.opts.verbose_name as name %}Generate {{ name }}{% endblocktrans %}
        </a>
        <a href="{% add_preserved_filters add_url is_popup to_field %}" class="addlink">
          {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
        </a>
      </li>
    {% endif %}
  </ul>
{% endblock %}