2016-06-16 12:08:50 -04:00
|
|
|
{% if export_templates %}
|
|
|
|
<div class="btn-group">
|
|
|
|
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2016-07-29 18:04:38 -04:00
|
|
|
<span class="fa fa-upload" aria-hidden="true"></span>
|
2016-06-16 12:08:50 -04:00
|
|
|
Export {{ obj_type }} <span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="?{% if request.GET %}{{ request.GET.urlencode }}&{% endif %}export">CSV (default)</a></li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% for et in export_templates %}
|
2016-09-27 16:31:18 -04:00
|
|
|
<li><a href="?{% if request.GET %}{{ request.GET.urlencode }}&{% endif %}export={{ et.name }}"{% if et.description %} title="{{ et.description }}"{% endif %}>{{ et.name }}</a></li>
|
2016-06-16 12:08:50 -04:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<a href="?{% if request.GET %}{{ request.GET.urlencode }}&{% endif %}export" class="btn btn-success">
|
2016-07-29 18:04:38 -04:00
|
|
|
<span class="fa fa-upload" aria-hidden="true"></span>
|
2016-06-16 12:08:50 -04:00
|
|
|
Export {{ obj_type }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|