1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #12187: Add button to download rendered config from UI

This commit is contained in:
jeremystretch
2023-04-17 16:37:02 -04:00
parent 86d185fe05
commit 014a5d10d1
2 changed files with 27 additions and 0 deletions

View File

@@ -36,6 +36,14 @@
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
<div class="float-end">
<a href="?export=True" class="btn btn-sm btn-primary" role="button">
<i class="mdi mdi-download" aria-hidden="true"></i> Download
</a>
</div>
<h5>Rendered Config</h5>
</div>
{% if config_template %}
<pre class="card-body">{{ rendered_config }}</pre>
{% else %}