|
|
@@ -45,7 +45,7 @@ REGION_ACTIONS = """
|
|
|
<i class="fa fa-history"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_region %}
|
|
|
- <a href="{% url 'dcim:region_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
+ <a href="{% url 'dcim:region_edit' pk=record.pk %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
|
"""
|
|
|
|
|
|
@@ -57,7 +57,7 @@ RACKGROUP_ACTIONS = """
|
|
|
<i class="fa fa-eye"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_rackgroup %}
|
|
|
- <a href="{% url 'dcim:rackgroup_edit' pk=record.pk %}" class="btn btn-xs btn-warning" title="Edit">
|
|
|
+ <a href="{% url 'dcim:rackgroup_edit' pk=record.pk %}?return_url={{ request.path }}" class="btn btn-xs btn-warning" title="Edit">
|
|
|
<i class="glyphicon glyphicon-pencil"></i>
|
|
|
</a>
|
|
|
{% endif %}
|
|
|
@@ -68,7 +68,7 @@ RACKROLE_ACTIONS = """
|
|
|
<i class="fa fa-history"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_rackrole %}
|
|
|
- <a href="{% url 'dcim:rackrole_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
+ <a href="{% url 'dcim:rackrole_edit' pk=record.pk %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
|
"""
|
|
|
|
|
|
@@ -89,7 +89,7 @@ RACKRESERVATION_ACTIONS = """
|
|
|
<i class="fa fa-history"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_rackreservation %}
|
|
|
- <a href="{% url 'dcim:rackreservation_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
+ <a href="{% url 'dcim:rackreservation_edit' pk=record.pk %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
|
"""
|
|
|
|
|
|
@@ -98,7 +98,7 @@ MANUFACTURER_ACTIONS = """
|
|
|
<i class="fa fa-history"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_manufacturer %}
|
|
|
- <a href="{% url 'dcim:manufacturer_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
+ <a href="{% url 'dcim:manufacturer_edit' slug=record.slug %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
|
"""
|
|
|
|
|
|
@@ -107,7 +107,7 @@ DEVICEROLE_ACTIONS = """
|
|
|
<i class="fa fa-history"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_devicerole %}
|
|
|
- <a href="{% url 'dcim:devicerole_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
+ <a href="{% url 'dcim:devicerole_edit' slug=record.slug %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
|
"""
|
|
|
|
|
|
@@ -132,7 +132,7 @@ PLATFORM_ACTIONS = """
|
|
|
<i class="fa fa-history"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_platform %}
|
|
|
- <a href="{% url 'dcim:platform_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
+ <a href="{% url 'dcim:platform_edit' slug=record.slug %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
|
"""
|
|
|
|
|
|
@@ -173,7 +173,7 @@ VIRTUALCHASSIS_ACTIONS = """
|
|
|
<i class="fa fa-history"></i>
|
|
|
</a>
|
|
|
{% if perms.dcim.change_virtualchassis %}
|
|
|
- <a href="{% url 'dcim:virtualchassis_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
+ <a href="{% url 'dcim:virtualchassis_edit' pk=record.pk %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
|
"""
|
|
|
|