Skip to content

Commit 18bf035

Browse files
added new icon and show action icons in detail action
1 parent b16b95c commit 18bf035

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Loading

src/django_smartbase_admin/templates/sb_admin/actions/change_form.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ <h1 class="text-24 md:text-30 text-dark-900 font-bold font-heading line-clamp-1
9999
{% if detail_actions %}
100100
{% for action in detail_actions %}
101101
<li class="max-sm:hidden">
102-
<a {% if action.open_in_modal %}{% include 'sb_admin/actions/partials/open_modal_attrs.html' %}{% endif %} href="{{ action.url }}" class="btn btn-empty {{ action.css_class|default_if_none:'' }}">
102+
<a {% if action.open_in_modal %}{% include 'sb_admin/actions/partials/open_modal_attrs.html' %}{% endif %} href="{{ action.url }}" class="btn {{ action.css_class|default_if_none:'' }}">
103+
{% if action.icon %}
104+
<svg class="w-16 h-16 mr-8">
105+
<use href="#{{ action.icon }}"></use>
106+
</svg>
107+
{% endif %}
103108
{{ action.title }}
104109
</a>
105110
</li>

src/django_smartbase_admin/templates/sb_admin/sprites/sb_admin.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)