Introduced clone, edit, and delete buttons

This commit is contained in:
Jeremy Stretch
2019-12-13 15:29:55 -05:00
parent cf47170cde
commit 3506f93cd7
24 changed files with 153 additions and 184 deletions

View File

@@ -29,19 +29,13 @@
</div>
<div class="pull-right noprint">
{% if perms.virtualization.add_cluster %}
{% clone_button 'virtualization:cluster_add' cluster %}
{% clone_button cluster %}
{% endif %}
{% if perms.virtualization.change_cluster %}
<a href="{% url 'virtualization:cluster_edit' pk=cluster.pk %}" class="btn btn-warning">
<span class="fa fa-pencil" aria-hidden="true"></span>
Edit this cluster
</a>
{% edit_button cluster %}
{% endif %}
{% if perms.virtualization.delete_cluster %}
<a href="{% url 'virtualization:cluster_delete' pk=cluster.pk %}" class="btn btn-danger">
<span class="fa fa-trash" aria-hidden="true"></span>
Delete this cluster
</a>
{% delete_button cluster %}
{% endif %}
</div>
<h1>{% block title %}{{ cluster }}{% endblock %}</h1>