diff --git a/asset/static/src/asset_category/assetCategoryView.js b/asset/static/src/asset_category/assetCategoryView.js index adffbb06e..82ab8f9fc 100644 --- a/asset/static/src/asset_category/assetCategoryView.js +++ b/asset/static/src/asset_category/assetCategoryView.js @@ -76,7 +76,7 @@ function getAssetImportTemplate() { const url = URL.createObjectURL(file); const link = document.createElement("a"); link.href = url; - link.download = "my_excel_file.xlsx"; + link.download = "asset_excel.xlsx"; document.body.appendChild(link); link.click(); }, diff --git a/asset/templates/batch/asset_batch_empty.html b/asset/templates/batch/asset_batch_empty.html index 903f4bb0b..a5e5788a2 100644 --- a/asset/templates/batch/asset_batch_empty.html +++ b/asset/templates/batch/asset_batch_empty.html @@ -1,59 +1,34 @@ {% extends 'index.html' %} {% block content %} {% load static %} {% load i18n %} {% load widget_tweaks %} - -{% if messages %} -
- {% for message in messages %} -
-
- {{ message }} +
+
+

+ {% trans "Asset Batch Number" %} +

-
- {% endfor %} -
-{% endif %} - - -
-
-
-

- {% trans "Asset Batch Number" %} -

-
-
-
- {% if perms.asset.add_assetlot %} - - {% endif %} +
+
+ {% if perms.asset.add_assetlot %} + + {% endif %}
-
-
+
+ -
-
-
-
- Page not found. 404. -
- {% trans "No Asset Batches have been created." %} -
-
-
-
+
+
+ Page not found. 404. +

{% trans "No Records found." %}

+

{% trans "No Asset Batches have been created." %}

+
{% endblock %} diff --git a/asset/templates/category/asset_empty.html b/asset/templates/category/asset_empty.html index 0cbdd505d..6888039db 100644 --- a/asset/templates/category/asset_empty.html +++ b/asset/templates/category/asset_empty.html @@ -5,99 +5,57 @@ {% load widget_tweaks %} {% load assets_custom_filter %} - - - - -{% if messages %} -
- {% for message in messages %} -
-
- {{ message }} -
+
+
+

{{ model.get_verbose_name }}

- {% endfor %} -
-{% endif %} - +
-
-
-
-

{{ model.get_verbose_name }}

-
-
- -
- {% if perms.asset.add_asset %} - -
- - -
- {% endif %} - -
- {% if perms.asset.add_assetcategory %} - -
-
-
-
-
-
- Page not found. 404. -
{% trans "There is no Asset category and no Assets has been created." %}
-
-
-
+ + + +
+
+ Page not found. 404. +

{% trans "No Records found." %}

+

{% trans "No Asset Categories or Assets have been created." %}

+