From 9091197639b6096a3ac8e07540ffc58c04dc3ef6 Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Thu, 2 Jun 2022 15:28:19 +0100 Subject: [PATCH] Minor audit fix --- assets/templates/asset_audit.html | 20 +++++++++++--------- assets/templates/partials/form_field.html | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/assets/templates/asset_audit.html b/assets/templates/asset_audit.html index 3d0190ba..83b584c0 100644 --- a/assets/templates/asset_audit.html +++ b/assets/templates/asset_audit.html @@ -9,9 +9,11 @@ date = new Date(); } $('#id_date_acquired').val([date.getFullYear(), ('0' + (date.getMonth()+1)).slice(-2), ('0' + date.getDate()).slice(-2)].join('-')); + return false; } function setFieldValue(ID, CSA) { $('#' + String(ID)).val(CSA); + return false; } function checkIfCableHidden() { document.getElementById("cable-table").hidden = !document.getElementById("id_is_cable").checked; @@ -39,16 +41,16 @@
{% include 'partials/form_field.html' with field=form.date_acquired col="col-6" %} -
- - +
+ +
{% include 'partials/form_field.html' with field=form.date_sold col="col-6" %}
- {% include 'partials/form_field.html' with field=form.salvage_value col="col-6" prepend="£" %} + {% include 'partials/form_field.html' with field=form.replacement_cost col="col-6" prepend="£" %}

@@ -64,16 +66,16 @@
{% include 'partials/form_field.html' with field=form.length append=form.length.help_text col="col-6" %}
- - - + + +
{% include 'partials/form_field.html' with field=form.csa append=form.csa.help_text title='CSA' col="col-6" %}
- - + +
diff --git a/assets/templates/partials/form_field.html b/assets/templates/partials/form_field.html index 82e328d6..027a2cce 100644 --- a/assets/templates/partials/form_field.html +++ b/assets/templates/partials/form_field.html @@ -1,7 +1,7 @@ {% load widget_tweaks %} {% load title_spaced from filters %} {% spaceless %} - + {% if append or prepend %}
{% if prepend %}