mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-27 01:36:11 -06:00
12117 remove clone from cable
This commit is contained in:
parent
3264636b7a
commit
6b14186674
@ -4,6 +4,9 @@
|
|||||||
{% load perms %}
|
{% load perms %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
|
||||||
|
{# cable does not support the default clone control #}
|
||||||
|
{% block clone_button %}{% endblock clone_button %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-6">
|
<div class="col col-md-6">
|
||||||
|
@ -60,15 +60,23 @@ Context:
|
|||||||
{# Extra buttons #}
|
{# Extra buttons #}
|
||||||
{% block extra_controls %}{% endblock %}
|
{% block extra_controls %}{% endblock %}
|
||||||
|
|
||||||
|
{% block clone_button %}
|
||||||
{% if request.user|can_add:object %}
|
{% if request.user|can_add:object %}
|
||||||
{% clone_button object %}
|
{% clone_button object %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endblock clone_button %}
|
||||||
|
|
||||||
|
{% block edit_button %}
|
||||||
{% if request.user|can_change:object %}
|
{% if request.user|can_change:object %}
|
||||||
{% edit_button object %}
|
{% edit_button object %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endblock edit_button %}
|
||||||
|
|
||||||
|
{% block delete_button %}
|
||||||
{% if request.user|can_delete:object %}
|
{% if request.user|can_delete:object %}
|
||||||
{% delete_button object %}
|
{% delete_button object %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endblock delete_button %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
Loading…
Reference in New Issue
Block a user