mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-18 14:02:15 +00:00
Fix the remaining tests
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
{% include 'partials/audit_details.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% if perms.RIGS.view_asset %}
|
||||
{% if perms.assets.view_asset %}
|
||||
<div class="row justify-content-end">
|
||||
{% include 'partials/asset_buttons.html' %}
|
||||
</div>
|
||||
|
||||
@@ -82,6 +82,8 @@
|
||||
</h1>
|
||||
{% if duplicate %}
|
||||
<form method="POST" id="asset_update_form" action="{% url 'asset_duplicate' pk=previous_asset_id %}">
|
||||
{% elif edit %}
|
||||
<form method="POST" id="asset_update_form" action="{% url 'asset_update' pk=object.asset_id %}">
|
||||
{% else %}
|
||||
<form method="POST" id="asset_update_form" action="{% url 'asset_create' %}">
|
||||
{% endif %}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="input-group">
|
||||
{% render_field form.query|add_class:'form-control' placeholder='Search by Asset ID/Desc/Serial' style="width: 250px"%}
|
||||
<label for="query" class="sr-only">Asset ID/Description/Serial Number:</label>
|
||||
<span class="input-group-append"><button type="submit" class="btn btn-primary">Search</button></span>
|
||||
<span class="input-group-append"><button type="submit" class="btn btn-primary" id="id_search">Search</button></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-end">
|
||||
|
||||
Reference in New Issue
Block a user