diff --git a/asset/forms.py b/asset/forms.py index 069927392..f0fde614c 100644 --- a/asset/forms.py +++ b/asset/forms.py @@ -311,6 +311,10 @@ class AssetAllocationForm(ModelForm): }, ), } + + # def clean(self): + # cleaned_data = super.clean() + class AssetReturnForm(ModelForm): diff --git a/asset/static/src/asset/dashboard.js b/asset/static/src/asset/dashboard.js index 0492deb6e..c9c9e0b7f 100644 --- a/asset/static/src/asset/dashboard.js +++ b/asset/static/src/asset/dashboard.js @@ -58,7 +58,10 @@ $(document).ready(function() { console.log("Error", error); }, }); - + // $("#asset_request_view").on("click",function () { + // localStorage.setItem("activeTabAsset", "#tab_1"); + // window.location.replace("/asset/asset-request-allocation-view/?asset_request_status=Requested"); + // }) }); function emptyAssetAvialabeChart(assetAvailableChartChart,args,options){ diff --git a/asset/templates/asset/dashboard.html b/asset/templates/asset/dashboard.html index 15c8e5c67..831be710d 100644 --- a/asset/templates/asset/dashboard.html +++ b/asset/templates/asset/dashboard.html @@ -40,9 +40,11 @@