mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Add button to copy rendered config
This commit is contained in:
parent
6ed41f6680
commit
f337ef1134
@ -54,11 +54,14 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header d-flex justify-content-between">
|
<h2 class="card-header d-flex justify-content-between">
|
||||||
{% trans "Rendered Config" %}
|
{% trans "Rendered Config" %}
|
||||||
<a href="?export=True" class="btn btn-primary lh-1" role="button">
|
<div>
|
||||||
<i class="mdi mdi-download" aria-hidden="true"></i> {% trans "Download" %}
|
{% copy_content "rendered_config" %}
|
||||||
</a>
|
<a href="?export=True" class="btn btn-primary lh-1" role="button">
|
||||||
|
<i class="mdi mdi-download" aria-hidden="true"></i> {% trans "Download" %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</h2>
|
</h2>
|
||||||
<pre class="card-body">{{ rendered_config }}</pre>
|
<pre class="card-body" id="rendered_config">{{ rendered_config }}</pre>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
|
Loading…
Reference in New Issue
Block a user