From f5e0f52320fbf618b97e275c54f39176303d060d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 6 Nov 2024 14:58:10 +0100 Subject: đŸ’„ quick actions: put management actions in orange MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/blocks/DataTables.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html index 6e2b01d7a..d00609b32 100644 --- a/ishtar_common/templates/blocks/DataTables.html +++ b/ishtar_common/templates/blocks/DataTables.html @@ -285,12 +285,12 @@ jQuery(document).ready(function(){ "style": {% if multiple_select or quick_actions %}'multi'{% else %}'single'{% endif %} }, {% if multiple_select or quick_actions %}"buttons": [ - {% for url, title, icon, target, is_popup in quick_actions %} + {% for url, title, btn_class, icon, target, is_popup in quick_actions %} { {% if target == 'one' %}extend: 'selectedSingle', {% elif target == 'many' %}extend: 'selected', {% endif %} - className: "btn btn-success", + className: "btn {{btn_class}}", text: "{{icon}}", titleAttr: "{{title}}", action: function (e, dt, node, config) { -- cgit v1.2.3