mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Merge pull request #19162 from alehaa/19040-copy-rendered-config
Fixes #19040: Add button to copy rendered config to clipboard
This commit is contained in:
commit
2356a3c125
@ -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" %}
|
||||||
|
<div>
|
||||||
|
{% copy_content "rendered_config" %}
|
||||||
<a href="?export=True" class="btn btn-primary lh-1" role="button">
|
<a href="?export=True" class="btn btn-primary lh-1" role="button">
|
||||||
<i class="mdi mdi-download" aria-hidden="true"></i> {% trans "Download" %}
|
<i class="mdi mdi-download" aria-hidden="true"></i> {% trans "Download" %}
|
||||||
</a>
|
</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