Skip to content

Commit

Permalink
[feature] Added option to pass HTML for additional buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Aug 2, 2024
1 parent d29c65b commit 00b1612
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openwisp_utils/admin_theme/templates/admin/submit_line.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
{% endif %}
{% if additional_buttons %}
{% for button in additional_buttons %}
{% if button.html %}
{{ button.html }}
{% else %}
<input type="{{ button.type }}"
data-url="{{ button.url }}"
class="{{ button.class }}"
value="{{ button.value }}"
title="{{ button.title }}">
{% endif %}
{% endfor %}
{% endif %}
{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" />{% endif %}
Expand Down

0 comments on commit 00b1612

Please sign in to comment.