mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* adds interface rename button on the list page #13444 * adds rename view on all device components #13564 * Condense component views to a single template --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
23 lines
794 B
HTML
23 lines
794 B
HTML
{% extends 'generic/object_list.html' %}
|
|
{% load buttons %}
|
|
{% load helpers %}
|
|
{% load i18n %}
|
|
|
|
{% block bulk_buttons %}
|
|
<div class="btn-group" role="group">
|
|
{% if 'bulk_edit' in actions %}
|
|
{% bulk_edit_button model query_params=request.GET %}
|
|
{% endif %}
|
|
{% if 'bulk_rename' in actions %}
|
|
{% with bulk_rename_view=model|validated_viewname:"bulk_rename" %}
|
|
<button type="submit" name="_rename" formaction="{% url bulk_rename_view %}" class="btn btn-outline-warning btn-sm">
|
|
<i class="mdi mdi-pencil-outline" aria-hidden="true"></i> {% trans "Rename Selected" %}
|
|
</button>
|
|
{% endwith %}
|
|
{% endif %}
|
|
</div>
|
|
{% if 'bulk_delete' in actions %}
|
|
{% bulk_delete_button model query_params=request.GET %}
|
|
{% endif %}
|
|
{% endblock %}
|