diff options
Diffstat (limited to 'ishtar_common/templates/ishtar')
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_field_flex_file.html | 10 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/sheet_document.html | 4 |
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 %} |
