From 3e8799b5c7c93d99ea52450ea8f8aabdb4d5a690 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 28 Aug 2019 09:20:19 -0400 Subject: [PATCH] Fix script form rendering --- netbox/templates/extras/script.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/netbox/templates/extras/script.html b/netbox/templates/extras/script.html index f0be95698..fc10db80f 100644 --- a/netbox/templates/extras/script.html +++ b/netbox/templates/extras/script.html @@ -76,18 +76,22 @@ {% endif %}
{% csrf_token %} -
- - This script does not require any input to run. -
-
-
- Script Data + {% if form.requires_input %} +
+
+ Script Data +
+
+ {% render_form form %} +
-
- {% render_form form %} + {% else %} +
+ + This script does not require any input to run.
-
+ {% render_form form %} + {% endif %}
Cancel