Browse Source

Merge "Fix template names in policy targets view"

Jenkins 1 year ago
parent
commit
8e80d41aec
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      gbpui/panels/policytargets/views.py

+ 10
- 10
gbpui/panels/policytargets/views.py View File

@@ -103,7 +103,7 @@ class UpdatePTGView(forms.ModalFormView):
103 103
     form_class = policy_target_forms.UpdatePolicyTargetForm
104 104
     form_id = "update_policy_target_form"
105 105
     modal_header = _("Edit Group")
106
-    template_name = "gbpui/form_with_description.html"
106
+    template_name = "project/policytargets/update_policy_target.html"
107 107
     context_object_name = 'policy_target'
108 108
     submit_label = _("Save Changes")
109 109
     submit_url = "horizon:project:policytargets:updatepolicy_target"
@@ -143,7 +143,7 @@ class UpdateExternalPTGView(forms.ModalFormView):
143 143
     form_class = policy_target_forms.UpdateExternalPolicyTargetForm
144 144
     form_id = "update_policy_target_form"
145 145
     modal_header = _("Edit Group")
146
-    template_name = "gbpui/form_with_description.html"
146
+    template_name = "project/policytargets/update_external_policy_target.html"
147 147
     context_object_name = 'external_policy_target'
148 148
     submit_label = _("Save Changes")
149 149
     submit_url = "horizon:project:policytargets:update_ext_policy_target"
@@ -183,7 +183,7 @@ class ExtAddProvidedPRSView(forms.ModalFormView):
183 183
     form_class = policy_target_forms.ExtAddProvidedPRSForm
184 184
     form_id = "ext_add_provided_form"
185 185
     modal_header = _("Add Provided PRS")
186
-    template_name = "gbpui/form_with_description.html"
186
+    template_name = "project/policytargets/ext_add_provided_prs.html"
187 187
     submit_label = _("Save Changes")
188 188
     submit_url = "horizon:project:policytargets:ext_add_provided_prs"
189 189
     page_title = _("Add Provided PRS")
@@ -204,7 +204,7 @@ class ExtRemoveProvidedPRSView(forms.ModalFormView):
204 204
     form_class = policy_target_forms.ExtRemoveProvidedPRSForm
205 205
     form_id = "ext_remove_provided_form"
206 206
     modal_header = _("Remove Provided PRS")
207
-    template_name = "gbpui/form_with_description.html"
207
+    template_name = "project/policytargets/ext_remove_provided_prs.html"
208 208
     submit_label = _("Save Changes")
209 209
     submit_url = "horizon:project:policytargets:ext_remove_provided_prs"
210 210
     page_title = _("Remove Provided PRS")
@@ -226,7 +226,7 @@ class AddProvidedPRSView(forms.ModalFormView):
226 226
     form_class = policy_target_forms.AddProvidedPRSForm
227 227
     form_id = "add_provided_form"
228 228
     modal_header = _("Add Provided PRS")
229
-    template_name = "gbpui/form_with_description.html"
229
+    template_name = "project/policytargets/add_provided_prs.html"
230 230
     submit_label = _("Save Changes")
231 231
     submit_url = "horizon:project:policytargets:add_provided_prs"
232 232
     page_title = _("Add Provided PRS")
@@ -247,7 +247,7 @@ class RemoveProvidedPRSView(forms.ModalFormView):
247 247
     form_class = policy_target_forms.RemoveProvidedPRSForm
248 248
     form_id = "remove_provided_form"
249 249
     modal_header = _("Remove Provided PRS")
250
-    template_name = "gbpui/form_with_description.html"
250
+    template_name = "project/policytargets/remove_provided_prs.html"
251 251
     submit_label = _("Save Changes")
252 252
     submit_url = "horizon:project:policytargets:remove_provided_prs"
253 253
     page_title = _("Remove Provided PRS")
@@ -268,7 +268,7 @@ class ExtAddConsumedPRSView(forms.ModalFormView):
268 268
     form_class = policy_target_forms.ExtAddConsumedPRSForm
269 269
     form_id = "ext_add_consumed_form"
270 270
     modal_header = _("Add Policy Rule Set")
271
-    template_name = "gbpui/form_with_description.html"
271
+    template_name = "project/policytargets/ext_add_consumed_prs.html"
272 272
     submit_label = _("Save Changes")
273 273
     submit_url = "horizon:project:policytargets:ext_add_consumed_prs"
274 274
     page_title = _("Add Policy Rule Set")
@@ -289,7 +289,7 @@ class ExtRemoveConsumedPRSView(forms.ModalFormView):
289 289
     form_class = policy_target_forms.ExtRemoveConsumedPRSForm
290 290
     form_id = "remove_contract_form"
291 291
     modal_header = _("Remove Policy Rule Set")
292
-    template_name = "gbpui/form_with_description.html"
292
+    template_name = "project/policytargets/ext_remove_consumed_prs.html"
293 293
     submit_label = _("Save Changes")
294 294
     submit_url = "horizon:project:policytargets:ext_remove_consumed_prs"
295 295
     page_title = _("Remove Policy Rule Set")
@@ -311,7 +311,7 @@ class AddConsumedPRSView(forms.ModalFormView):
311 311
     form_class = policy_target_forms.AddConsumedPRSForm
312 312
     form_id = "add_consumed_form"
313 313
     modal_header = _("Add ")
314
-    template_name = "gbpui/form_with_description.html"
314
+    template_name = "project/policytargets/add_consumed_prs.html"
315 315
     submit_label = _("Save Changes")
316 316
     submit_url = "horizon:project:policytargets:add_consumed_prs"
317 317
     page_title = _("Add ")
@@ -332,7 +332,7 @@ class RemoveConsumedPRSView(forms.ModalFormView):
332 332
     form_class = policy_target_forms.RemoveConsumedPRSForm
333 333
     form_id = "remove_contract_form"
334 334
     modal_header = _("Remove Policy Rule Set")
335
-    template_name = "gbpui/form_with_description.html"
335
+    template_name = "project/policytargets/remove_consumed_prs.html"
336 336
     submit_label = _("Save Changes")
337 337
     submit_url = "horizon:project:policytargets:remove_consumed_prs"
338 338
     page_title = _("Remove Policy Rule Set")

Loading…
Cancel
Save