diff --git a/asset/templates/asset/asset_list.html b/asset/templates/asset/asset_list.html index 061a4f4f7..60bb1382b 100644 --- a/asset/templates/asset/asset_list.html +++ b/asset/templates/asset/asset_list.html @@ -118,10 +118,10 @@ diff --git a/asset/templates/asset/asset_report_form.html b/asset/templates/asset/asset_report_form.html index 7f82483e1..50e4390a0 100644 --- a/asset/templates/asset/asset_report_form.html +++ b/asset/templates/asset/asset_report_form.html @@ -1,15 +1,12 @@ {% load i18n %} - {% if messages %} -
- {% for message in messages %} -
-
- {{ message }} -
-
- {% endfor %} - -
+ {% endif %} - -
+
+

{% trans 'Add Asset Report' %}

+ +
+
+ {% csrf_token %} - +
-
-
-
- - {{asset_report_form.title}} - {{asset_report_form.title.errors}} - -
-
-
-
- - {{asset_report_form.asset_id }} - {{asset_report_form.asset_id.errors }} -
-
- +
+
+
+ + {{ asset_report_form.title }} + {{ asset_report_form.title.errors }} +
-
- - -
- +
+ + +
+
- + +
diff --git a/asset/templates/asset/asset_return_form.html b/asset/templates/asset/asset_return_form.html index 0f181f429..b7d80cec0 100644 --- a/asset/templates/asset/asset_return_form.html +++ b/asset/templates/asset/asset_return_form.html @@ -32,10 +32,10 @@ diff --git a/asset/templates/asset/asset_update.html b/asset/templates/asset/asset_update.html index 9e37c7733..10291c690 100644 --- a/asset/templates/asset/asset_update.html +++ b/asset/templates/asset/asset_update.html @@ -184,11 +184,11 @@ {% if asset_form.instance.assetassignment_set.all %} @@ -197,10 +197,10 @@ class=" oh-btn oh-btn--info oh-btn--shadow mr-2" disabled onclick="event.preventDefault();event.stopPropagation()" - hx-get="{% url "add-asset-report" asset_form.instance.id %}?asset_list=true" - hx-target="#addAssetReportForm" data-toggle="oh-modal-toggle" - data-target="#addAssetReport" + data-target="#dynamicCreateModal" + hx-get="{% url "add-asset-report" asset_form.instance.id %}?asset_list=true" + hx-target="#dynamicCreateModalTarget" > {% trans "Add Report" %} diff --git a/asset/templates/category/asset_category_view.html b/asset/templates/category/asset_category_view.html index 6f417f0d1..e7120ec9e 100644 --- a/asset/templates/category/asset_category_view.html +++ b/asset/templates/category/asset_category_view.html @@ -172,27 +172,6 @@
- {% comment %}
- -
{% endcomment %}
-