summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-22 19:10:49 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-24 16:48:04 +0200
commitdf6ea17f4b8bb1d45fe480044af80bd19742bf80 (patch)
tree64d15df919343bcd860d2cb818b353d1ef019e18 /ishtar_common/templates
parent4473e91231794ba9082795df9441d49e461b10db (diff)
downloadIshtar-df6ea17f4b8bb1d45fe480044af80bd19742bf80.tar.bz2
Ishtar-df6ea17f4b8bb1d45fe480044af80bd19742bf80.zip
WIP: ajaxify shortcut menu - 2
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/base.html10
-rw-r--r--ishtar_common/templates/ishtar/blocks/shortcut_menu.html2
2 files changed, 10 insertions, 2 deletions
diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html
index a0cf154ac..cd7b00457 100644
--- a/ishtar_common/templates/base.html
+++ b/ishtar_common/templates/base.html
@@ -32,6 +32,14 @@
{% endblock %}
<script type='text/javascript'>
var shortcut_url = '{% url "shortcut-menu" %}';
+ var get_file_url = '{% url "get-file-shortcut" %}';
+ var get_own_file_url = '{% url "get-own-file-shortcut" %}';
+ var get_operation_url = '{% url "get-operation-shortcut" %}';
+ var get_own_operation_url = '{% url "get-own-operation-shortcut" %}';
+ var get_contextrecord_url = '{% url "get-contextrecord-shortcut" %}';
+ var get_own_contextrecord_url = '{% url "get-own-contextrecord-shortcut" %}';
+ var get_find_url = '{% url "get-find-shortcut" %}';
+ var get_own_find_url = '{% url "get-own-find-shortcut" %}';
var activate_all_search_msg = "{% trans 'Searches in the shortcut menu deals with all items.' %}";
var activate_own_search_msg = "{% trans 'Searches in the shortcut menu deals with only your items.' %}";
</script>
@@ -52,7 +60,7 @@
{% csrf_token %}
<label for='language_selector'>{% trans "Lang" %}{% trans ":"%} </label>
<select name="language" id='language_selector'>
- <option value="">-------</option>
+ <option value="">----------</option>
{% for lang in LANGUAGES %}
<option value="{{ lang.0 }}"{% ifequal LANGUAGE_CODE lang.0 %} selected='selected'{% endifequal %}>{{ lang.1 }}</option>
{% endfor %}
diff --git a/ishtar_common/templates/ishtar/blocks/shortcut_menu.html b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html
index 520218083..8a0f694ae 100644
--- a/ishtar_common/templates/ishtar/blocks/shortcut_menu.html
+++ b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html
@@ -16,7 +16,7 @@
<td><label for="current_{{model_name}}">{{lbl}}</label></td>
<td>
<select class='{{main_cls}} chosen-select' id='current_{{model_name}}'>
- <option class='normal' value=''>--</option>
+ <option class='normal' value=''>----------</option>
{% for val, label, selected, cls in items %}<option{% if cls %} class='{{cls}}'{% endif %} value='{{val}}'{% if selected %} selected="selected"{% endif %}>{% ifequal cls 'basket' %}&#xf291; {% endifequal %}{% ifequal cls 'green' %}&#xf058; {% endifequal %}{% ifequal cls 'orange' %}&#xf06a; {% endifequal %}{% ifequal cls 'red' %}&#xf071; {% endifequal %}{{label}}</option>
{% endfor %}</select>
</td>{% with 'show-'|add:model_name as model_url%}