Added export button to item list

This commit is contained in:
2023-02-20 17:56:23 +00:00
parent 5ab338c373
commit ea6dfca56c
2 changed files with 7 additions and 2 deletions

View File

@@ -196,8 +196,8 @@ def button(type, url=None, pk=None, clazz="", icon=None, text="", id=None, style
text = "Edit"
elif type == 'print':
clazz += " btn-primary "
icon = "fa-print"
text = "Print"
icon = "fa-download"
text = "Export"
elif type == 'duplicate':
clazz += " btn-info "
icon = "fa-copy"

View File

@@ -1,6 +1,11 @@
{% extends 'base_training.html' %}
{% load button from filters %}
{% block content %}
<div class="col-12 text-right py-2 pr-0">
{% button 'print' 'item_list_export' %}
</div>
<div id="accordion">
{% for category in categories %}
<div class="card">