mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Highlight renamed components and allow for multiple previews
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for obj in selected_objects %}
|
{% for obj in selected_objects %}
|
||||||
<tr>
|
<tr{% if obj.new_name and obj.name != obj.new_name %} class="success"{% endif %}>
|
||||||
<td>{{ obj.name }}</td>
|
<td>{{ obj.name }}</td>
|
||||||
<td>{{ obj.new_name }}</td>
|
<td>{{ obj.new_name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -42,10 +42,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group text-right">
|
<div class="form-group text-right">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
<button type="submit" name="_preview" class="btn btn-primary">Preview</button>
|
||||||
{% if '_preview' in request.POST and not form.errors %}
|
{% if '_preview' in request.POST and not form.errors %}
|
||||||
<button type="submit" name="_apply" class="btn btn-primary">Apply</button>
|
<button type="submit" name="_apply" class="btn btn-primary">Apply</button>
|
||||||
{% else %}
|
|
||||||
<button type="submit" name="_preview" class="btn btn-primary">Preview</button>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ return_url }}" class="btn btn-default">Cancel</a>
|
<a href="{{ return_url }}" class="btn btn-default">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user