summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/scopes.html
blob: 8ab30c03e25c4033d008801efbb07e38039eb57b (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
{% 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 %}
  <input class="btn btn-light" type="submit" value="{{ _('Add client') }}"
         form="scopesForm" formaction="{{ url_for('action_client_add') }}" formmethod="get">
  <input class="btn btn-light" type="submit" value="{{ _('Add room') }}"
         form="scopesForm" formaction="{{ url_for('action_room_add') }}" formmethod="get">
  <input class="btn btn-light" type="submit" value="{{ _('Add center') }}"
         form="scopesForm" formaction="{{ url_for('action_center_add') }}" formmethod="get">
  <input class="btn btn-light" type="submit" value="{{ _('Delete client') }}"
         form="scopesForm" formaction="{{ url_for('action_client_delete') }}" formmethod="post">
  <input class="btn btn-light" type="submit" value="{{ _('Delete room') }}"
         form="scopesForm" formaction="{{ url_for('action_room_delete') }}" formmethod="get">
  <input class="btn btn-light" type="submit" value="{{ _('Delete center') }}"
         form="scopesForm" formaction="{{ url_for('action_center_delete') }}" formmethod="get">
{% endblock %}