diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-29 23:42:15 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-29 23:42:15 +0200 |
commit | d1e8a2b107ce04e3312d6f5d888d37e0411c5a7a (patch) | |
tree | bf26865378045eea8224abc7f6bf4ac9299f51ca /ishtar_common/templates | |
parent | ee41ce23374b6ca8d220ef657840576bcfea3601 (diff) | |
download | Ishtar-d1e8a2b107ce04e3312d6f5d888d37e0411c5a7a.tar.bz2 Ishtar-d1e8a2b107ce04e3312d6f5d888d37e0411c5a7a.zip |
🩹 import CSV overview: do not display ignore button when not relevent
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/view_import_csv.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/view_import_csv.html b/ishtar_common/templates/ishtar/blocks/view_import_csv.html index 3c522f6b1..ff49dd13d 100644 --- a/ishtar_common/templates/ishtar/blocks/view_import_csv.html +++ b/ishtar_common/templates/ishtar/blocks/view_import_csv.html @@ -11,10 +11,12 @@ <span aria-hidden="true">×</span> </button> </div> + {% if has_line_errors %} <div class="text-center pt-2"> <button type="button" class="btn btn-success" id="check-all-ignored"><i class="fa fa-check-square" aria-hidden="true"></i> {% trans "check all" %}</button> <button type="button" class="btn btn-success" id="uncheck-all-ignored"><i class="fa fa-square-o" aria-hidden="true"></i> {% trans "uncheck all" %}</button> </div> + {% endif %} <div class="table-scroll"> <table class="table table-striped table-bordered" data-import="{{import_id}}"> <thead> @@ -59,4 +61,4 @@ $("#uncheck-all-ignored").click(function() { $(".check-ignored.ignored").click(); } }); -{% endlocalize %}</script>
\ No newline at end of file +{% endlocalize %}</script> |