Add layouts for DeviceType & ModuleTypeProfile
Some checks are pending
CI / build (20.x, 3.12) (push) Waiting to run
CI / build (20.x, 3.13) (push) Waiting to run

This commit is contained in:
Jeremy Stretch
2025-11-04 20:06:18 -05:00
parent d5cec3723e
commit 1de41b4964
10 changed files with 162 additions and 7 deletions

View 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>

View File

@@ -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 %}

View File

@@ -1 +1 @@
{% checkmark object.desc_units %}
{% checkmark value %}

View File

@@ -0,0 +1,3 @@
<a href="{{ value.url }}">
<img src="{{ value.url }}" alt="{{ value.name }}" class="img-fluid" />
</a>

View File

@@ -0,0 +1,5 @@
{% extends "ui/panels/_base.html" %}
{% block panel_content %}
<pre id="panel_{{ field_name }}">{{ data|json }}</pre>
{% endblock panel_content %}