diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-11-05 12:12:30 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:43:49 +0100 |
| commit | bd38a04747e7d4ed4e28dd75ba1b43583d883e65 (patch) | |
| tree | ae43776eaa406850e8123e55318737d4a0d58113 /ishtar_common/templates/ishtar/blocks | |
| parent | ba26387f09de20d9537d075dcea5221fb3532a5a (diff) | |
| download | Ishtar-bd38a04747e7d4ed4e28dd75ba1b43583d883e65.tar.bz2 Ishtar-bd38a04747e7d4ed4e28dd75ba1b43583d883e65.zip | |
✨ ishtar account sheet
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks')
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_permission_detail.html | 13 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_nav.html | 5 |
2 files changed, 16 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_permission_detail.html b/ishtar_common/templates/ishtar/blocks/sheet_permission_detail.html new file mode 100644 index 000000000..aaf88b034 --- /dev/null +++ b/ishtar_common/templates/ishtar/blocks/sheet_permission_detail.html @@ -0,0 +1,13 @@ +{% load i18n ishtar_helpers window_tables %} + +{% if item|user_can_do:full_permission %} +<h3>{{table_label}}</h3> +<div class="alert alert-info" role="alert"> + <i class="fa fa-info-circle" aria-hidden="true"></i> + {% trans "Permission on all items" %} +</div> +{% else %} +{% if has_own_permission %} +{% dynamic_table_document table_label table_name permission item.pk '' output %} +{% endif %} +{% endif %} diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index 63aafb93a..d318fe264 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -81,7 +81,7 @@ {% endif %} </div> - {% if not item.NO_ODTPDF_EXPORT or extra_templates %} + {% if item.OLD_SHEET_EXPORT or extra_templates or item.HAS_QR_CODE or item.get_absolute_url %} <div class="btn-group btn-group-sm" role="group" aria-label="{% trans 'Export' %}"> <div class="btn btn-sm dropdown btn-secondary"> @@ -93,6 +93,7 @@ </a> <div class="dropdown-menu" aria-labelledby="dropdown-sheet-export-{{window_id}}"> + {% if item.OLD_SHEET_EXPORT %} <a class="dropdown-item" href='{% url show_url item.pk "odt" %}' title='{% trans "Export as OpenOffice.org file"%}'> <i class="fa fa-file-word-o" aria-hidden="true"></i> ODT @@ -100,7 +101,7 @@ <a class="dropdown-item" href='{% url show_url item.pk "pdf" %}' title='{% trans "Export as PDF file"%}'> <i class="fa fa-file-pdf-o" aria-hidden="true"></i> PDF - </a>{% for template_name, template_url in extra_templates %} + </a>{% endif %}{% for template_name, template_url in extra_templates %} <a class="dropdown-item" href='{{template_url}}'> <i class="fa fa-file-word-o" aria-hidden="true"></i> {{template_name}} </a>{% endfor %} |
