blob: 953b0ef40200d343d0e58c8082dd6486d619c4af (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
 | {% extends "ishtar/blocks/base_shortcut_menu.html" %}
{% load i18n %}
{% block short_content %}
<div class="short-menu-buttons btn-group" role="group">
    <button type="button" class="btn btn-secondary"
            id='short-menu-simple' title="{% trans 'Simple menu limited to your own items. Be careful only the last 100 items are displayed.' %}">{% trans "simple" %}</button>
    <button type="button" class="btn btn-secondary active" id='short-menu-advanced' title="{% trans 'Advanced menu' %}">{% trans "advanced" %}</button>
</div>
<div id='action_current_items' class="btn-group" role="group">
    <button type="button" onclick='return activate_own_search();'
           title="{% trans 'Search within my items' %}"
           class='btn btn-secondary activate_own_search{% if SHORTCUT_SEARCH == "own" %} active{% endif %}'>
        <i class="icon fa fa-user" aria-hidden="true"></i>
    </button>
    <button type="button" onclick='return activate_all_search();'
           title="{% trans 'Search within all items' %}"
           class='btn btn-secondary activate_all_search{% if SHORTCUT_SEARCH == "all" %} active{% endif %}'>
        <i class="icon fa fa-users" aria-hidden="true"></i>
    </button>
    {% comment %}
    <p>
        <a href='' onclick='return load_shortcut_menu();' class='disabled'><i class="icon fa fa-2x fa-refresh" aria-hidden="true" title="{% trans 'Refresh menu' %}"></i></a>
    </p>
    {% endcomment %}
</div>
<p id='current_items'>
    {% for lbl, model_name, current, widget in menu %}
      <div class="form-group row">
          <label for="current_{{model_name}}"
                 class="col-sm-4 col-form-label">{{lbl}}</label>
          <div class="col-sm-6">
              {{widget|safe}}
          </div>
          {% with 'show-'|add:model_name as model_url%}
          <div class="col-sm-2">
              <a href='#' onclick='load_current_window("{% url model_url current %}", "{{model_name}}");' class='display_details'>
                  <i class="fa fa-info-circle" aria-hidden="true"></i>
              </a>
              <a href='#'
                 class='disabled pin-action text-danger'
                 onclick='$.get("{% url "unpin" model_name %}", function(){load_shortcut_menu();});' title="{% trans 'Unpin' %}">
                  <i class="fa fa-times"></i>
              </a>
          </div>
          {% endwith %}
      </div>
    </tr>
    {% endfor %}
</p>
{% endblock %}
{% block short_extrajs %}
var advanced_menu = true;
{% endblock %}
 |