mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Closes #33: Add ability to clone objects (pre-populate form fields)
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
			
		||||
{% extends '_base.html' %}
 | 
			
		||||
{% load buttons %}
 | 
			
		||||
{% load static %}
 | 
			
		||||
{% load helpers %}
 | 
			
		||||
{% load custom_links %}
 | 
			
		||||
@@ -57,6 +58,11 @@
 | 
			
		||||
                    {% if perms.dcim.add_devicebay %}<li><a href="{% url 'dcim:devicebay_add' pk=device.pk %}">Device Bays</a></li>{% endif %}
 | 
			
		||||
                </ul>
 | 
			
		||||
            </div>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if perms.dcim.add_device %}
 | 
			
		||||
            {% clone_button 'dcim:device_add' device %}
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if perms.dcim.change_device %}
 | 
			
		||||
            <a href="{% url 'dcim:device_edit' pk=device.pk %}" class="btn btn-warning">
 | 
			
		||||
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
 | 
			
		||||
                Edit this device
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user