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