summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/scopes.html
blob: d565c968d997150831cd93d33d61f059e275c3f4 (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
55
56
{% extends 'base.html' %}
{% import "macros.html" as macros %}

{% block nav_scopes %}active{% endblock %}

{% block container %}
    <form id="scopesForm">
        <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
    </form>
    {{ super() }}
</form>
{% endblock %}

{% block sidebar %}
  {{ macros.scopes_tree_collapse(scopes) }}
{% endblock %}

{% block commands %}
  <div class="dropdown btn">
    <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_client %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
        {{ _('Client') }}
    </button>
    <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
      <input class="btn btn-light dropdown-item {% block nav_client_add %}{% endblock %}" type="submit" value="{{ _('Add client') }}"
             form="scopesForm" formaction="{{ url_for('action_client_add') }}" formmethod="get">
      <input class="btn btn-light dropdown-item {% block nav_client_delete %}{% endblock %}" type="submit" value="{{ _('Delete client') }}"
             form="scopesForm" formaction="{{ url_for('action_client_delete') }}" formmethod="get">
    </div>
  </div>
  <div class="dropdown btn">
    <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_room %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
        {{ _('Room') }}
    </button>
    <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
      <input class="btn btn-light dropdown-item {% block nav_room_add %}{% endblock %}" type="submit" value="{{ _('Add room') }}"
             form="scopesForm" formaction="{{ url_for('action_room_add') }}" formmethod="get">
      <input class="btn btn-light dropdown-item {% block nav_room_delete %}{% endblock %}" type="submit" value="{{ _('Delete room') }}"
             form="scopesForm" formaction="{{ url_for('action_room_delete') }}" formmethod="get">
    </div>
  </div>
  <div class="dropdown btn">
    <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_center %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
        {{ _('Center') }}
    </button>
    <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
      <input class="btn btn-light dropdown-item {% block nav_center_add %}{% endblock %}" type="submit" value="{{ _('Add center') }}"
             form="scopesForm" formaction="{{ url_for('action_center_add') }}" formmethod="get">
      <input class="btn btn-light dropdown-item {% block nav_center_delete %}{% endblock %}" type="submit" value="{{ _('Delete center') }}"
             form="scopesForm" formaction="{{ url_for('action_center_delete') }}" formmethod="get">
    </div>
  </div>
{% endblock %}

{% block content %}
  {{ macros.selected_clients() }}
{% endblock %}