diff --git a/netbox/templates/generic/bulk_rename.html b/netbox/templates/generic/bulk_rename.html
index 8bdc703c1..716556d41 100644
--- a/netbox/templates/generic/bulk_rename.html
+++ b/netbox/templates/generic/bulk_rename.html
@@ -39,10 +39,10 @@ Context:
{% for field in selected_field_names %}
- {% with field_label=field|title %}
-
@@ -50,8 +50,8 @@ Context:
{% for obj in selected_objects %}
{% blocktrans %}Current {{ field_label }}{% endblocktrans %}
- {% blocktrans %}New {{ field_label }}{% endblocktrans %}
- {% endwith %}
+ {% with field_label=field|title %}
+ {% blocktrans %}Current {{ field_label }}{% endblocktrans %}
+ {% blocktrans %}New {{ field_label }}{% endblocktrans %}
+ {% endwith %}
{% endfor %}