summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/models_imports.py2
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_nav.html10
2 files changed, 7 insertions, 5 deletions
diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py
index 4ab37e8d5..9ed746e4f 100644
--- a/ishtar_common/models_imports.py
+++ b/ishtar_common/models_imports.py
@@ -1419,6 +1419,8 @@ class BaseImport(models.Model, OwnPerms, SheetItem):
)
state = None
+ NO_ODTPDF_EXPORT = True
+
class Meta:
abstract = True
diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html
index a8c344bae..47e99f963 100644
--- a/ishtar_common/templates/ishtar/blocks/window_nav.html
+++ b/ishtar_common/templates/ishtar/blocks/window_nav.html
@@ -28,7 +28,7 @@
{% if current_user.is_superuser and next %}
<button type="button" class="btn btn-secondary"
data-toggle="tooltip" data-placement="bottom"
- onclick='if(confirm("{% trans 'Are you sure to restore to this version? All changes made since this version will be lost.' %}")){load_url("{% url revert_url item.pk item.history_date|date:"c"%}", function(){closeAllWindows();load_window("{% url show_url item.pk None %}");});}'
+ onclick='if(confirm("{% trans "Are you sure to restore to this version? All changes made since this version will be lost." %}")){load_url("{% url revert_url item.pk item.history_date|date:"c"%}", function(){closeAllWindows();load_window("{% url show_url item.pk None %}");});}'
title="{% trans 'Restore this version' %}">
<i class="fa fa-history"></i>
</button>
@@ -46,7 +46,7 @@
<div class="btn-group btn-group-sm" role="group"
aria-label="{% trans 'Pin' %}">
<a class="btn btn-secondary pin-action" href="#"
- onclick='$.get("{% url "pin" item.SLUG item.pk %}", function(){load_shortcut_menu(); display_info("{% trans 'Item pined in your shortcut menu.' %}")});' title="{% trans 'Pin' %}">
+ onclick='$.get("{% url "pin" item.SLUG item.pk %}", function(){load_shortcut_menu(); display_info("{% trans "Item pined in your shortcut menu." %}")});' title="{% trans 'Pin' %}">
<i class="fa fa-thumb-tack"></i>
</a>
{% block post_pin %}
@@ -75,12 +75,13 @@
{% endif %}
</div>
+ {% if not item.NO_ODTPDF_EXPORT or extra_templates %}
<div class="btn-group btn-group-sm" role="group"
aria-label="{% trans 'Export' %}">
<div class="btn btn-sm dropdown btn-secondary">
<a class="dropdown-toggle" type="button"
id="dropdown-sheet-export-{{window_id}}"
- data-toggle="dropdown"aria-haspopup="true"
+ data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fa fa-file-word-o"></i> {% trans "Export" %}
</a>
@@ -105,9 +106,8 @@
</a>{% endif %}
</div>
</div>
-
-
</div>
+ {% endif %}
</div>
</div>
{% if next %}