-
Notifications
You must be signed in to change notification settings - Fork 56
/
goldenconfigsetting.html
136 lines (134 loc) · 3.41 KB
/
goldenconfigsetting.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{% extends 'generic/object_detail.html' %}
{% load helpers %}
{% block content_left_page %}
<div class="panel panel-default">
<div class="panel-heading">
<strong>General Settings</strong>
</div>
<table class="table table-hover panel-body attr-table">
<tr>
<td>Weight</td>
<td>{{ object.weight }}</td>
</tr>
<tr>
<td>Description</td>
<td>{{ object.description|placeholder }}</td>
</tr>
<tr>
<td>Dynamic Group</td>
<td><a href="{{ object.dynamic_group.get_absolute_url }}">{{ object.dynamic_group.name }}</a></td>
</tr>
<tr>
<td>Filter Query Logic</td>
<td>
<pre>{{ object.scope|render_json }}</pre></a>
</td>
</tr>
<tr>
<td>Scope of Devices</td>
<td><a href="{{ object.get_url_to_filtered_device_list }}">{{ object.get_url_to_filtered_device_list | length }}</a></td>
</tr>
</table>
</div>
{% endblock content_left_page %}
{% block content_right_page %}
<div class="panel panel-default">
<div class="panel-heading">
<strong>Backup Configuration</strong>
</div>
<table class="table table-hover panel-body attr-table">
<tr>
<td>
Backup Repository
</td>
<td>
{% if object.backup_repository %}
<a href="{{ object.backup_repository.get_absolute_url }}">{{ object.backup_repository }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
<td>
Backup Path in Jinja Template Form
</td>
<td>
{{ object.backup_path_template|placeholder }}
</td>
</tr>
<tr>
<td>
Backup Test
</td>
<td>
{{ object.backup_test_connectivity|placeholder }}
</td>
</tr>
</table>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<strong>Intended Configuration</strong>
</div>
<table class="table table-hover panel-body attr-table">
<tr>
<td>
Intended Repository
</td>
<td>
{% if object.intended_repository %}
<a href="{{ object.intended_repository.get_absolute_url }}">{{ object.intended_repository }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
<td>
Intended Path in Jinja Template Form
</td>
<td>
{{ object.intended_path_template|placeholder }}
</td>
</tr>
</table>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<strong>Templates Configuration</strong>
</div>
<table class="table table-hover panel-body attr-table">
<tr>
<td>
Jinja Repository
</td>
<td>
{% if object.jinja_repository %}
<a href="{{ object.jinja_repository.get_absolute_url }}">{{ object.jinja_repository }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
<td>
Template Path in Jinja Template Form
</td>
<td>
{{ object.jinja_path_template|placeholder }}
</td>
</tr>
<tr>
<td>GraphQL Query</td>
<td>
{% if object.sot_agg_query %}
<a href="{{ object.sot_agg_query.get_absolute_url }}">{{ object.sot_agg_query }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
</table>
</div>
{% endblock content_right_page %}