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

Closes #1739: Enabled custom fields for secrets

This commit is contained in:
Jeremy Stretch
2018-07-17 09:43:57 -04:00
parent 9e2ac7b3f4
commit 0c0799f3bf
7 changed files with 32 additions and 10 deletions

View File

@@ -69,7 +69,7 @@
</tr>
</table>
</div>
{% include 'extras/inc/tags_panel.html' with tags=secret.tags.all url='secrets:secret_list' %}
{% include 'inc/custom_fields_panel.html' with custom_fields=secret.get_custom_fields %}
</div>
<div class="col-md-6">
{% if secret|decryptable_by:request.user %}
@@ -101,6 +101,7 @@
You do not have permission to decrypt this secret.
</div>
{% endif %}
{% include 'extras/inc/tags_panel.html' with tags=secret.tags.all url='secrets:secret_list' %}
</div>
</div>

View File

@@ -54,6 +54,14 @@
{% render_field form.plaintext2 %}
</div>
</div>
{% if form.custom_fields %}
<div class="panel panel-default">
<div class="panel-heading"><strong>Custom Fields</strong></div>
<div class="panel-body">
{% render_custom_fields form %}
</div>
</div>
{% endif %}
<div class="panel panel-default">
<div class="panel-heading"><strong>Tags</strong></div>
<div class="panel-body">