From f887f2e7b18eb604c4caf1a195e4d24949222afb Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 14 Oct 2025 14:22:43 +0530 Subject: [PATCH] [UPDT] ASSET: Updated asset action for v2 --- asset/templates/asset/action_column.html | 111 ++++++++++++++++------- 1 file changed, 78 insertions(+), 33 deletions(-) diff --git a/asset/templates/asset/action_column.html b/asset/templates/asset/action_column.html index 9cb2851b2..b6cb1e000 100644 --- a/asset/templates/asset/action_column.html +++ b/asset/templates/asset/action_column.html @@ -2,57 +2,102 @@
{% if perms.asset.change_asset %} {% if asset_under == 'asset_filter' %} - - + title="{% trans 'Update' %}" + hx-target="#genericModalBody" + onclick="event.stopPropagation()" + id="oh-btn-asset-update-modal" + > + {% else %} - - + + {% endif %} {% endif %} + {% if perms.asset.add_asset %} - + {% endif %} - {% if asset.assetassignment_set.all %} - - - - {% else %} - - - - {% endif %} + {% if perms.asset.delete_asset %} {% if asset_under == 'asset_filter' %} -
+ {% csrf_token %} -
{% else %} -
+ hx-target="#assetCategory{{asset.asset_category_id.id}}" + onclick="event.stopPropagation()" + style="width: 100%" + > {% csrf_token %} -
{% endif %}