FIX: Remove assets from to-be-audited table when audited

Previously required a page reload
This commit is contained in:
2020-02-16 15:49:53 +00:00
parent 54ec38f7e1
commit 20d9a71a9e
4 changed files with 13 additions and 6 deletions

View File

@@ -114,11 +114,16 @@
</div>
</div>
</div>
{% if not request.is_ajax %}
<div class="form-group pull-right">
<button class="btn btn-success" type="submit" form="asset_audit_form">Mark Audited</button>
</div>
{% endif %}
</form>
{% endblock %}
{% block footer %}
<div class="form-group">
<button class="btn btn-success modal-action" type="submit" form="asset_audit_form">Mark Audited</button>
<button class="btn btn-success pull-right" type="submit" form="asset_audit_form" onclick="onAuditClick({{form.asset_id.value}});">Mark Audited</button>
</div>
{% endblock %}