14
14
< div class ="controls ">
15
15
< div class ="control-group ">
16
16
{% plugin_buttons object %}
17
+ {% if object.is_active and perms.extras.add_configrevision %}
18
+ {% url 'extras:configrevision_add' as edit_url %}
19
+ {% include "buttons/edit.html" with url=edit_url %}
20
+ {% endif %}
21
+ {% if not object.is_active and perms.extras.delete_configrevision %}
22
+ {% delete_button object %}
23
+ {% endif %}
17
24
</ div >
18
25
< div class ="control-group ">
19
26
{% custom_links object %}
23
30
24
31
{% block content %}
25
32
< div class ="row ">
26
- < div class ="col col-md-6 ">
33
+ < div class ="col col-md-12 ">
27
34
< div class ="card ">
28
- < h5 class ="card-header "> {% trans "Rack Elevation " %}</ h5 >
35
+ < h5 class ="card-header "> {% trans "Rack Elevations " %}</ h5 >
29
36
< div class ="card-body ">
30
37
< table class ="table table-hover attr-table ">
31
38
< tr >
32
- < th scope ="row "> {% trans "Rack elevation default unit height" %}: </ th >
39
+ < th scope ="row "> {% trans "Default unit height" %}</ th >
33
40
< td > {{ object.data.RACK_ELEVATION_DEFAULT_UNIT_HEIGHT }}</ td >
34
41
</ tr >
35
42
< tr >
36
- < th scope ="row "> {% trans "Rack elevation default unit width" %}: </ th >
43
+ < th scope ="row "> {% trans "Default unit width" %}</ th >
37
44
< td > {{ object.data.RACK_ELEVATION_DEFAULT_UNIT_WIDTH }}</ td >
38
45
</ tr >
39
46
</ table >
40
47
</ div >
41
48
</ div >
42
49
43
50
< div class ="card ">
44
- < h5 class ="card-header "> {% trans "Power" %}</ h5 >
51
+ < h5 class ="card-header "> {% trans "Power Feeds " %}</ h5 >
45
52
< div class ="card-body ">
46
53
< table class ="table table-hover attr-table ">
47
54
< tr >
48
- < th scope ="row "> {% trans "Powerfeed default voltage" %}: </ th >
55
+ < th scope ="row "> {% trans "Default voltage" %}</ th >
49
56
< td > {{ object.data.POWERFEED_DEFAULT_VOLTAGE }}</ td >
50
57
</ tr >
51
58
< tr >
52
- < th scope ="row "> {% trans "Powerfeed default amperage" %}: </ th >
59
+ < th scope ="row "> {% trans "Default amperage" %}</ th >
53
60
< td > {{ object.data.POWERFEED_DEFAULT_AMPERAGE }}</ td >
54
61
</ tr >
55
62
< tr >
56
- < th scope ="row "> {% trans "Powerfeed default max utilization" %}: </ th >
63
+ < th scope ="row "> {% trans "Default max utilization" %}</ th >
57
64
< td > {{ object.data.POWERFEED_DEFAULT_MAX_UTILIZATION }}</ td >
58
65
</ tr >
59
66
</ table >
@@ -65,11 +72,11 @@ <h5 class="card-header">{% trans "IPAM" %}</h5>
65
72
< div class ="card-body ">
66
73
< table class ="table table-hover attr-table ">
67
74
< tr >
68
- < th scope ="row "> {% trans "Enforce global unique" %}: </ th >
75
+ < th scope ="row "> {% trans "Enforce global unique" %}</ th >
69
76
< td > {{ object.data.ENFORCE_GLOBAL_UNIQUE }}</ td >
70
77
</ tr >
71
78
< tr >
72
- < th scope ="row "> {% trans "Prefer IPv4" %}: </ th >
79
+ < th scope ="row "> {% trans "Prefer IPv4" %}</ th >
73
80
< td > {{ object.data.PREFER_IPV4 }}</ td >
74
81
</ tr >
75
82
</ table >
@@ -81,8 +88,8 @@ <h5 class="card-header">{% trans "Security" %}</h5>
81
88
< div class ="card-body ">
82
89
< table class ="table table-hover attr-table ">
83
90
< tr >
84
- < th scope ="row "> {% trans "Allowed URL schemes" %}: </ th >
85
- < td > {{ object.data.ALLOWED_URL_SCHEMES }}</ td >
91
+ < th scope ="row "> {% trans "Allowed URL schemes" %}</ th >
92
+ < td > {{ object.data.ALLOWED_URL_SCHEMES|join:", "|placeholder }}</ td >
86
93
</ tr >
87
94
</ table >
88
95
</ div >
@@ -93,39 +100,35 @@ <h5 class="card-header">{% trans "Banners" %}</h5>
93
100
< div class ="card-body ">
94
101
< table class ="table table-hover attr-table ">
95
102
< tr >
96
- < th scope ="row "> {% trans "Login banner" %}: </ th >
103
+ < th scope ="row "> {% trans "Login banner" %}</ th >
97
104
< td > {{ object.data.BANNER_LOGIN }}</ td >
98
105
</ tr >
99
106
< tr >
100
- < th scope ="row "> {% trans "Maintenance banner" %}: </ th >
107
+ < th scope ="row "> {% trans "Maintenance banner" %}</ th >
101
108
< td > {{ object.data.BANNER_MAINTENANCE }}</ td >
102
109
</ tr >
103
110
< tr >
104
- < th scope ="row "> {% trans "Top banner" %}: </ th >
111
+ < th scope ="row "> {% trans "Top banner" %}</ th >
105
112
< td > {{ object.data.BANNER_TOP }}</ td >
106
113
</ tr >
107
114
< tr >
108
- < th scope ="row "> {% trans "Bottom banner" %}: </ th >
115
+ < th scope ="row "> {% trans "Bottom banner" %}</ th >
109
116
< td > {{ object.data.BANNER_BOTTOM }}</ td >
110
117
</ tr >
111
118
</ table >
112
119
</ div >
113
120
</ div >
114
121
115
-
116
- </ div >
117
- < div class ="col col-md-6 ">
118
-
119
122
< div class ="card ">
120
123
< h5 class ="card-header "> {% trans "Pagination" %}</ h5 >
121
124
< div class ="card-body ">
122
125
< table class ="table table-hover attr-table ">
123
126
< tr >
124
- < th scope ="row "> {% trans "Paginate count" %}: </ th >
127
+ < th scope ="row "> {% trans "Paginate count" %}</ th >
125
128
< td > {{ object.data.PAGINATE_COUNT }}</ td >
126
129
</ tr >
127
130
< tr >
128
- < th scope ="row "> {% trans "Max page size" %}: </ th >
131
+ < th scope ="row "> {% trans "Max page size" %}</ th >
129
132
< td > {{ object.data.MAX_PAGE_SIZE }}</ td >
130
133
</ tr >
131
134
</ table >
@@ -137,8 +140,8 @@ <h5 class="card-header">{% trans "Validation" %}</h5>
137
140
< div class ="card-body ">
138
141
< table class ="table table-hover attr-table ">
139
142
< tr >
140
- < th scope ="row "> {% trans "Custom validators" %}: </ th >
141
- < td > {{ object.data.CUSTOM_VALIDATORS }}</ td >
143
+ < th scope ="row "> {% trans "Custom validators" %}</ th >
144
+ < td > {{ object.data.CUSTOM_VALIDATORS|placeholder }}</ td >
142
145
</ tr >
143
146
</ table >
144
147
</ div >
@@ -149,8 +152,8 @@ <h5 class="card-header">{% trans "User Preferences" %}</h5>
149
152
< div class ="card-body ">
150
153
< table class ="table table-hover attr-table ">
151
154
< tr >
152
- < th scope ="row "> {% trans "Default user preferences" %}: </ th >
153
- < td > {{ object.data.DEFAULT_USER_PREFERENCES }}</ td >
155
+ < th scope ="row "> {% trans "Default user preferences" %}</ th >
156
+ < td > {{ object.data.DEFAULT_USER_PREFERENCES|placeholder }}</ td >
154
157
</ tr >
155
158
</ table >
156
159
</ div >
@@ -161,38 +164,33 @@ <h5 class="card-header">{% trans "Miscellaneous" %}</h5>
161
164
< div class ="card-body ">
162
165
< table class ="table table-hover attr-table ">
163
166
< tr >
164
- < th scope ="row "> {% trans "Maintenance mode" %}: </ th >
167
+ < th scope ="row "> {% trans "Maintenance mode" %}</ th >
165
168
< td > {{ object.data.MAINTENANCE_MODE }}</ td >
166
169
</ tr >
167
170
< tr >
168
- < th scope ="row "> {% trans "GraphQL enabled" %}: </ th >
171
+ < th scope ="row "> {% trans "GraphQL enabled" %}</ th >
169
172
< td > {{ object.data.GRAPHQL_ENABLED }}</ td >
170
173
</ tr >
171
174
< tr >
172
- < th scope ="row "> {% trans "Changelog retention" %}: </ th >
175
+ < th scope ="row "> {% trans "Changelog retention" %}</ th >
173
176
< td > {{ object.data.CHANGELOG_RETENTION }}</ td >
174
177
</ tr >
175
178
< tr >
176
- < th scope ="row "> {% trans "Job retention" %}: </ th >
179
+ < th scope ="row "> {% trans "Job retention" %}</ th >
177
180
< td > {{ object.data.JOB_RETENTION }}</ td >
178
181
</ tr >
179
182
< tr >
180
- < th scope ="row "> {% trans "Maps URL" %}: </ th >
183
+ < th scope ="row "> {% trans "Maps URL" %}</ th >
181
184
< td > {{ object.data.MAPS_URL }}</ td >
182
185
</ tr >
183
186
</ table >
184
187
</ div >
185
188
</ div >
186
189
187
190
< div class ="card ">
188
- < h5 class ="card-header "> {% trans "Config Revision " %}</ h5 >
191
+ < h5 class ="card-header "> {% trans "Comment " %}</ h5 >
189
192
< div class ="card-body ">
190
- < table class ="table table-hover attr-table ">
191
- < tr >
192
- < th scope ="row "> {% trans "Comment" %}:</ th >
193
- < td > {{ object.comment }}</ td >
194
- </ tr >
195
- </ table >
193
+ {{ object.comment|placeholder }}
196
194
</ div >
197
195
</ div >
198
196
0 commit comments