adjust header to work with trash empty button
This commit is contained in:
@@ -13,14 +13,25 @@
|
||||
</div>
|
||||
{% if button_text and button_url %}
|
||||
<div>
|
||||
<button onclick="window.location.href='{{ button_url }}'"
|
||||
class="btn {{ button_class if button_class else '' }}"
|
||||
style="{{ 'background-color: #16767b; color: white;' if not button_class else '' }}{{ '; ' + button_style if button_style else '' }}">
|
||||
{% if button_icon %}
|
||||
<i class="fas {{ button_icon }} me-1"></i>
|
||||
{% endif %}
|
||||
{{ button_text }}
|
||||
</button>
|
||||
{% if button_url == "#" %}
|
||||
<button id="emptyTrashBtn"
|
||||
class="btn {{ button_class if button_class else '' }}"
|
||||
style="{{ 'background-color: #16767b; color: white;' if not button_class else '' }}{{ '; ' + button_style if button_style else '' }}">
|
||||
{% if button_icon %}
|
||||
<i class="fas {{ button_icon }} me-1"></i>
|
||||
{% endif %}
|
||||
{{ button_text }}
|
||||
</button>
|
||||
{% else %}
|
||||
<button onclick="window.location.href='{{ button_url }}'"
|
||||
class="btn {{ button_class if button_class else '' }}"
|
||||
style="{{ 'background-color: #16767b; color: white;' if not button_class else '' }}{{ '; ' + button_style if button_style else '' }}">
|
||||
{% if button_icon %}
|
||||
<i class="fas {{ button_icon }} me-1"></i>
|
||||
{% endif %}
|
||||
{{ button_text }}
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user