summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-30 12:26:32 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-30 12:26:32 +0100
commit400e66d6b554d6b87e025f84d15742df15ecd644 (patch)
treeecbbc58eba6627abf98a91fe8f459c392bfadcd6 /ishtar_common/templates/ishtar
parentdc1d0da3544d2ec9adb4c792c357fe06eaf752a7 (diff)
downloadIshtar-400e66d6b554d6b87e025f84d15742df15ecd644.tar.bz2
Ishtar-400e66d6b554d6b87e025f84d15742df15ecd644.zip
Sheet document: better UI for files
Diffstat (limited to 'ishtar_common/templates/ishtar')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex_file.html10
-rw-r--r--ishtar_common/templates/ishtar/sheet_document.html4
2 files changed, 12 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html b/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html
new file mode 100644
index 000000000..0a79176d6
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html
@@ -0,0 +1,10 @@
+{% load i18n %}{% if link %}
+<dl class="col-12 col-md-6 col-lg-3 flex-wrap">
+ <dt>{% trans caption %}</dt>
+ <dd>
+ <a href="{{link|safe}}" class="btn btn-secondary" target="_blank">
+ {% if link_name %}{{link_name}}{% else %}{{link}}{% endif %}
+ </a>
+ </dd>
+</dl>
+{% endif%}
diff --git a/ishtar_common/templates/ishtar/sheet_document.html b/ishtar_common/templates/ishtar/sheet_document.html
index 5ce51003c..388c2ca26 100644
--- a/ishtar_common/templates/ishtar/sheet_document.html
+++ b/ishtar_common/templates/ishtar/sheet_document.html
@@ -23,9 +23,9 @@
{% with pdf_attached=item.pdf_attached %}
{% if pdf_attached %}
<p class="text-center col-12 p-2">
- <a href="{{pdf_attached}}" target="_blank">
+ <a href="{{pdf_attached}}" class="btn btn-secondary" target="_blank">
+ <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
{% trans "View PDF" %}
- <i class="fa fa-external-link" aria-hidden="true"></i>
</a>
</p>
{% endif %}