mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-28 03:37:34 +02:00
Closes #33: Add ability to clone objects (pre-populate form fields)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static %}
|
||||
{% load tz %}
|
||||
{% load buttons %}
|
||||
{% load custom_links %}
|
||||
{% load helpers %}
|
||||
{% load static %}
|
||||
{% load tz %}
|
||||
|
||||
{% block header %}
|
||||
<div class="row noprint">
|
||||
@@ -38,6 +39,9 @@
|
||||
Graphs
|
||||
</button>
|
||||
{% endif %}
|
||||
{% if perms.dcim.add_site %}
|
||||
{% clone_button 'dcim:site_add' site %}
|
||||
{% endif %}
|
||||
{% if perms.dcim.change_site %}
|
||||
<a href="{% url 'dcim:site_edit' slug=site.slug %}" class="btn btn-warning">
|
||||
<span class="fa fa-pencil" aria-hidden="true"></span>
|
||||
|
||||
Reference in New Issue
Block a user