nautobot 2.4.17__py3-none-any.whl → 2.4.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nautobot might be problematic. Click here for more details.

Files changed (92) hide show
  1. nautobot/apps/views.py +2 -0
  2. nautobot/circuits/templates/circuits/circuittermination_retrieve.html +1 -8
  3. nautobot/circuits/templates/circuits/inc/circuit_termination_speed_fragment.html +9 -0
  4. nautobot/circuits/tests/integration/test_circuit.py +2 -2
  5. nautobot/circuits/views.py +32 -15
  6. nautobot/core/filters.py +2 -2
  7. nautobot/core/settings.py +1 -0
  8. nautobot/core/settings.yaml +9 -0
  9. nautobot/core/tables.py +21 -23
  10. nautobot/core/templates/components/breadcrumbs.html +19 -0
  11. nautobot/core/templates/generic/object_changelog.html +0 -2
  12. nautobot/core/templates/generic/object_list.html +15 -12
  13. nautobot/core/templates/generic/object_notes.html +0 -2
  14. nautobot/core/templates/generic/object_retrieve.html +16 -9
  15. nautobot/core/templatetags/helpers.py +24 -0
  16. nautobot/core/templatetags/ui_framework.py +40 -5
  17. nautobot/core/testing/filters.py +37 -21
  18. nautobot/core/testing/views.py +25 -0
  19. nautobot/core/tests/test_tables.py +43 -6
  20. nautobot/core/tests/test_templatetags_ui_framework.py +146 -0
  21. nautobot/core/tests/test_titles.py +2 -2
  22. nautobot/core/tests/test_ui.py +14 -1
  23. nautobot/core/tests/test_views.py +45 -0
  24. nautobot/core/ui/breadcrumbs.py +13 -8
  25. nautobot/core/ui/object_detail.py +43 -5
  26. nautobot/core/ui/titles.py +9 -5
  27. nautobot/core/views/__init__.py +24 -3
  28. nautobot/core/views/generic.py +42 -17
  29. nautobot/core/views/mixins.py +146 -12
  30. nautobot/core/views/utils.py +117 -0
  31. nautobot/dcim/models/devices.py +4 -0
  32. nautobot/dcim/tables/__init__.py +2 -0
  33. nautobot/dcim/tables/devices.py +24 -0
  34. nautobot/dcim/tables/power.py +2 -2
  35. nautobot/dcim/templates/dcim/device/base.html +1 -11
  36. nautobot/dcim/templates/dcim/device_component.html +0 -19
  37. nautobot/dcim/templates/dcim/modulebay_retrieve.html +0 -16
  38. nautobot/dcim/templates/dcim/virtualchassis_retrieve.html +1 -50
  39. nautobot/dcim/tests/test_views.py +41 -0
  40. nautobot/dcim/views.py +160 -39
  41. nautobot/extras/filters/mixins.py +1 -1
  42. nautobot/extras/forms/forms.py +15 -0
  43. nautobot/extras/models/groups.py +10 -1
  44. nautobot/extras/models/jobs.py +2 -2
  45. nautobot/extras/plugins/views.py +18 -5
  46. nautobot/extras/tables.py +4 -2
  47. nautobot/extras/templates/extras/customfield_retrieve.html +1 -128
  48. nautobot/extras/templates/extras/dynamicgroup.html +2 -99
  49. nautobot/extras/templates/extras/dynamicgroup_edit.html +2 -199
  50. nautobot/extras/templates/extras/dynamicgroup_retrieve.html +99 -0
  51. nautobot/extras/templates/extras/dynamicgroup_update.html +199 -0
  52. nautobot/extras/templates/extras/gitrepository.html +2 -82
  53. nautobot/extras/templates/extras/gitrepository_object_edit.html +2 -13
  54. nautobot/extras/templates/extras/gitrepository_retrieve.html +82 -0
  55. nautobot/extras/templates/extras/gitrepository_update.html +13 -0
  56. nautobot/extras/templates/extras/note_retrieve.html +0 -52
  57. nautobot/extras/templates/extras/plugin_detail.html +3 -7
  58. nautobot/extras/templates/extras/plugins_list.html +0 -2
  59. nautobot/extras/tests/test_dynamicgroups.py +73 -18
  60. nautobot/extras/tests/test_views.py +5 -0
  61. nautobot/extras/urls.py +2 -94
  62. nautobot/extras/views.py +424 -430
  63. nautobot/ipam/querysets.py +3 -3
  64. nautobot/ipam/signals.py +6 -1
  65. nautobot/ipam/templates/ipam/prefix.html +0 -8
  66. nautobot/ipam/tests/test_api.py +5 -0
  67. nautobot/ipam/tests/test_models.py +387 -0
  68. nautobot/ipam/tests/test_querysets.py +46 -0
  69. nautobot/ipam/utils/migrations.py +1 -1
  70. nautobot/ipam/views.py +17 -8
  71. nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +72 -0
  72. nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +45 -9
  73. nautobot/project-static/docs/code-reference/nautobot/apps/views.html +393 -15
  74. nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +1 -1
  75. nautobot/project-static/docs/development/core/getting-started.html +0 -15
  76. nautobot/project-static/docs/development/core/ui-component-framework.html +6 -11
  77. nautobot/project-static/docs/objects.inv +0 -0
  78. nautobot/project-static/docs/release-notes/version-2.4.html +222 -0
  79. nautobot/project-static/docs/search/search_index.json +1 -1
  80. nautobot/project-static/docs/sitemap.xml +300 -300
  81. nautobot/project-static/docs/sitemap.xml.gz +0 -0
  82. nautobot/project-static/docs/user-guide/administration/configuration/settings.html +27 -0
  83. nautobot/project-static/img/nautobot_icon.svg +32 -34
  84. nautobot/project-static/js/table_sorting_indicator.js +0 -2
  85. {nautobot-2.4.17.dist-info → nautobot-2.4.18.dist-info}/METADATA +4 -4
  86. {nautobot-2.4.17.dist-info → nautobot-2.4.18.dist-info}/RECORD +90 -85
  87. nautobot/core/templates/inc/breadcrumbs.html +0 -14
  88. nautobot/project-static/docs/requirements.txt +0 -14
  89. {nautobot-2.4.17.dist-info → nautobot-2.4.18.dist-info}/LICENSE.txt +0 -0
  90. {nautobot-2.4.17.dist-info → nautobot-2.4.18.dist-info}/NOTICE +0 -0
  91. {nautobot-2.4.17.dist-info → nautobot-2.4.18.dist-info}/WHEEL +0 -0
  92. {nautobot-2.4.17.dist-info → nautobot-2.4.18.dist-info}/entry_points.txt +0 -0
@@ -1,129 +1,2 @@
1
1
  {% extends 'generic/object_retrieve.html' %}
2
- {% load buttons %}
3
- {% load helpers %}
4
-
5
- {% block content_left_page %}
6
- <div class="panel panel-default">
7
- <div class="panel-heading">
8
- <strong>Custom Field</strong>
9
- </div>
10
- <table class="table table-hover panel-body attr-table">
11
- <tr>
12
- <td>Label</td>
13
- <td>{{ object.label }}</td>
14
- </tr>
15
- <tr>
16
- <td>Key</td>
17
- <td>{{ object.key }}</td>
18
- </tr>
19
- <tr>
20
- <td>Type</td>
21
- <td>{{ object.type | capfirst }}</td>
22
- </tr>
23
- <tr>
24
- <td>Weight</td>
25
- <td>{{ object.weight }}</td>
26
- </tr>
27
- <tr>
28
- <td>Grouping</td>
29
- <td>{{ object.grouping | placeholder }}</td>
30
- </tr>
31
- <tr>
32
- <td>Description</td>
33
- <td>{{ object.description | render_markdown | placeholder }}</td>
34
- </tr>
35
- <tr>
36
- <td>Required</td>
37
- <td>{{ object.required | render_boolean }}</td>
38
- </tr>
39
- <tr>
40
- <td>Default</td>
41
- <td>
42
- {% if object.type == "markdown" %}
43
- {{ object.default | render_markdown | placeholder }}
44
- {% elif object.type == "json" and object.default is not None %}
45
- <pre>{{ object.default | render_json }}</pre>
46
- {% else %}
47
- {{ object.default | placeholder }}
48
- {% endif %}
49
- </td>
50
- </tr>
51
- <tr>
52
- <td>Filter Logic</td>
53
- <td>{{ object.filter_logic | capfirst }}</td>
54
- </tr>
55
- <tr>
56
- <td>Move to Advanced Tab</td>
57
- <td>{{ object.advanced_ui | render_boolean }}</td>
58
- </tr>
59
- </table>
60
- </div>
61
- {% if object.custom_field_choices.exists %}
62
- <div class="panel panel-default">
63
- <div class="panel-heading">
64
- <strong>Custom Field Choices</strong>
65
- </div>
66
- <table class="table table-hover panel-body attr-table">
67
- <thead>
68
- <tr>
69
- <th>Value</th>
70
- <th>Weight</th>
71
- </tr>
72
- </thead>
73
- <tbody>
74
- {% for choice in object.custom_field_choices.all %}
75
- <tr>
76
- <td>{{ choice.value }}</td>
77
- <td>{{ choice.weight }}</td>
78
- </tr>
79
- {% endfor %}
80
- </tbody>
81
- </table>
82
- </div>
83
- {% endif %}
84
- {% endblock content_left_page %}
85
-
86
- {% block content_right_page %}
87
- <div class="panel panel-default">
88
- <div class="panel-heading">
89
- <strong>Assignment</strong>
90
- </div>
91
- <table class="table table-hover panel-body attr-table">
92
- <tr>
93
- <td>Content Types</td>
94
- <td>
95
- <ul>
96
- {% for ct in object.content_types.all %}
97
- <li>{{ ct }}</li>
98
- {% endfor %}
99
- </ul>
100
- </td>
101
- </tr>
102
- </table>
103
- </div>
104
- <div class="panel panel-default">
105
- <div class="panel-heading">
106
- <strong>Validation Rules</strong>
107
- </div>
108
- <table class="table table-hover panel-body attr-table">
109
- <tr>
110
- <td>Minimum Value/Length</td>
111
- <td>{{ object.validation_minimum | placeholder }}</td>
112
- </tr>
113
- <tr>
114
- <td>Maximum Value/Length</td>
115
- <td>{{ object.validation_maximum | placeholder }}</td>
116
- </tr>
117
- <tr>
118
- <td>Validation Regex</td>
119
- <td>
120
- {% if object.validation_regex %}
121
- <code>{{ object.validation_regex | placeholder }}</code>
122
- {% else %}
123
- {{ object.validation_regex | placeholder }}
124
- {% endif %}
125
- </td>
126
- </tr>
127
- </table>
128
- </div>
129
- {% endblock content_right_page %}
2
+ {% comment %}3.0 TODO: remove this template, which only exists for backward compatibility with 2.4 and earlier{% endcomment %}
@@ -1,99 +1,2 @@
1
- {% extends 'generic/object_retrieve.html' %}
2
- {% load helpers %}
3
-
4
- {% block extra_nav_tabs %}
5
- <li role="presentation"{% if request.GET.tab == 'members' %} class="active"{% endif %}>
6
- <a href="{{ object.get_absolute_url }}#members" onclick="switch_tab(this.href, reload=false)" aria-controls="members" role="tab" data-toggle="tab">
7
- Members {% badge object.count %}
8
- </a>
9
- </li>
10
- {% endblock extra_nav_tabs %}
11
-
12
- {% block extra_tab_content %}
13
- <div id="members" role="tabpanel" class="tab-pane {% if not active_tab and not request.GET.tab or request.GET.tab == "members" %}active{% else %}fade{% endif %}">
14
- {% if members_list_url %}
15
- <div class="row">
16
- <div class="col-md-12">
17
- <div class="alert alert-success" role="alert">
18
- You can bulk-add and bulk-remove members of this group from the <a href="{{ members_list_url }}">{{ members_verbose_name_plural|bettertitle }} list view</a>.
19
- </div>
20
- </div>
21
- </div>
22
- {% endif %}
23
- <div class="row">
24
- <div class="col-md-12">
25
- {% include 'utilities/obj_table.html' with table=members_table table_template='panel_table.html' heading='Dynamic Group members' %}
26
- </div>
27
- </div>
28
- </div>
29
- {% endblock extra_tab_content %}
30
-
31
- {% block content_left_page %}
32
- <div class="panel panel-default">
33
- <div class="panel-heading">
34
- <strong>Dynamic Group</strong>
35
- </div>
36
- <table class="table table-hover panel-body attr-table">
37
- <tr>
38
- <td>Name</td>
39
- <td><span>{{ object.name }}</span></td>
40
- </tr>
41
- <tr>
42
- <td>Description</td>
43
- <td><span>{{ object.description }}</span></td>
44
- </tr>
45
- <tr>
46
- <td>Content Type</td>
47
- <td><span>{{ object.content_type }}</span></td>
48
- </tr>
49
- <tr>
50
- <td>Group Type</td>
51
- <td><span>{{ object.get_group_type_display }}</span></td>
52
- </tr>
53
- {% include 'inc/tenant_table_row.html' %}
54
- </table>
55
- </div>
56
- {% endblock content_left_page %}
57
-
58
- {% block content_right_page %}
59
- {% if object.group_type == "dynamic-filter" %}
60
- <div class="panel panel-default">
61
- <div class="panel-heading">
62
- <strong>Filter</strong>
63
- </div>
64
- <div class="panel-body">
65
- <pre>{{ object.filter | render_json }}</pre>
66
- </div>
67
- </div>
68
- {% endif %}
69
- {% endblock content_right_page %}
70
-
71
- {% block content_full_width_page %}
72
- {% if object.group_type != "static" %}
73
- <div class="panel panel-default">
74
- <div class="panel-heading">
75
- <strong>Filter Query Logic</strong>
76
- </div>
77
- <div class="panel-body">
78
- {% if object.group_type == "dynamic-set" %}
79
- <span class="help-block">
80
- This is a raw representation of the underlying filter that is derived
81
- by aggregating the filters from all descendant groups.
82
- </span>
83
- {% endif %}
84
- <pre>{{ raw_query }}</pre>
85
- </div>
86
- </div>
87
- <div class="panel panel-default">
88
- <div class="panel-heading">
89
- <strong>Related Groups</strong>
90
- </div>
91
- <div class="panel-body">
92
- {% if object.group_type == "dynamic-set" %}
93
- {% include 'utilities/obj_table.html' with table=descendants_table table_template='panel_table.html' heading='Descendants' disable_pagination=True %}
94
- {% endif %}
95
- {% include 'utilities/obj_table.html' with table=ancestors_table table_template='panel_table.html' heading='Ancestors' disable_pagination=True %}
96
- </div>
97
- </div>
98
- {% endif %}
99
- {% endblock content_full_width_page %}
1
+ {% extends 'extras/dynamicgroup_retrieve.html' %}
2
+ {% comment %}3.0 TODO: remove this template, which only exists for backward compatibility with 2.4 and earlier{% endcomment %}
@@ -1,199 +1,2 @@
1
- {% extends 'generic/object_create.html' %}
2
- {% load static %}
3
- {% load form_helpers %}
4
-
5
- {% block form_errors %}
6
- {% if form.non_field_errors %}
7
- <div class="panel panel-danger">
8
- <div class="panel-heading"><strong>Errors</strong></div>
9
- <div class="panel-body">
10
- {{ form.non_field_errors }}
11
- {% for child in children.forms %}
12
- {% if child.errors %}
13
- {% for error in child.errors.values %}{{ error }}{% endfor %}
14
- {% endif %}
15
- {% endfor %}
16
- </div>
17
- </div>
18
- {% endif %}
19
- {% endblock %}
20
-
21
- {% block form %}
22
- <div class="panel panel-default">
23
- <div class="panel-heading"><strong>Dynamic Group</strong></div>
24
- <div class="panel-body">
25
- {% render_field form.name %}
26
- {% render_field form.description %}
27
- {% render_field form.content_type %}
28
- {% render_field form.group_type %}
29
- {% render_field form.tenant %}
30
- </div>
31
- </div>
32
- <div class="panel panel-default">
33
- <div class="panel-heading"><strong>Filter Options</strong></div>
34
- <div class="panel-body">
35
- <ul class="nav nav-tabs" role="tablist">
36
- <li role="presentation" class="active">
37
- <a href="#filter-form" role="tab" data-toggle="tab">Filter Fields</a>
38
- </li>
39
- <li role="presentation">
40
- <a href="#children-form" role="tab" data-toggle="tab">Child Groups</a>
41
- </li>
42
- </ul>
43
- <div class="tab-content">
44
- <div class="tab-pane active" id="filter-form">
45
- {% if filter_form %}
46
- <span class="help-block">
47
- Select the filtering criteria to determine membership of objects matching
48
- the Content Type for this Dynamic Group. Fields that are not a dropdown are
49
- expected to have string inputs and do not support multiple values.
50
- </span>
51
-
52
- <div class="panel panel-default">
53
- <div class="panel-heading"><strong>Object Fields</strong></div>
54
- <div class="panel-body">
55
- {% render_form filter_form excluded_fields="[]" %}
56
- </div>
57
- </div>
58
-
59
- {% if filter_form.custom_fields %}
60
- <div class="panel panel-default">
61
- <div class="panel-heading"><strong>Custom Fields</strong></div>
62
- <div class="panel-body">
63
- {% render_custom_fields filter_form %}
64
- </div>
65
- </div>
66
- {% endif %}
67
-
68
- {% if filter_form.relationships %}
69
- <div class="panel panel-default">
70
- <div class="panel-heading"><strong>Relationships</strong></div>
71
- <div class="panel-body">
72
- {% render_relationships filter_form %}
73
- </div>
74
- </div>
75
- {% endif %}
76
-
77
- {% else %}
78
- <span class="help-block">
79
- Filtering criteria will be available after initially saving this group and
80
- returning to this page.
81
- </span>
82
- {% endif %}
83
- </div>
84
- <div class="tab-pane" id="children-form">
85
- {% if children.errors %}
86
- <div class="text-danger">
87
- Please correct the error(s) below:
88
-
89
- {% for child in children.forms %}
90
- {% if child.errors %}
91
- {% for error in child.errors.values %}{{ error }}{% endfor %}
92
- {% endif %}
93
- {% endfor %}
94
- </div>
95
- {% endif %}
96
- {{ children.non_field_errors }}
97
- <table class="table" id="children">
98
- {{ children.management_form }}
99
- {% for child_form in children.forms %}
100
- {% if forloop.first %}
101
- <thead>
102
- <tr>
103
- <th>Weight</th>
104
- {% for field in child_form.visible_fields %}
105
- <th>{{ field.label|capfirst }}</th>
106
- {% endfor %}
107
- </tr>
108
- </thead>
109
- {% endif %}
110
- <tr class="formset_row-{{ children.prefix }}">
111
- <td><i class="mdi mdi-drag-horizontal drag-handler"></i></td>
112
- {% for field in child_form.visible_fields %}
113
- <td>
114
- {% if forloop.first %}
115
- {% for hidden in child_form.hidden_fields %}
116
- {{ hidden }}
117
- {% endfor %}
118
- {% endif %}
119
- {{ field }}
120
- {% if field.errors %}
121
- <ul>
122
- {% for error in field.errors %}
123
- {# Embed an HTML comment indicating the error for extraction by tests #}
124
- <!-- FORM-ERROR {{ field.name }}: {{ error }} -->
125
- <li class="text-danger">{{ error }}</li>
126
- {% endfor %}
127
- </ul>
128
- {% endif %}
129
- </td>
130
- {% endfor %}
131
- </tr>
132
- {% endfor %}
133
- </table>
134
- </div>
135
- </div>
136
- </div>
137
- </div>
138
- {% include 'inc/extras_features_edit_form_fields.html' %}
139
- {% endblock form %}
140
-
141
- {% block javascript %}
142
- {{ block.super }}
143
- <script src="{% static 'jquery/jquery.formset.js' %}"></script>
144
- <script type="text/javascript">
145
- $('.formset_row-{{ children.prefix }}').formset({
146
- addText: '<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add another Group',
147
- addCssClass: 'btn btn-primary add-row',
148
- deleteText: '<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span>',
149
- deleteCssClass: 'btn btn-danger delete-row',
150
- prefix: '{{ children.prefix }}',
151
- formCssClass: 'dynamic-formset-{{ children.prefix }}',
152
- added: jsify_form
153
- });
154
-
155
- // Function that takes a Dynamic Group children form and recomputes the weights.
156
- function update_weights(children_form){
157
- let w = 10;
158
- $(children_form).find('.formset_row-{{ children.prefix }}').each((i, el) => {
159
-
160
- // A child is considered "weight-able" if any of the settable values contains a value
161
- // If a user is in the middle of setting a group we want to consider it for weight
162
- // We also want to remove the weight if it's empty to not throw a field value error on a hidden field
163
- //
164
- // el = child row
165
- // sel = a select element either specifying the child group or operator
166
- // we don't need to worry about which one we are looking at, just if it has a value
167
- let contains_value = $(el).find("select[name$='-group'], select[name$='-operator']") // Get any select element in this row ending in -group or -operator
168
- .toArray() // Convert to Array to access .some() method
169
- .some((x) => { return ($(x).val().length > 0) === true }) // Evaluate if any element in this row has a value length over 0
170
- // .some(fn(x)) will return a true/false if any item in the array return true when passed into the evaluator function
171
-
172
-
173
-
174
- let weight_input = $(el).find("*[name$='-weight']")
175
- weight_input.val("") // Reset the value to start clean always
176
- if(contains_value) {
177
- weight_input.val(w); // Set a weight
178
- w += 10; // Following current convention by allowing space between children to aid in API interface.
179
- // If someone wants to add a child later via the API they can insert a child between children without
180
- // having to re-weight all children following first.
181
- }
182
- })
183
- }
184
-
185
- // Make the children form formset rows draggable and hook to re-weight on drag complete.
186
- $('#children-form').sortable({
187
- handle: '.drag-handler',
188
- items: '.formset_row-{{ children.prefix }}',
189
- update: ( e, ui ) => {
190
- update_weights(e.target)
191
- }
192
- });
193
-
194
- // Instead of re-weight on every input change, just do it before we submit the form.
195
- $('form.form').submit((e) => {
196
- $(e.target).find('#children-form').each((i, cf) => { update_weights(cf) });
197
- });
198
- </script>
199
- {% endblock javascript %}
1
+ {% extends 'extras/dynamicgroup_update.html' %}
2
+ {% comment %}3.0 TODO: remove this template, which only exists for backward compatibility with 2.4 and earlier{% endcomment %}
@@ -0,0 +1,99 @@
1
+ {% extends 'generic/object_retrieve.html' %}
2
+ {% load helpers %}
3
+
4
+ {% block extra_nav_tabs %}
5
+ <li role="presentation"{% if request.GET.tab == 'members' %} class="active"{% endif %}>
6
+ <a href="{{ object.get_absolute_url }}#members" onclick="switch_tab(this.href, reload=false)" aria-controls="members" role="tab" data-toggle="tab">
7
+ Members {% badge object.count %}
8
+ </a>
9
+ </li>
10
+ {% endblock extra_nav_tabs %}
11
+
12
+ {% block extra_tab_content %}
13
+ <div id="members" role="tabpanel" class="tab-pane {% if not active_tab and not request.GET.tab or request.GET.tab == "members" %}active{% else %}fade{% endif %}">
14
+ {% if members_list_url %}
15
+ <div class="row">
16
+ <div class="col-md-12">
17
+ <div class="alert alert-success" role="alert">
18
+ You can bulk-add and bulk-remove members of this group from the <a href="{{ members_list_url }}">{{ members_verbose_name_plural|bettertitle }} list view</a>.
19
+ </div>
20
+ </div>
21
+ </div>
22
+ {% endif %}
23
+ <div class="row">
24
+ <div class="col-md-12">
25
+ {% include 'utilities/obj_table.html' with table=members_table table_template='panel_table.html' heading='Dynamic Group members' %}
26
+ </div>
27
+ </div>
28
+ </div>
29
+ {% endblock extra_tab_content %}
30
+
31
+ {% block content_left_page %}
32
+ <div class="panel panel-default">
33
+ <div class="panel-heading">
34
+ <strong>Dynamic Group</strong>
35
+ </div>
36
+ <table class="table table-hover panel-body attr-table">
37
+ <tr>
38
+ <td>Name</td>
39
+ <td><span>{{ object.name }}</span></td>
40
+ </tr>
41
+ <tr>
42
+ <td>Description</td>
43
+ <td><span>{{ object.description }}</span></td>
44
+ </tr>
45
+ <tr>
46
+ <td>Content Type</td>
47
+ <td><span>{{ object.content_type }}</span></td>
48
+ </tr>
49
+ <tr>
50
+ <td>Group Type</td>
51
+ <td><span>{{ object.get_group_type_display }}</span></td>
52
+ </tr>
53
+ {% include 'inc/tenant_table_row.html' %}
54
+ </table>
55
+ </div>
56
+ {% endblock content_left_page %}
57
+
58
+ {% block content_right_page %}
59
+ {% if object.group_type == "dynamic-filter" %}
60
+ <div class="panel panel-default">
61
+ <div class="panel-heading">
62
+ <strong>Filter</strong>
63
+ </div>
64
+ <div class="panel-body">
65
+ <pre>{{ object.filter | render_json }}</pre>
66
+ </div>
67
+ </div>
68
+ {% endif %}
69
+ {% endblock content_right_page %}
70
+
71
+ {% block content_full_width_page %}
72
+ {% if object.group_type != "static" %}
73
+ <div class="panel panel-default">
74
+ <div class="panel-heading">
75
+ <strong>Filter Query Logic</strong>
76
+ </div>
77
+ <div class="panel-body">
78
+ {% if object.group_type == "dynamic-set" %}
79
+ <span class="help-block">
80
+ This is a raw representation of the underlying filter that is derived
81
+ by aggregating the filters from all descendant groups.
82
+ </span>
83
+ {% endif %}
84
+ <pre>{{ raw_query }}</pre>
85
+ </div>
86
+ </div>
87
+ <div class="panel panel-default">
88
+ <div class="panel-heading">
89
+ <strong>Related Groups</strong>
90
+ </div>
91
+ <div class="panel-body">
92
+ {% if object.group_type == "dynamic-set" %}
93
+ {% include 'utilities/obj_table.html' with table=descendants_table table_template='panel_table.html' heading='Descendants' disable_pagination=True %}
94
+ {% endif %}
95
+ {% include 'utilities/obj_table.html' with table=ancestors_table table_template='panel_table.html' heading='Ancestors' disable_pagination=True %}
96
+ </div>
97
+ </div>
98
+ {% endif %}
99
+ {% endblock content_full_width_page %}