mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 12:08:43 -06:00
Add layouts for DeviceType & ModuleTypeProfile
This commit is contained in:
7
netbox/templates/ui/actions/copy_content.html
Normal file
7
netbox/templates/ui/actions/copy_content.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% load i18n %}
|
||||
<a class="btn btn-ghost-{{ button_class }} btn-sm copy-content" data-clipboard-target="#{{ target_id }}" title="{% trans "Copy to clipboard" %}">
|
||||
{% if button_icon %}
|
||||
<i class="mdi mdi-{{ button_icon }}" aria-hidden="true"></i>
|
||||
{% endif %}
|
||||
{{ label }}
|
||||
</a>
|
||||
@@ -1,4 +1,4 @@
|
||||
<a href="{{ url }}" class="btn btn-ghost-{{ button_class }} btn-sm">
|
||||
<a {% if url %}href="{{ url }}" {% endif %}class="btn btn-ghost-{{ button_class }} btn-sm">
|
||||
{% if button_icon %}
|
||||
<i class="mdi mdi-{{ button_icon }}" aria-hidden="true"></i>
|
||||
{% endif %}
|
||||
@@ -1 +1 @@
|
||||
{% checkmark object.desc_units %}
|
||||
{% checkmark value %}
|
||||
|
||||
3
netbox/templates/ui/attrs/image.html
Normal file
3
netbox/templates/ui/attrs/image.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<a href="{{ value.url }}">
|
||||
<img src="{{ value.url }}" alt="{{ value.name }}" class="img-fluid" />
|
||||
</a>
|
||||
5
netbox/templates/ui/panels/json.html
Normal file
5
netbox/templates/ui/panels/json.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "ui/panels/_base.html" %}
|
||||
|
||||
{% block panel_content %}
|
||||
<pre id="panel_{{ field_name }}">{{ data|json }}</pre>
|
||||
{% endblock panel_content %}
|
||||
Reference in New Issue
Block a user