summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks/window_nav.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/window_nav.html')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_nav.html29
1 files changed, 20 insertions, 9 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html
index 764797ce2..6cd4bff40 100644
--- a/ishtar_common/templates/ishtar/blocks/window_nav.html
+++ b/ishtar_common/templates/ishtar/blocks/window_nav.html
@@ -31,26 +31,32 @@
{% else %}
<div class='offset-md-8 col-md-4 text-right'>
{% endif %}
- <div class="btn-group btn-group-sm" role="group" aria-label="{% trans 'Actions' %}">
- {% if pin_action and item.SLUG %}
- <a class="btn btn-secondary" href="#" class='pin-action'
+ {% if pin_action and item.SLUG %}
+ <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' %}">
- <i class="fa fa-thumb-tack"></i>
+ <i class="fa fa-thumb-tack"></i>
</a>
- {% endif %}
+ </div>
+ {% endif %}
+ <div class="btn-group btn-group-sm" role="group" aria-label="{% trans 'Actions' %}">
{% block extra_actions %}{% endblock %}
{% if modify_url %}
- <a class="btn btn-secondary" href='{% url modify_url item.pk %}'
+ <a class="btn btn-success" href='{% url modify_url item.pk %}'
title="{% trans 'Modify' %}">
<i class="fa fa-pencil"></i>
</a>
{% endif %}
- {% for url, base_text, icon, extra_text, css_class in extra_actions %}
- <a class="btn btn-secondary{% if css_class %} {{css_class}}{% endif %}"
- href='{{url}}' title="{{base_text}}">
+ {% for url, base_text, icon, extra_text, css_class, is_qa in extra_actions %}
+ <a class="{% if is_qa %}btn-qa {% endif %}btn btn-success{% if css_class %} {{css_class}}{% endif %}"
+ {% if is_qa %}href="#" data-target="{{url}}"{% else %}href='{{url}}'{% endif %} title="{{base_text}}">
<i class="{{icon}}"></i> {{extra_text}}
</a>
{% endfor %}
+ </div>
+ <div class="btn-group btn-group-sm" role="group"
+ aria-label="{% trans 'Export' %}">
<a class="btn btn-secondary" href='{% url show_url item.pk "odt" %}'
title='{% trans "Export as OpenOffice.org file"%}'>
ODT <i class="fa fa-file-word-o" aria-hidden="true"></i>
@@ -66,3 +72,8 @@
{% trans "Relation between items are not historized." %}
</div>
{% endif %}
+<script type="text/javascript">
+$(document).ready(function(){
+ register_qa_on_sheet();
+});
+</script> \ No newline at end of file