first push
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{% if page_object %}
|
||||
{% for asset in page_object %}
|
||||
<tr>
|
||||
<td>
|
||||
{% if page_object.start_index %}
|
||||
{{page_object.start_index|add:forloop.counter0}}
|
||||
{% else %}
|
||||
{{forloop.counter}}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{asset.name}}</td>
|
||||
<td>{{asset.serial_no}}</td>
|
||||
<td>{{asset.product.product_type}}</td>
|
||||
<td>{{asset.product}}</td>
|
||||
<td>{{asset.vendor}}</td>
|
||||
<td>{{asset.updated_at}}</td>
|
||||
<td>
|
||||
<div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
|
||||
<form action="{% url 'recycle_bin:deleted_asset_restore' asset.id %}" method="post" onsubmit="return confirm('Are you sure you want to restore this?')">
|
||||
{% csrf_token %}
|
||||
<button type="submit" value="Delete" class="btn btn-sm btn-success"><i class="bi bi-arrow-repeat"></i></button>
|
||||
</form>
|
||||
<form action="{% url 'recycle_bin:deleted_asset_permanently' asset.id %}" method="post" onsubmit="return confirm('Are you sure you want to delete this permanently?')">
|
||||
{% csrf_token %}
|
||||
<button type="submit" value="Delete" class="btn btn-sm btn-danger"><i class="bi bi-trash3-fill"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<td colspan="8" class="text-center"> No record found related to your search keyword</td>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user